PageSourceSearch

https://www.regal.co.jp/cms/js/add.js

js regal.co.jp collected 2026-10-02 02:27:41 UTC 6,151 bytes, 194 lines download raw bytes

1/* ---------------------
2	 INFORMATION
3-------------------- */
4jQuery(function() {
5	jQuery(document).on('click', '.brand-info-articles-filter .brand_info_search_ttl', function() {
6		if(jQuery(this).hasClass('brand-info-articles-filter-open')){
7			jQuery(this).removeClass('brand-info-articles-filter-open');
8			jQuery(this).next('.common-articles-filter-inner').slideUp();
9		}else{
10			jQuery(this).addClass('brand-info-articles-filter-open');
11			jQuery(this).next('.common-articles-filter-inner').slideDown();
12		}
13	});	
14});
15
16/* ---------------------
17	 SHOP
18-------------------- */
19jQuery(function() {
20	if(jQuery('.article-shop-detail-inner .article-shop-detail-img').length){
21		let ArticleShopDetailNum = jQuery('.article-shop-detail-inner .article-shop-detail-img ul > li').length;
22		if(ArticleShopDetailNum > 1){
23			jQuery('.article-shop-detail-inner .article-shop-detail-img ul').slick({
24				autoplay: false,
25				autoplaySpeed: 2000,
26				dots: true,
27				arrows: false,
28				//centerMode: true,
29				slidesToShow: 2,
30				slidesToScroll: 1,
31				responsive: [
32					{
33						breakpoint: 768,
34						settings: {
35							slidesToShow: 1,
36						},
37					},
38				],		
39
40			});		
41		}else{
42			jQuery('.article-shop-detail-inner .article-shop-detail-img > ul').css('opacity', '1');
43		}
44	}
45});
46
47/* ---------------------
48	 SHOP
49-------------------- */
50jQuery(function() {
51	jQuery(document).on('click', '.modal-article-category-btn', function() {
52		jQuery('.modal-article-category-overflow').fadeIn();
53		jQuery('.modal-article-category-area').fadeIn();		
54	});
55
56	jQuery(document).on('click', '.modal-article-category-area .modal-close', function() {
57		jQuery('.modal-article-category-area, .modal-article-category-overflow').fadeOut();
58		return false;
59	});
60	
61	jQuery(document).on('click', '.modal-article-category-overflow', function() {
62		jQuery('.modal-article-category-area, .modal-article-category-overflow').fadeOut();
63	});		
64});
65
66jQuery(function() {
67	jQuery(document).on('click', '.shoplistDetailedSearchArea .shoplistDetailedSearchAreaTtl', function() {
68		if(jQuery(this).hasClass('ac-on')){
69			jQuery(this).removeClass('ac-on');
70			jQuery(this).next('.shoplistDetailedSearchAreaBox').slideUp();
71		}else{
72			jQuery(this).addClass('ac-on');
73			jQuery(this).next('.shoplistDetailedSearchAreaBox').slideDown();
74		}
75	});
76});
77
78/* ---------------------
79	郵便番号にハイフンを入れる 
80-------------------- */
81jQuery(window).on('load',function () {
82
83	//SHOP LIST
84	if(jQuery('ul.article-shop-list-search-inner > li:not(".article-shop-list-search-ttl")').length){
85		jQuery('ul.article-shop-list-search-inner > li:not(".article-shop-list-search-ttl")').each(function() {
86			let ShopListPostCode = jQuery(this).find('span.post-code').text();
87			if(!ShopListPostCode == ''){
88				let ShopListPostCodeStart = ShopListPostCode.substr(0,3);
89				let ShopListPostCodeEnd = ShopListPostCode.substr(3);
90				let ShopListPostCodeSet =  ShopListPostCodeStart + '-' + ShopListPostCodeEnd;
91				jQuery(this).find('span.post-code').text(ShopListPostCodeSet);
92			}
93		});
94	}
95
96	//SHOP DETAIL
97	if(jQuery('.article-shop-detail-desc span.post-code').length){
98		let ShopListPostCode = jQuery('.article-shop-detail-desc span.post-code').text();
99		if(!ShopListPostCode == ''){
100			let ShopListPostCodeStart = ShopListPostCode.substr(0,3);
101			let ShopListPostCodeEnd = ShopListPostCode.substr(3);
102			let ShopListPostCodeSet =  ShopListPostCodeStart + '-' + ShopListPostCodeEnd;
103			jQuery('.article-shop-detail-desc span.post-code').text(ShopListPostCodeSet);
104		}
105	}
106});
107
108/* ---------------------
109	 パンくず(静的)
110-------------------- */
111jQuery(function() {
112	const $breadcrumbStatic = jQuery('#js-breadcrumb-static');
113
114	if ($breadcrumbStatic.length <= 0) {
115		return;
116	}
117
118	const $breadcrumbInner = jQuery('.breadcrumb-inner');
119
120	$breadcrumbInner.find('.breadcrumb').remove();
121	$breadcrumbInner.append($breadcrumbStatic.clone(true));
122	$breadcrumbStatic.remove();
123});
124
125/* ---------------------
126	 FAQ Accordion
127-------------------- */
128jQuery(function() {
129    const $faqToggle = jQuery('.js-faqToggle');
130    if($faqToggle.length <= 0) {
131        return;
132    }
133
134    $faqToggle.find('.supportIndex-faqList-que').on('click', function() {
135        jQuery(this).next().slideToggle();
136        jQuery(this).toggleClass('is-open');
137        return false;
138    });
139});
140
141/* ---------------------
142	 Smooth Scroll
143-------------------- */
144jQuery(function() {
145    let ancHref;
146    let $ancScrollTarget;
147    let ancScrollposition;
148    // let headerHeight;
149
150    jQuery('[href^="#anc-"]').click(function () {
151        ancHref = jQuery(this).attr('href');
152        $ancScrollTarget = jQuery(ancHref === '#anc-top' ? 'html' : ancHref);
153        // headerHeight = jQuery('header').height() - 20;
154
155        if(ancHref === '#top') {
156            ancScrollposition = $ancScrollTarget.offset().top;
157        } else {
158            ancScrollposition = $ancScrollTarget.offset().top - 20;
159        }
160
161        jQuery('html, body').animate({
162            'scrollTop':ancScrollposition
163        }, 400);
164
165        return false;
166    });
167});
168
169/* ---------------------
170	 ナビゲーション
171-------------------- */
172jQuery(window).on('load',function () {
173	setTimeout(function() {
174		jQuery('.brand-top-nav-menu-hover').hover(function () {
175			jQuery(this).addClass('brand-top-nav-menu-hover-on');
176			jQuery(this).children('.brand-top-nav-menu-cont').stop().slideDown(100);
177
178			let ww = jQuery(window).width();
179			if(ww < 767){
180				let brandTopNavhh = jQuery(this).children('brand-top-nav-menu-cont').height();
181				if (brandTopNavhh == undefined) {
182					brandTopNavhh = 0;
183				}
184				jQuery('.brand-top-nav-menu').css('margin-bottom' , brandTopNavhh);
185			}
186		}, function () {
187			jQuery(this).removeClass('brand-top-nav-menu-hover-on');
188			jQuery(this).children('.brand-top-nav-menu-cont').stop().slideUp(100);
189
190			let ww = jQuery(window).width();
191			jQuery('.brand-top-nav-menu').css('margin-bottom' , '');
192		});
193	}, 1000);
194});

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.