PageSourceSearch

https://takachihofarm-shop.com/view/asset/user-1-1-4-6f7c2753aba987d0e92716129c2966ac.js

js takachihofarm-shop.com collected 2026-10-02 22:24:06 UTC 4,012 bytes, 150 lines download raw bytes

1$(function() {
2window.WebFontConfig = {
3    google: { 
4        families: [
5            'Material+Icons',
6            'Montserrat'
7        ] 
8    },
9    active: function() {
10        sessionStorage.fonts = true;
11    }
12};
13(function() {
14    var wf = document.createElement('script');
15    wf.src = 'https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js';
16    wf.type = 'text/javascript';
17    wf.async = 'true';
18    var s = document.getElementsByTagName('script')[0];
19    s.parentNode.insertBefore(wf, s);
20})();
21
22    
23    var scrollpos = 0;
24
25    $('.humberger').on('click', function() {
26        if(!$('body').hasClass('fixed')) {
27            scrollpos = $(window).scrollTop();
28            $('body').addClass('fixed').css({'top': -scrollpos});
29            $('body').addClass('drawer-opened');
30            $('.button-menu').addClass('button-menu-opened');
31        } else {
32            $('body').removeClass('fixed').css({'top': 0});
33            window.scrollTo(0 , scrollpos);
34            $('body').removeClass('drawer-opened');
35            $('.button-menu').removeClass('button-menu-opened');
36        }
37    });
38
39    $('.navbar-list-parent').hover(
40        function () {
41            $(this).children('.navbar-sub').fadeIn('fast');
42        },
43        function () {
44            $(this).children('.navbar-sub').fadeOut('fast');
45        }
46    );
47
48    $('.search-keyword').on('keypress', function(e) {
49        if (e.keyCode == 13) {
50            var index = $('.search-keyword').index(this);
51            $('.search-url')[index].click();
52        }
53    });
54
55/*===========================================================================
56
57	アコーディオンの実装01
58
59===========================================================================*/
60
61   // 初期設定
62	function fxFirstSetting(){
63
64        $('#l_category .l-categoryList > .body01').each(function() {
65				$(this).hide();
66		    });
67
68		    $('#l_category .l-categoryList > .header01').each(function() {
69				$(this).addClass('HIDE');
70		    });
71
72        $('#l_category .l-categoryList > .body02').each(function() {
73        $(this).hide();
74        });
75
76        $('#l_category .l-categoryList > .header02').each(function() {
77        $(this).addClass('HIDE');
78        });
79
80
81
82	}
83
84	// ロード時のトリガー
85	$(window).on('load', function() { fxFirstSetting(); });
86
87    // ボタンの動作・表示の制御
88	    $('#l_category .l-categoryList > .header01').on('click', function() {
89
90
91				if ($(this).hasClass('SHOW')){
92
93			        $(this).addClass('HIDE').removeClass('SHOW');
94					$(this).closest('.l-categoryList').find('.body01').slideUp('fast');
95
96				} else {
97
98			        $(this).addClass('SHOW').removeClass('HIDE');
99					$(this).closest('.l-categoryList').find('.body01').slideDown('fast');
100
101				}
102
103	    });
104
105      // ボタンの動作・表示の制御
106        $('#l_category .l-categoryList > .header02').on('click', function() {
107
108
109          if ($(this).hasClass('SHOW')){
110
111                $(this).addClass('HIDE').removeClass('SHOW');
112            $(this).closest('.l-categoryList').find('.body02').slideUp('fast');
113
114          } else {
115
116                $(this).addClass('SHOW').removeClass('HIDE');
117            $(this).closest('.l-categoryList').find('.body02').slideDown('fast');
118
119          }
120
121        });
122
123
124
125// タイマー制御
126 $(".view_timer").each(function(index, target) {
127   var startDate = $(this).attr("data-start-date");
128   var endDate = $(this).attr("data-end-date");
129   var nowDate = new Date();
130   if (startDate) {
131     startDate = new Date(startDate);
132   } else {
133     startDate = nowDate;
134   }
135   if (endDate) {
136     endDate = new Date(endDate);
137   }
138   if (startDate <= nowDate && (!endDate || nowDate <= endDate)) {
139     $(this).show();
140   } else {
141     $(this).hide();
142   }
143 });
144    
145    
146/*= end ===================================================================*/
147
148
149});
150

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.