diff --git a/main/js/main.js b/main/js/main.js index 220c8cb..50da617 100644 --- a/main/js/main.js +++ b/main/js/main.js @@ -51,28 +51,29 @@ }); }; -function toggleInput() { - const textInput1 = document.getElementById('name'); - const textInput2 = document.getElementById('team'); - const toggleButton = document.getElementById('toggleButton'); + +// function toggleInput() { +// const textInput1 = document.getElementById('name'); +// const textInput2 = document.getElementById('team'); +// const toggleButton = document.getElementById('Btn'); - if (textInput1.disabled) { - // 入力フィールドが無効化されている場合、有効化する - textInput1.disabled = false; - toggleButton.textContent = '入力完了'; // ボタンテキストを変更 - } else { - // 入力フィールドが有効な場合、無効化する - textInput1.disabled = true; - toggleButton.textContent = '入力中断'; // ボタンテキストを変更 - } - if (textInput2.disabled) { - // 入力フィールドが無効化されている場合、有効化する - textInput2.disabled = false; - toggleButton.textContent = '入力完了'; // ボタンテキストを変更 - } else { - // 入力フィールドが有効な場合、無効化する - textInput2.disabled = true; - toggleButton.textContent = '入力中断'; // ボタンテキストを変更 - } +// if (textInput1.disabled) { +// // 入力フィールドが無効化されている場合、有効化する +// textInput1.disabled = false; +// toggleButton.textContent = '入力完了'; // ボタンテキストを変更 +// } else { +// // 入力フィールドが有効な場合、無効化する +// textInput1.disabled = true; +// toggleButton.textContent = '入力中断'; // ボタンテキストを変更 +// } +// if (textInput2.disabled) { +// // 入力フィールドが無効化されている場合、有効化する +// textInput2.disabled = false; +// toggleButton.textContent = '入力完了'; // ボタンテキストを変更 +// } else { +// // 入力フィールドが有効な場合、無効化する +// textInput2.disabled = true; +// toggleButton.textContent = '入力中断'; // ボタンテキストを変更 +// } -} \ No newline at end of file +// } \ No newline at end of file diff --git a/main/main.html b/main/main.html index 73b3071..f3141b8 100644 --- a/main/main.html +++ b/main/main.html @@ -23,7 +23,7 @@ - +