This commit is contained in:
2025-10-07 22:48:00 +09:00
parent c01329afdb
commit ac693bee67
2 changed files with 90 additions and 0 deletions

20
js/cases.js Normal file
View File

@@ -0,0 +1,20 @@
let linkTao = document.getElementById('inputLink')
let textTao = document.getElementById('inputText')
function change(){
if (document.getElementById('radio1').checked && document.getElementById('radio2').checked == false){
linkTao.style.display = 'block';
textTao.style.display = 'none';
console.log(1)
}
else if (document.getElementById('radio1').checked == false && document.getElementById('radio2').checked){
textTao.style.display = 'block';
linkTao.style.display = 'none';
console.log(2)
}
else{
textTao.style.display = 'none';
linkTao.style.display = 'none';
console.log(3)
}
}