PageSourceSearch

https://www.toto-dream.com/system/files/common/js/template.js?tlg1s5

js toto-dream.com collected 2026-09-24 17:46:58 UTC 4,193 bytes, 152 lines download raw bytes

1/*テンプレートE*/ 
2;(function($) {
3	$(function() {
4		var accTget = $('.tpl-sideNavAcc');
5		accTget.each(function() {
6			var self = $(this);
7			if (self.hasClass('is-active')) {
8				self.find('dd').show();
9			}
10		});
11		$(document).on('click', '.tpl-sideNavAcc dt', function() {
12			if ($(this).parents('.tpl-sideNavAcc').hasClass('is-active')) {
13				$(this).next('dd').slideToggle();
14				$(this).parents('.tpl-sideNavAcc').toggleClass('is-active');
15			} else {
16				$('.tpl-sideNavAcc').find('dd').slideUp();
17				$('.tpl-sideNavAcc').removeClass('is-active');
18				$(this).next('dd').slideToggle();
19				$(this).parents('.tpl-sideNavAcc').toggleClass('is-active');
20			}
21
22		});
23	});
24})(jQuery);
25
26/*テンプレートF*/
27;(function($) {
28	$(document).ready(function() {
29		var tabTget = $('.tpl-tabList02'),
30			tabContents = $('.tpl-tabContents');
31		tabTget.find('li').each(function() {
32			var self = $(this);
33			if (self.hasClass('is-current')) {
34				$(self.find('a').attr('href')).show();
35			}
36		});
37		$(document).on('click', '.tpl-tabList02 > li', function() {
38			if ($(this).hasClass('is-current')) {
39				return false;
40			}
41			tabTget.find('li').removeClass('is-current');
42			tabContents.hide();
43			$(this).addClass('is-current');
44			$($(this).find('a').attr('href')).show();
45			return false;
46		});
47	});
48})(jQuery);
49
50/*テンプレートAPI_03 テンプレートAPI_05*/
51;(function($) {
52	$(document).ready(function() {
53		var tabTget = $('.tpl-tabList01'),
54			tabContents = $('.tpl-tabContents');
55		tabTget.find('li').each(function() {
56			var self = $(this);
57			if (self.hasClass('is-current')) {
58				$(self.find('a').attr('href')).show();
59			}
60		});
61		$(document).on('click','.tpl-tabList01 > li', function() {
62			if ($(this).hasClass('is-current')) {
63				return false;
64			}
65			tabTget.find('li').removeClass('is-current');
66			tabContents.hide();
67			$(this).addClass('is-current');
68			$($(this).find('a').attr('href')).show();
69			window.scrollTo(0, 0);
70			return false;
71		});
72		
73	});
74})(jQuery);
75
76;(function($) {
77	var root, mode = 'pc';
78
79	function findComponent() {
80		root = $('.jsTableResult01');
81	}
82
83	function removeInner(elm) {
84		elm.children('*').each(function() {
85			$(this).remove();
86		});
87	}
88
89	function nextCountHit(jElm, n) {
90		var i, l, j = jElm;
91		j = j.nextAll().eq(n);
92		return j;
93	}
94
95	function setUpData() {
96		var i, l, xTableTamplate = '';
97		root.each(function(t) {
98			var j = 0;
99			xTableTamplate = '';
100			l = $(this).find('.jsXTh').length;
101			xTableTamplate += '<table class="tpl-tblResult01 jsTableResult01 tpl-tblPc">';
102			xTableTamplate += '<thead><tr>';
103			xTableTamplate += $(this).find('thead tr').html();
104			xTableTamplate += '</tr></thead>';
105			xTableTamplate += '<tbody>';
106			for (i = 0; i < l; i++) {
107				xTableTamplate += '<tr>';
108				xTableTamplate += '<th class="jsHeadX">' + $(this).find('.jsXTh').eq(i).html() + '</th>';
109				xTableTamplate += '<td>' + $(this).find('.jsXTd').eq(j).html() + '</td>';
110				xTableTamplate += '<td>' + $(this).find('.jsXTd').eq(j + 1).html() + '</td>';
111				xTableTamplate += '<td>' + $(this).find('.jsXTd').eq(j + 2).html() + '</td>';
112				xTableTamplate += '</tr>';
113				j += 3;
114			}
115			xTableTamplate += '</tbody>';
116			xTableTamplate += '</table>';
117			$(this).after(xTableTamplate);
118		});
119	}
120	$(function() {
121		findComponent();
122		if (root.length > 0) {
123			setUpData();
124		}
125	});
126})(jQuery);
127
128/*高さ調整*/
129;(function($) {
130	$(document).ready(function() {
131		$('.tpl-tabList02 a').matchHeight();
132		$('.tpl-dealsBtnList a').matchHeight({byRow : false});
133		$('.tpl-pastList01 li').matchHeight();
134		$('.tpl-campaignList > li').matchHeight();
135	});
136})(jQuery);
137
138/*販売スケジュール月送り*/
139;(function($) {
140	$(function() {
141		$(document).on('click.sche','.js-scheduleArrow', function(e) {
142			var arrow = $(this),
143				form = arrow.closest('form');
144			if (arrow.hasClass('js-ArrowNext')) {
145				form[0].dispYM.value = form[0].next.value;
146			} else if (arrow.hasClass('js-ArrowPrev')) {
147				form[0].dispYM.value = form[0].prev.value;
148			}
149			form.submit();
150		});
151	});
152})(jQuery);

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.