1document.addEventListener('DOMContentLoaded', function () { 2 // ã©ã¸ãªãã¿ã³ã®å¤æ´ãç£è¦ 3 const radioAttribute = document.querySelectorAll('input[name="custom_member[attribute]"]'); 4 const elemAttributeAgency = document.querySelectorAll('.customkey_attribute-agency'); 5 const checkboxAttributeAgency = document.querySelectorAll('input[name^="custom_member[attribute-agency]"]'); 6 const checkboxAttributeAgencyOther = document.querySelectorAll('input[name^="custom_member[attribute-agency][ãã®ä»"]'); 7 const elemAttributeAgencyOther = document.querySelectorAll('.customkey_attribute-agency-other'); 8 const textAttributeAgencyOther = document.querySelectorAll('input[name="custom_member[attribute-agency-other]"]'); 9 10 radioAttribute.forEach(function (radio) { 11 radio.addEventListener('change', function () { 12 // 鏿ãããã©ã¸ãªãã¿ã³ã®å¤ãåå¾ 13 if (radio.checked) { 14 const radioValue = radio.value; 15 if (radioValue.includes('å¶ä½ä¼ç¤¾')) { 16 elemAttributeAgency.forEach(function (element) { 17 element.style.display = null; 18 }); 19 } else { 20 elemAttributeAgency.forEach(function (element) { 21 element.style.display = 'none'; 22 }); 23 elemAttributeAgencyOther.forEach(function (element) { 24 element.style.display = 'none'; 25 }); 26 checkboxAttributeAgency.forEach(function (radio) { 27 radio.checked = false; 28 }); 29 textAttributeAgencyOther.forEach(function (element) { 30 element.value = ''; 31 }); 32 } 33 } 34 }); 35 }); 36 checkboxAttributeAgencyOther.forEach(function (radio) { 37 radio.addEventListener('change', function () { 38 // 鏿ãããã©ã¸ãªãã¿ã³ã®å¤ãåå¾ 39 if (radio.checked) { 40 elemAttributeAgencyOther.forEach(function (element) { 41 element.style.display = null; 42 }); 43 } else { 44 elemAttributeAgencyOther.forEach(function (element) { 45 element.style.display = 'none'; 46 }); 47 } 48 }); 49 }); 50});
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.