PageSourceSearch

https://www.masterwal.jp/cms/js/global.js

js masterwal.jp collected 2026-10-03 21:52:14 UTC 7,839 bytes, 181 lines download raw bytes

1jQuery(function () {
2	var ua = navigator.userAgent;
3	if ((ua.indexOf('iPhone') > 0) || ua.indexOf('iPod') > 0 || (ua.indexOf('Android') > 0 && ua.indexOf('Mobile') > 0)) {
4		jQuery("meta[name='viewport']").attr('content','width=device-width,initial-scale=1');
5		//jQuery('head').prepend('<meta name="viewport" content="width=device-width,initial-scale=1">');
6	} else {
7		jQuery("meta[name='viewport']").attr('content','width=1300');
8		//jQuery('head').prepend('<meta name="viewport" content="width=1300">');
9	}
10	var w = jQuery(window).width();
11	var x = 767;
12	if (w <= x) {
13		jQuery('.footerBottomTitleSpBtn').click(function () {
14			if (jQuery(this).hasClass('footerBottomTitleSpBtn_On')) {
15				jQuery('.footerBottomList').slideUp('fast');
16				jQuery(this).removeClass('footerBottomTitleSpBtn_On');
17			} else {
18				jQuery('.footerBottomList').slideDown('fast');
19				jQuery(this).addClass('footerBottomTitleSpBtn_On');
20			}
21		});
22	}
23	// jQuery(window).load(function () {
24	// 	jQuery('.listheight').matchHeight();
25	// 	jQuery('.underAboutsQualityHeight').matchHeight();
26	// 	jQuery('.underAboutsBrandInner').matchHeight();
27	// 	jQuery('.shopdetailMapHight').matchHeight();
28	// 	jQuery('.collectionCategoryListImg').matchHeight();
29	// 	jQuery('.newsMainListTitle').matchHeight();
30	// 	jQuery('.newsMainListText').matchHeight();
31	// });
32	// jQuery('a[href^="#"]').click(function () {
33	// 	var speed = 500;
34	// 	var href = jQuery(this).attr("href");
35	// 	var target = jQuery(href == "#" || href == "" ? 'html' : href);
36	// 	var position = target.offset().top;
37	// 	jQuery("html, body").animate({scrollTop: position}, speed, "swing");
38	// 	return false;
39	// });
40	jQuery('.collectionDetailBtn').click(function () {
41		if (jQuery(this).hasClass('collectionDetailBtn_Open')) {
42			jQuery(this).parent().parent().children('.collectionDetailBtnMain').slideUp('fast');
43			jQuery(this).removeClass('collectionDetailBtn_Open');
44			jQuery(this).children('img').attr('src', '/html/template/default/assets/images/collection_review_icon01.png');
45		} else {
46			jQuery(this).parent().parent().children('.collectionDetailBtnMain').slideDown('fast');
47			jQuery(this).addClass('collectionDetailBtn_Open');
48			jQuery(this).children('img').attr('src', '/html/template/default/assets/images/collection_review_icon02.png');
49		}
50	});
51	jQuery('.collectionTopLinkSpBtn').click(function () {
52		if (jQuery(this).hasClass('collectionTopLinkSpBtn_Open')) {
53			jQuery(this).parent().parent().children('.collectionTopLink').slideUp('fast');
54			jQuery(this).removeClass('collectionTopLinkSpBtn_Open');
55			jQuery(this).children('img').attr('src', '/html/template/default/assets/images/collection_sp_icon01.png');
56		} else {
57			jQuery(this).parent().parent().children('.collectionTopLink').slideDown('fast');
58			jQuery(this).addClass('collectionTopLinkSpBtn_Open');
59			jQuery(this).children('img').attr('src', '/html/template/default/assets/images/collection_sp_icon02.png');
60		}
61	});
62	jQuery('.newsTopLinkSpBtn').click(function () {
63		if (jQuery(this).hasClass('newsTopLinkSpBtn_Open')) {
64			jQuery(this).parent().parent().children().children('.newsTopCenter').slideUp('fast');
65			jQuery(this).removeClass('newsTopLinkSpBtn_Open');
66			jQuery(this).children('img').attr('src', '/cms/img/migrated/collection_sp_icon01.png');
67		} else {
68			jQuery(this).parent().parent().children().children('.newsTopCenter').slideDown('fast');
69			jQuery(this).addClass('newsTopLinkSpBtn_Open');
70			jQuery(this).children('img').attr('src', '/cms/img/migrated/collection_sp_icon02.png');
71		}
72	});
73	jQuery('.collectionDetailTitleLeftSpBtn').click(function () {
74		if (jQuery(this).hasClass('collectionDetailTitleLeftSpBtn_Open')) {
75			jQuery(this).parent().parent().children('.collectionDetailTitleRight').slideUp('fast');
76			jQuery(this).removeClass('collectionDetailTitleLeftSpBtn_Open');
77			jQuery(this).children('img').attr('src', '/html/template/default/assets/images/collection_sp_icon01.png');
78		} else {
79			jQuery(this).parent().parent().children('.collectionDetailTitleRight').slideDown('fast');
80			jQuery(this).addClass('collectionDetailTitleLeftSpBtn_Open');
81			jQuery(this).children('img').attr('src', '/html/template/default/assets/images/collection_sp_icon02.png');
82		}
83	});
84	jQuery('.headerSpLeft').click(function () {
85		if (jQuery(this).hasClass('headerSpLeft_Open')) {
86			jQuery(this).parent().parent().children('.headerNavSp').slide
86Up('fast');
87			jQuery(this).removeClass('headerSpLeft_Open');
88		} else {
89			jQuery(this).parent().parent().children('.headerNavSp').slideDown('fast');
90			jQuery(this).addClass('headerSpLeft_Open');
91		}
92	});
93	jQuery('.menuListBtn').click(function () {
94		if (jQuery(this).hasClass('menuListBtn_Open')) {
95			jQuery(this).parent().parent().children('.menuList').slideUp('fast');
96			jQuery(this).removeClass('menuListBtn_Open');
97		} else {
98			jQuery(this).parent().parent().children('.menuList').slideDown('fast');
99			jQuery(this).addClass('menuListBtn_Open');
100		}
101	});
102	jQuery('.roomsnapListBtn').mouseenter(function () {
103		var w = jQuery(window).width();
104		var x = 768;
105		if (w >= x) {
106			if (jQuery(this).hasClass('roomsnapListBtn_On')) {
107			} else {
108				jQuery(this).children().children('.roomsnapListOn').slideDown(300);
109				jQuery(this).addClass('roomsnapListBtn_On');
110			}
111		}
112	});
113	jQuery('.roomsnapListBtn').mouseleave(function () {
114		var w = jQuery(window).width();
115		var x = 768;
116		if (w >= x) {
117			if (jQuery(this).hasClass('roomsnapListBtn_On')) {
118				jQuery(this).children().children('.roomsnapListOn').slideUp(150);
119				jQuery(this).removeClass('roomsnapListBtn_On');
120			}
121		}
122	});
123	jQuery('.roomsnapListBtn').click(function () {
124		var w = jQuery(window).width();
125		var x = 768;
126		if (w <= x) {
127			if (jQuery(this).hasClass('roomsnapListBtn_On')) {
128				jQuery(this).children().children('.roomsnapListOn').slideUp(150);
129				jQuery(this).removeClass('roomsnapListBtn_On');
130			} else {
131				jQuery(this).children().children('.roomsnapListOn').slideDown(300);
132				jQuery(this).addClass('roomsnapListBtn_On');
133			}
134		}
135	});
136});
137
138// jQuery(function(){
139// 	btnPc = 'swPc';
140// 	btnSp = 'swSp';
141// 	btnAcvClass = 'btnAcv';
142// 	vpPc = 'width=1300';
143// 	vpSp = 'width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no';
144
145// 	// ViewPort
146// 	//jQuery('head').prepend('<meta name="viewport" content=' + (jQuery.cookie('swView') == 1 ? vpPc : vpSp) + '>');
147// 	jQuery('head').prepend('<meta name="viewport" content=' + (jQuery.cookie('swView') == 1 ? vpPc : vpSp) + '>');
148// 	setBtn='#'+(btnPc)+',#'+(btnSp);
149// 	setBtnPc='#'+(btnPc);
150// 	setBtnSp='#'+(btnSp);
151// 	jQuery(setBtn).on('click',function(){
152// 		jQuery.cookie('swView', jQuery(this).attr('id') == btnPc ? 1 : 0);
153// 		location.reload();
154// 		return false;
155// 	});
156
157// 	// BtnActive
158// 	var cookie = jQuery.cookie('btnAcv');
159// 	if(cookie == 'acvPc'){
160// 		jQuery('body').addClass(btnAcvClass);
161// 		jQuery(setBtnPc).addClass(btnAcvClass);
162// 		jQuery(setBtnSp).removeClass(btnAcvClass);
163// 	} else if(cookie == 'acvSp'){
164// 		jQuery('body').removeClass(btnAcvClass);
165// 		jQuery(setBtnPc).removeClass(btnAcvClass);
166// 		jQuery(setBtnSp).addClass(btnAcvClass);
167// 	}
168// 	jQuery(setBtnPc).on('click',function(){
169// 		jQuery.cookie('btnAcv','acvPc',{expires:7, path:'/'});
170// 		jQuery(setBtnSp).removeClass(btnAcvClass);
171// 		jQuery(this).addClass(btnAcvClass);
172// 	});
173// 	jQuery(setBtnSp).on('click',function(){
174// 		jQuery.cookie('btnAcv','acvSp',{expires:7, path:'/'});
175// 		jQuery(setBtnPc).removeClass(btnAcvClass);
176// 		jQuery(this).addClass(btnAcvClass);
177// 	});
178// 	if (window.innerWidth > 767) {
179// 		jQuery("meta[name='viewport']").attr('content','width=1300');
180// 	}
181// });

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.