PageSourceSearch

https://www.masumuradoll.co.jp/hpgen/HPB/theme/js/common.js

js masumuradoll.co.jp collected 2026-09-25 06:08:06 UTC 2,214 bytes, 94 lines download raw bytes

1
2jQuery(function($) {
3  $('#search_trigger').click(function(){
4    if(!$(this).hasClass('active')){
5      $(this).addClass('active');
6      $('#header_search_form').slideDown(300);
7    }else{
8      $(this).removeClass('active');
9      $('#header_search_form').slideUp(300);
10    }
11  });
12});
13
14/*スライド*/
15jQuery(function($) {
16  if ($('#top-slider').length) {
17    $('#top-slider').slick({
18      autoplay: true,
19      infinite: true,
20      speed:1000,
21      dots: true,
22      fade:true,
23      arrows:true,
24      slidesToShow: 1,
25      slidesToScroll: 1,
26      variableWidth:false,
27      responsive: [{
28        breakpoint: 1000,
29        settings: {
30          slidesToShow: 1,
31          slidesToScroll: 1,
32          centerMode:false,
33          variableWidth:false,
34        }
35      }]
36    });
37  };
38});
39
40/*フッターをアコーディオンに*/
41jQuery(function($) {
42  var sp_flag = false;
43
44  $( window ).on( 'load resize', function() {
45    if(window.matchMedia("(max-width:768px)").matches){
46      sp_flag = true;
47    }else{
48      $('.js-accodrion').each(function(i){
49        $(this).children(".sec-cont").css('display','black');
50      });
51      sp_flag = false;
52    }
53  });
54
55  $(function(){
56    $(".js-accodrion > h4").on('click', function(){
57      if ( sp_flag ){
58        $(this).next(".sec-cont:not(:animated)").slideToggle('fast');
59        $(this).toggleClass("active");
60      }
61    });
62  });
63});
64
65/*FAQ用のタブ切り替え*/
66jQuery(function($) {
67  $(".tabswitch").each(function(){
68    var set = $(this);
69    var btn = set.find(".tabnav li a");
70    var setpael = set.find(".tabnav li a.active");
71    var panel = set.find(".tab_content .tab_panel");
72    var setpanelID = $(setpael).attr("data-anchor");
73
74    $(panel).hide();
75    $(".tab_content .tab_panel"+setpanelID).show();
76
77    $(btn).on('click', function(){
78      $(btn).removeClass("active");
79      $(this).addClass("active");
80      $(panel).hide();
81      $($(this).attr("data-anchor")).fadeIn("normal");
82      return false;
83    });
84  });
85});
86
87/*FAQ用のアコーディオン*/
88jQuery(function($){
89  $(".accordion > dt").on('click', function(){
90    $(this).next("dd:not(:animated)").slideToggle('fast');
91    $(this).toggleClass("active");
92  });
93});
94

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.