PageSourceSearch

https://www.calulu-dogwear.jp/html/user_data/assets/js/customize.js

js calulu-dogwear.jp collected 2026-10-02 14:32:48 UTC 7,620 bytes, 282 lines download raw bytes

1/* カスタマイズ用Javascript */
2setInterval(function() {
3  if ($('.ec-navlistRole__navlist').length && !$('.btn_lineid').length) {
4    $('.ec-navlistRole__navlist').after(
5      '<p class="btn_lineid" style="margin-bottom:30px"><a href="/user_data/lineid"><img src="/html/plugin/Exp/assets/images/lp/line_idcampaign/bnr_lineid.jpg" width="210" height="138" loading="lazy" alt="LINE ID連携"></a></p>'
6    );
7  }
8}, 300); // 0.3秒ごとにチェック
9
10/*ランキング用タブ*/
11$(function() {
12  $('.ranking_itme .tab li').click(function() {
13    var index = $('.ranking_itme .tab li').index(this);
14    $('.ranking_itme .tab li').removeClass('active');
15    $(this).addClass('active');
16    $('.ranking_itme .area ul').removeClass('show').eq(index).addClass('show');
17  });
18});
19
20$(function () {
21		var bottomBtn = $('#obon-cupon');  
22	
23		
24  var webStorage5 = function () {
25		if (sessionStorage.getItem('obon')) {
26		    bottomBtn.removeClass('open-menu');
27		} else {
28		  bottomBtn.addClass('open-menu');
29		}
30	  }
31
32  bottomBtn.on('click', function() {
33			  bottomBtn.toggleClass('open-menu');
34				sessionStorage.setItem('obon', 'true');
35			});
36  
37  webStorage5();
38});
39$('.code').on('click', function() {
40     let text = $(".code").text();
41     if (navigator.clipboard === undefined) {
42        window.clipboardData.setData("Text", text);
43      } else {
44        navigator.clipboard.writeText(text);
45      }
46      alert("コピーしました : " + text);
47});
48
49
50
51$('.code_btna').on('click', function() {
52
53     let text = $(".code_btna").text();
54
55     if (navigator.clipboard === undefined) {
56
57        window.clipboardData.setData("Text", text);
58
59      } else {
60
61        navigator.clipboard.writeText(text);
62
63      }
64
65      alert("コピーしました : " + text);
66
67});
68
69$('.code_btnb').on('click', function() {
70
71     let text = $(".code_btnb").text();
72
73     if (navigator.clipboard === undefined) {
74
75        window.clipboardData.setData("Text", text);
76
77      } else {
78
79        navigator.clipboard.writeText(text);
80
81      }
82
83      alert("コピーしました : " + text);
84
85});
86
87$('.code_btnc').on('click', function() {
88
89     let text = $(".code_btnc").text();
90
91     if (navigator.clipboard === undefined) {
92
93        window.clipboardData.setData("Text", text);
94
95      } else {
96
97        navigator.clipboard.writeText(text);
98
99      }
100
101      alert("コピーしました : " + text);
102
103});
104
105
106
107
108
109
110
111
112
113$('#search_on').on('click', function() {
114     $('.ec-layoutRole').toggleClass('is_active');
115        $('.ec-drawerRole').toggleClass('is_active');
116        $('.ec-drawerRoleClose').toggleClass('is_active');
117        $('body').toggleClass('have_curtain');
118        $('.account_select').toggleClass('is_active');
119        $('.search__anchor').toggleClass('opened');
120        $('.search__advance').css('display','block');
121        $('.nav_bnr_sp').toggleClass('is_active');
122
123});
124$('.ec-overlayRole').on('click', function() {
125        $('.account_select').removeClass('is_active');
126        $('.search__anchor').removeClass('opened');
127        $('.nav_bnr_sp').removeClass('is_active');
128});
129  $('.ec-drawerRoleClose').on('click', function() {
130        $('.account_select').removeClass('is_active');
131        $('.search__anchor').removeClass('opened');
132        $('.nav_bnr_sp').removeClass('is_active');
133});   
134    
135    
136
137$(function(){
138  $('.cate-menu-top').click(function() {
139    $(this).toggleClass('selected');
140    $(this).next().slideToggle();
141  }).next().hide();
142});
143 
144$(function () {
145
146    
147  $('.select_category h3').on('click', function () {
148    
149    $(this).next().toggleClass("op");
150    $(this).toggleClass("op");
151  });
152
153    var headerHeight = $('.site__header').outerHeight();
154    headerHeight=headerHeight+20;
155    var urlHash = location.hash;
156if(urlHash) {
157    $('body,html').stop().scrollTop(0);
158    setTimeout(function(){
159        var target = $(urlHash);
160        var position = target.offset().top - headerHeight;
161        $('body,html').stop().animate({scrollTop:position}, 500);
162    }, 100);
163}
164$('a[href^="#"]').click(function() {
165    var href= $(this).attr("href");
166    var target = $(href);
167    var position = target.offset().top - headerHeight;
168    $('body,html').stop().animate({scrollTop:position}, 500);   
169});
170
171
172});
173
174
175
176var hover = function() {
177    $(window).on('load resize orientationchange', function() {
178        if($(window).width() <= 480) {
179            $('body').removeClass('hover');
180        } else {
181            $('body').addClass('hover');
182        }
183    });
184}
185
186$(function(){
187    hover();
188});
189
190
191$(function() {
192   
193   $('.mouseover').each(function() {
194    var off_img = $(this).find('img').attr('src').replace('_off', '_on');
195
196    var height=$(this).find('img').height();
197    var width=$(this).find('img').width();
198    var alt = $(this).find('img').attr('alt')
199
200    var on_img = $('<img src="'+ off_img +'" alt="'+ alt +'" style="position:absolute; opacity:0;" height="'+ height +'" width="'+ width +'" />');
201
202    
203    $(this).find('img').before(on_img);
204    
205    $(this).find('img').hover(function() {
206        $(this).stop().animate({'opacity': '1'}, 100);
207      }, function(){
208        $(this).stop().animate({'opacity': '0'}, 100);
209      }
210    )
211
212  });
213   
214
215 });
216 /*
217 $(function () {
218 $('.price[data-price]')
219      .each(function () {
220        var $this = $(this);
221        var oridinal_num = $this.data('price'); 
222        var oridinal_price = String(oridinal_num).replace(/(\d)(?=(\d\d\d)+(?!\d))/g, '$1,'); 
223        var tax_in_price = Math.floor(oridinal_num * 1.1); 
224        tax_in_price = String(tax_in_price).replace(/(\d)(?=(\d\d\d)+(?!\d))/g, '$1,');
225        $this.append( oridinal_price + '円(税込:' + tax_in_price + '円)'); 
226      });
227});*/
228 $(function () {
229 $('.price[data-price]')
230      .each(function () {
231        var $this = $(this);
232        var oridinal_num = $this.data('price'); 
233        var oridinal_price = String(oridinal_num).replace(/(\d)(?=(\d\d\d)+(?!\d))/g, '$1,'); 
234        var tax_in_price = Math.floor(oridinal_num * 1.1); 
235        tax_in_price = String(tax_in_price).replace(/(\d)(?=(\d\d\d)+(?!\d))/g, '$1,');
236        $this.append( tax_in_price + '円(税込)'); 
237      });
238});
239
240$(function () {
241		var bottomBtn = $('#info_menber_entry');  
242		
243  var webStorage2 = function () {
244		if (sessionStorage.getItem('access3')) {
245		} else {
246		  bottomBtn.addClass('is-active');
247		}
248	  }
249
250  bottomBtn.on('click', function() {
251			  bottomBtn.removeClass('is-active');
252				sessionStorage.setItem('access3', 'true');
253			});
254  
255  webStorage2();
256});
257
258
259window.addEventListener('load', function() {
260    if(!localStorage.getItem('disp_popup')) {
261        localStorage.setItem('disp_popup', 'on');
262        const body = document.querySelector('body');
263        const bgPopup = document.querySelector('.bg_onetime_popup');
264        const popup = document.querySelector('.onetime_popup');
265        const popupTitleClose = document.querySelector('.onetime_popup_title_close');
266        body.classList.add('open_popup');
267
268        bgPopup.addEventListener('click', function() {
269            closePopup();
270        });
271        popup.addEventListener('click', function(e) {
272            e.stopPropagation();
273        });
274        popupTitleClose.addEventListener('click', function() {
275            closePopup();
276        });
277
278        function closePopup() {
279            body.classList.remove('open_popup');
280        }
281    }
282}, false);

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.