PageSourceSearch

https://liflance.jp/view/asset/user-1-1-2-305fe4f53cde4e06ade14c0025c1bba8.js

js liflance.jp collected 2026-10-05 08:34:53 UTC 16,768 bytes, 513 lines download raw bytes

1var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
2let window = _____WB$wombat$assign$function_____("window");
3let self = _____WB$wombat$assign$function_____("self");
4let document = _____WB$wombat$assign$function_____("document");
5let location = _____WB$wombat$assign$function_____("location");
6let top = _____WB$wombat$assign$function_____("top");
7let parent = _____WB$wombat$assign$function_____("parent");
8let frames = _____WB$wombat$assign$function_____("frames");
9let opens = _____WB$wombat$assign$function_____("opens");
10(function ($) {
11
12    $('a[href^="#"]').click(function () {
13  const speed = 600;
14  let href = $(this).attr("href");
15  let target = $(href == "#" || href == "" ? "html" : href);
16  let position = target.offset().top;
17  $("body,html").animate({ scrollTop: position }, speed, "swing");
18  return false;
19});
20    
21  'use strict'; // Required code
22  //---------------------------------------------------------------------
23  //slickスライダー
24  //---------------------------------------------------------------------
25  //---------------------------------------------------------------------
26  //ファーストビュースライダー
27  //---------------------------------------------------------------------
28  $('#fv__slider .slider_box').slick({
29    arrows: true,
30    prevArrow: '<button class="slide-arrow prev-arrow"></button>',
31    nextArrow: '<button class="slide-arrow next-arrow"></button>',
32    dots: true,
33    dotsClass: "fv-dots",
34    autoplay: true,
35    autoplaySpeed: 5000,
36    speed: 500,
37    pauseOnFocus: false,
38    pauseOnHover: false,
39    pauseOnDotsHover: false,
40    slidesToShow: 1,
41    centerMode: false,
42  });
43
44  //---------------------------------------------------------------------
45  //newsスライダー
46  //---------------------------------------------------------------------
47  $('#header__news_slider .slider_box').slick({
48    arrows: true,
49    dots: false,
50    prevArrow: '<button class="slide-arrow prev-arrow"></button>',
51    nextArrow: '<button class="slide-arrow next-arrow"></button>',
52    autoplay: true,
53    autoplaySpeed: 5000,
54    speed: 500,
55    pauseOnFocus: false,
56    pauseOnHover: false,
57    pauseOnDotsHover: false,
58    slidesToShow: 1,
59    centerMode: false,
60  })
61
62  //---------------------------------------------------------------------
63  //pickupスライダー
64  //---------------------------------------------------------------------
65  $('#pickup__slider01 .slider_box').slick({
66    arrows: true,
67    dots: false,
68    prevArrow: '<button class="slide-arrow prev-arrow"></button>',
69    nextArrow: '<button class="slide-arrow next-arrow"></button>',
70    autoplay: false,
71    autoplaySpeed: 5000,
72    speed: 500,
73    pauseOnFocus: false,
74    pauseOnHover: false,
75    pauseOnDotsHover: false,
76    slidesToShow: 1,
77    centerMode: false,
78    asNavFor: "#pickup_thumb__slider01 .slider_box",
79    // responsive: [
80    //   {
81    //     breakpoint: 1024, // 399px以下のサイズに適用
82    //     settings: {
83    //       asNavFor: false,
84    //     },
85    //   },
86    // ],
87  })
88
89  $('#pickup__slider02 .slider_box').slick({
90    arrows: true,
91    dots: false,
92    prevArrow: '<button class="slide-arrow prev-arrow"></button>',
93    nextArrow: '<button class="slide-arrow next-arrow"></button>',
94    autoplay: false,
95    autoplaySpeed: 5000,
96    speed: 500,
97    pauseOnFocus: false,
98    pauseOnHover: false,
99    pauseOnDotsHover: false,
100    slidesToShow: 1,
101    centerMode: false,
102    asNavFor: "#pickup_thumb__slider02 .slider_box",
103    // responsive: [
104    //   {
105    //     breakpoint: 1024, // 399px以下のサイズに適用
106    //     settings: {
107    //       asNavFor: false,
108    //     },
109    //   },
110    // ],
111  })
112
113  //---------------------------------------------------------------------
114  //pickupスライダー サムネイル
115  //---------------------------------------------------------------------
116  $('#pickup_thumb__slider01 .slider_box').slick({
117    arrows: false,
118    dots: false,
119    prevArrow: '<button class="slide-arrow prev-arrow"></button>',
120    nextArrow: '<button class="slide-arrow next-arrow"></button>',
121    autoplay: false,
122    autoplaySpeed: 5000,
123    speed: 500,
124    pauseOnFocus: false,
125    pauseOnHover: false,
126    pauseOnDotsHover: false,
127    centerMode: false,
128    slidesToShow: 8,
129    asNavFor: "#pickup__slider01 .slider_box",
130    focusOnSelect: true,
131
132    responsive: [
133      {
134        breakpoint: 1024, // 399px以下のサイズに適用
135        settings: {
136          centerMode: true,
137          centerPadding: '15%',
138          slidesToShow: 3,
139          centerMode: true,
140          // asNavFor: false,
141        },
142      },
143    ],
144  })
145
146  $('#pickup_thumb__slider02 .slider_box').slick({
147    arrows: false,
148    dots: false,
149    prevArrow: '<button class="slide-arrow prev-arrow"></button>',
150    nextArrow: '<button class="slide-arrow next-arrow"></button>',
151    autoplay: false,
152    autoplaySpeed: 5000,
153    speed: 500,
154    pauseOnFocus: false,
155    pauseOnHover: false,
156    pauseOnDotsHover: false,
157    centerMode: false,
158    slidesToShow: 8,
159    asNavFor: "#pickup__slider02 .slider_box",
160    focusOnSelect: true,
161
162    responsive: [
163      {
164        breakpoint: 1024, // 399px以下のサイズに適用
165        settings: {
166          centerMode: true,
167          slidesToShow: 3,
168          // centerMode: true,
169          asNavFor: false,
170        },
171      },
172    ],
173  })
174  //---------------------------------------------------------------------
175  //g_navi
176  //---------------------------------------------------------------------
177  //---------------------------------------------------------------------
178  //バーガーメニュー
179  //---------------------------------------------------------------------
180  $('.header__menu_wrapper').click(function () {
181    $(this).find('.header__menu').toggleClass('header__menu_active')
182    $('.header__nav').toggleClass('header__nav_active');
183
184    if (!$('.header__nav').hasClass('header__nav_active')) {
185      $('.drpdwn_lst').slideUp();
186      $('.drpdwn_lst_ul').slideUp();
187    }
188  });
189    
190      $('.ac_in_ac').on('click', function () {
191    $(this).toggleClass('ac_in_ac__open');
192  })
193
194  //---------------------------------------------------------------------
195  //header accordion SPのみ
196  //---------------------------------------------------------------------
197   $('.drpdwn > strong').click(function () {
198
199    if (window.matchMedia("(max-width: 1023px)").matches) {
200      $(this).next('.drpdwn_lst').slideToggle(300);
201    } else {
202      // $(this).toggleClass('underline');
203    }
204  });
205
206  $('.drpdwn_lst >ul >li').click(function (e) {
207
208    if (window.matchMedia("(min-width: 1024px)").matches) {
209      //1024以上
210      // $(this).find('.drpdwn_lst_ul').css('display:block;');
211    } else {
212      //1024以下
213      $(this).find('.drpdwn_lst_ul').slideToggle(300);
214    }
215    e.stopPropagation();
216  });
217
218  //---------------------------------------------------------------------
219  //画面幅が1024pxになった際の処理
220  //---------------------------------------------------------------------
221  // $(window).resize(function () {
222  //   if (window.matchMedia("(min-width: 1024px)").matches) {
223  //     //1024以上
224  //     $('.drpdwn_lst').slideUp();
225  //     $('.drpdwn_lst').parent().children('strong').removeClass('strong_h_trigger');
226  //     $('.drpdwn > strong').removeClass('underline');
227  //   }
228  // });
229
230  //---------------------------------------------------------------------
231  //PC g-nav内リストホバーでunderline表示
232  //---------------------------------------------------------------------
233  //ホバー時
234  $('.drpdwn_lst').mouseover(
235    function () {
236      if (window.matchMedia("(min-width: 1024px)").matches) {
237        $(this).parent().children('strong').addClass('strong_h_trigger');
238      }
239    }
240  );
241
242  //ホバー解除時
243  $('.drpdwn_lst').mouseout(
244    function () {
245      if (window.matchMedia("(min-width: 1024px)").matches) {
246        $(this).parent().children('strong').removeClass('strong_h_trigger');
247      }
248    }
249  )
250
251  //ホバー時
252  $('.drpdwn').mouseover(
253    function () {
254        if (window.matchMedia("(min-width: 1024px)").matches) {
255          $(this).children('.drpdwn_lst').addClass('drpdwn_lst_on');
256        }
257    }
258  );
259
260  //ホバー解除時
261  $('.drpdwn').mouseout(
262    function () {
263      if (window.matchMedia("(min-width: 1024px)").matches) {
264        $(this).children('.drpdwn_lst').removeClass('drpdwn_lst_on');
265      }
266    }
267  )
268  //---------------------------------------------------------------------
269  //スクロールヘッダー
270  //---------------------------------------------------------------------
271  $(function () {
272    var header_position = 0;
273    var header = $('.header');
274    var bread_c = $('.breadcrumb');
275
276    $(window).on('load scroll', function () {
277
278      //---------------------------------------------------------------------
279      //スクロール値によるヘッダー切り替え
280      //---------------------------------------------------------------------
281      if ($(window).scrollTop() > 10) {
282        $('header').addClass('header__scroll');
283        $('.breadcrumb').addClass('breadcrumb__scroll');
284
285        //---------------------------------------------------------------------
286        //上スクロールでヘッダー表示
287        //---------------------------------------------------------------------
288        if ($(this).scrollTop() < header_position) {
289          //上にスクロールしたとき
290          header.removeClass('header__hide');
291          bread_c.removeClass('breadcrumb__hide');
292
293
294        } else if ($(this).scrollTop() > 150) {
295          //下にスクロールしたとき
296          header.addClass('header__hide');
297          bread_c.addClass('breadcrumb__hide');
298
299        }
300        header_position = $(this).scrollTop();
301
302      } else {//TOP0の時
303        $('header').removeClass('header__scroll');
304        $('.breadcrumb').removeClass('breadcrumb__scroll');
305      }
306    });
307  });
308
309  //---------------------------------------------------------------------
310  //アコーディオン
311  //---------------------------------------------------------------------
312  //HELP ご利用ガイド
313  //$('.guide__dl > dl').click(function () {
314 //   $(this).find('.dd_ac').slideToggle(300);
315 //   $(this).toggleClass('guide__dl_open');
316 // });
317      $('.guide__dl > dl dt').click(function () {
318    $(this).next('.dd_ac').slideToggle(300);
319    $(this).parent('dl').toggleClass('guide__dl_open');
320  });
321    
322      $('.guide__dl > dl .dd_ac').on('click',function(){
323    $(this).slideDown(300);
324    $(this).prev('dt').AddClass('guide__dl_open');
325  })
326
327  // $(window).on('ready', function () {
328    $(window).ready(function () {
329    // setTimeout(function () {
330
331    $('.exc__anc').on('click', function () {
332      $('#exchange').find('.dd_ac').slideDown(300)
333      $('#exchange').toggleClass('guide__dl_open');
334      setTimeout(function () {
335        $(window).scrollTop($('#exchange').position().top - 100);
336      }, 300);
337
338    });
339
340
341    $('.del__anc').on('click', function () {
342      $('#delivery').find('.dd_ac').slideDown(300)
343      $('#delivery').toggleClass('guide__dl_open');
344
345      setTimeout(function () {
346      $(window).scrollTop($('#delivery').position().top - 100);
347    }, 300);
348    });
349        
350    // URLのハッシュ部分(id)を取得
351    const urlHash = location.hash;
352    // そのidを持つ要素がなかったら処理を抜ける
353    if (!$(urlHash).length) return;
354
355    // アコーディオンの要素を開く処理
356    // $(urlHash).find('.dd_ac').slideToggle(300);
357    // $(urlHash).toggleClass('guide__dl_open');
358    $(urlHash).find('.dd_ac').slideToggle(300);
359    $(urlHash).toggleClass('guide__dl_open');
360    // }, 300); 
361  })
362    
363  //FAQ よくあるご質問
364  $('.faq__dl > dl dt').click(function () {
365    $(this).next('.dd_ac').slideToggle(300);
366    $(this).parent('dl').toggleClass('faq__dl_open');
367    // $(this).find('.dd_ac').slideToggle(300);
368    // $(this).toggleClass('faq__dl_open');
369  });
370
371
372  //---------------------------------------------------------------------
373  //moreボタン
374  //---------------------------------------------------------------------
375  $('.more').on('click', function () {
376    $(this).toggleClass('more__active');
377
378    //pickup
379    $(this).prev($('.more_box')).toggleClass('more_box__active');
380
381    //Ambassador
382    $(this).prev($('.intr')).toggleClass('intr__active');
383
384
385  });
386
387  //---------------------------------------------------------------------
388  //moreボタンのだし分け
389  //---------------------------------------------------------------------
390  $(window).on('load resize', function () {
391    // var more_box_H = $('.more_box').outerHeight();
392    var contents_H = $('.price').outerHeight() + $('.item_p').outerHeight();//more_box内のコンテンツheightの合計
393    var more_box_H_sp = 280;//SP時のmore_boxの高さ
394    var more_box_H_pc = 250;//PC時のmore_boxの高さ
395    $('.more').hide();//moreボタン隠す
396
397    var amb_H = $('.flex_box').outerHeight() + $('.prof').outerHeight();
398    var intr_box_H_sp = 490;
399
400    if (window.matchMedia("(max-width: 1023px)").matches) {
401      //1023以下の場合の処理
402
403      if (contents_H > more_box_H_sp) {
404        $('.more').show()//moreボタン表示
405      }
406      else if (contents_H < more_box_H_sp) {
407        $('.more').hide()
408        $('.more_box').css('height', '100%');//heightをテキストの量に合わせる
409      }
410    }
411
412    else if (window.matchMedia("(min-width: 1024px)").matches) {
413      //1024以上の場合の処理
414      if (contents_H > more_box_H_pc) {
415        $('.more').show()
416      }
417      else if (contents_H < more_box_H_pc) {
418        $('.more').hide()
419        $('.more_box').css('height', '100%');//heightをテキストの量に合わせる
420      }
421    }
422
423    //ambassador
424    if (window.matchMedia("(max-width: 767px)").matches) {
425      //1023以下の場合の処理
426      if (amb_H > intr_box_H_sp) {
427        $('.more').show()//moreボタン表示
428      }
429      else if (amb_H < intr_box_H_sp) {
430        $('.more').hide()
431        $('.more_box').css('height', '100%');//heightをテキストの量に合わせる
432      }
433
434    }
435  });
436
437  //---------------------------------------------------------------------
438  //header search button
439  //---------------------------------------------------------------------
440 $('.search_btn').on('click', function () {
441    $('.header__icon .search_container').toggleClass('search_container__active');
442    $(this).css({'z-index':'-1','opacity':'0'});
443    $('.search_btn_').css({'z-index':'1','opacity':'1'});
444  })
445    
446      $('.search_btn_').on('click',function(){
447
448  });
449    
450    $('.search_container input[type=search]').keyup(function(e) {
451  if(e.which == 13) {
452    $('.search_btn_').click();
453  }
454});
455
456  //---------------------------------------------------------------------
457  //SP フェードイン
458  //---------------------------------------------------------------------
459
460  $(function () {
461    $(window).on('scroll load', function () {
462      var setHeight = 0;
463      var wHeight = $(window).height();
464      var scrollTop = $(window).scrollTop();
465      if (window.matchMedia("(max-width: 1023px)").matches) {
466        setTimeout(function () {
467          $('.fade_sp').each(function () {
468            var targetPosition = $(this).offset().top;
469            if (scrollTop > targetPosition - wHeight + setHeight + 150) {
470              $(this).addClass('fade_sp__active');
471            }
472          });
473        }, 300);
474      }
475    });
476  });
477
478  //---------------------------------------------------------------------
479  //contact-お問い合わせフォーム selectボックス内のカラー変更
480  //---------------------------------------------------------------------
481  $('.select_box').on('click', function () {
482    $(this).find('select').addClass('change');
483  });
484
485  // $(window).on('load', function () {
486  //---------------------------------------------------------------------
487  //トップへ戻るボタン
488  //---------------------------------------------------------------------
489  // $(function () {
490  //   const pageTop = $('#top-back');
491  //   pageTop.hide();
492  //   $(window).scroll(function () {
493  //     if ($(this).scrollTop() > 100) {
494  //       pageTop.fadeIn();
495  //     } else {
496  //       pageTop.fadeOut();
497  //     }
498  //   });
499  //   pageTop.click(function () {
500  //     $("body,html").animate(
501  //       {
502  //         scrollTop: 0,
503  //       },
504  //       1000
505  //     );
506  //     return false;
507  //   });
508  // });
509  return false;
510  // });
511}(jQuery));
512
513}

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.