PageSourceSearch

https://www.welcart.com/wordpress/wp-content/themes/wp_welcart/ass…c-member-attribute-script.js?ver=1724821078

js welcart.com collected 2026-09-24 18:10:57 UTC 1,935 bytes, 50 lines download raw bytes

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.