1const checkAgree = function (trigger, target) { 2 const agreeCheckArea = document.getElementById(trigger); 3 const agreeCheckbox = agreeCheckArea.querySelector("#agree"); 4 const contactSubmitButton = document.getElementById(target); 5 6 if (!agreeCheckArea || !agreeCheckbox || !contactSubmitButton) return; 7 8 const toggleSubmitButton = () => { 9 if (agreeCheckbox.checked) { 10 // ãã§ãã¯ããã¯ã¹ãããã§ãã¯ããã¦ãããå ´å 11 // ãã¿ã³ã®disabled屿§ããç¡å¹ãï¼ãã¿ã³ãæ´»æ§åï¼ã«ãã 12 contactSubmitButton.disabled = false; 13 } else { 14 // ãã§ãã¯ããã¯ã¹ãããã§ãã¯ããã¦ããªããå ´å 15 // ãã¿ã³ã®disabled屿§ããæå¹ãï¼ãã¿ã³ãéæ´»æ§åï¼ã«ãã 16 contactSubmitButton.disabled = true; 17 } 18 }; 19 20 //ãã¼ã¸èªã¿è¾¼ã¿æã«å®è¡ 21 toggleSubmitButton(); 22 23 agreeCheckbox.addEventListener("change", toggleSubmitButton); 24}; 25 26window.addEventListener("load", function () { 27 checkAgree("agree-check", "contact-submit"); 28});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.