PageSourceSearch

https://moxymill.com/static/original/assets/js/checkbox_calendar.js?=202610081511

js moxymill.com collected 2026-10-08 06:11:50 UTC 2,971 bytes, 99 lines download raw bytes

1$(function(){
2	var all_flg = false;
3    $('input').click(function() {
4		let check_val = $(this).val();
5
6		if (all_flg == false){
7			if(check_val !== 'L_ALL') {
8				$('.block--category input:checkbox').prop("checked",false);
9				$(this).prop("checked",true);
10				all_flg = true;
11			}
12		}
13
14		check = $(this).prop("checked");
15    if(check_val == 'L_ALL'){
16			if(check == true) {
17				$('[name="live"]').prop("checked",true);
18				$('[name="live"]').each(function() {
19					var check_val = $(this).val();
20					$('.'+check_val).removeClass('is__hidden , border--none').addClass('is__visible');
21				});
22				var dame2 = 0;
23				$('input:checkbox').each(function() {
24					if($(this).prop("checked") == false) {
25						dame2++;
26					}
27				});
28				$('.list--schedule .block--tit').each(function() {
29					$(this).removeClass('border--none');
30				});
31			}else{
32				$('[name="live"]').prop("checked",false);
33				$('[name="live"]').each(function() {
34				var check_val = $(this).val();
35					$('.'+check_val).removeClass('is__visible').addClass('is__hidden');
36				});
37			}
38			all_flg = false;
39		}else{
40			if(check == true) {
41				$('.'+check_val).removeClass('is__hidden').addClass('is__visible');
42				let check_name = $(this).attr('name');
43				let dame = 0;
44				$('[name="'+check_name+'"]').each(function() {
45					if($(this).prop("checked") == false) {
46						let check_val = $(this).val();
47						$('.'+check_val).removeClass('is__visible').addClass('is__hidden');
48						dame++;
49					}
50				});
51
52				if(dame == '0' || dame == '1') {
53					$('[name="'+check_name+'"]').prop("checked",true);
54					let dame2 = 0;
55					$('input:checkbox').each(function() {
56						if($(this).prop("checked") == false) {
57							dame2++;
58						}
59					});
60				}
61			}else{	
62				$('.'+check_val).removeClass('is__visible').addClass('is__hidden');
63				var check_name = $(this).attr('name');
64			}
65			$('.list--schedule .block--tit , .list--schedule .block--tit .list__txt').removeClass('border--none');
66			$('.list--schedule .block--tit .list__txt.is__visible').last().addClass('border--none');
67			
68			$('.list--schedule .block--tit').each(function() {
69				let visibleCheck = $(this).find('.is__visible').length;
70				if(visibleCheck < 2){
71					$(this).addClass('border--none');
72				}else{
73					$(this).removeClass('border--none');
74				}
75			});
76		}
77
78    });
79});
80
81//リスト表示プログラム
82/* 親を表示する判定用 */
83document.addEventListener('DOMContentLoaded', () => {
84  document.querySelectorAll('input').forEach(input => {
85    input.addEventListener('click', () => {
86      document.querySelectorAll('.list--schedule li').forEach(item => {
87        const hasVisibleText = Array.from(item.querySelectorAll('.list__txt'))
88          .some(txt => !txt.classList.contains('is__hidden'));
89
90        item.classList.toggle('is__hidden', !hasVisibleText);
91        item.classList.toggle('is__visible', hasVisibleText);
92        item.classList.add('started');
93      });
94    });
95  });
96});
97
98
99//リスト表示プログラム

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.