PageSourceSearch

https://foodcruise-factory.com/wp-content/themes/theme-hannari/cave1/library/js/jquery.pages.js

js foodcruise-factory.com collected 2026-10-07 23:20:27 UTC 5,463 bytes, 203 lines download raw bytes

1
2
3/*jquery.colorbox.js設定*/
4$(document).ready(function(){
5	$(".cb").colorbox({
6		rel:'slideshow',
7    	slideshow:false,
8		maxWidth:"90%",
9		height:"auto",
10		maxHeight:"90%",
11		opacity: 0.7
12	});
13});
14
15
16//PCでa tel 反応させない
17$(function(){
18    var ua = navigator.userAgent;
19    if(ua.indexOf('iPhone') < 0 && ua.indexOf('Android') < 0){
20        $('.telhref span').each(function(){
21            $(this).unwrap();
22        });
23    }
24});
25
26//a:hover を光らせる
27$(function(){
28 if(navigator.userAgent.indexOf('iPhone') > 0 || navigator.userAgent.indexOf('iPod') > 0 || (navigator.userAgent.indexOf('Android') > 0 && navigator.userAgent.indexOf('Mobile') > 0)){}
29else {
30$(function(){
31	$('a,input[type="submit"],input[type="button"]').not('.btn-list').hover(
32		function(){$(this).stop().fadeTo(0, 0.6).fadeTo('normal', 1.0);},
33		function(){$(this).stop().fadeTo('fast', 1.0);}
34	);
35});
36}
37});
38
39//toTOP
40$(function() {
41    var topBtn = $('#totop');    
42    topBtn.hide();
43    //スクロールが100に達したらボタン表示
44	  var ua = navigator.userAgent; 
45if (ua.match('Trident')) {
46    $('body').scroll(function () {
47        if ($(this).scrollTop() > 200) {
48            topBtn.fadeIn();
49        } else {
50            topBtn.fadeOut();
51        }
52    });
53}else{
54	$(window).scroll(function () {
55        if ($(this).scrollTop() > 200) {
56            topBtn.fadeIn();
57        } else {
58            topBtn.fadeOut();
59        }
60    });
61}
62	//スクロールしてトップ
63    topBtn.click(function () {
64        $('body,html').animate({
65            scrollTop: 0
66        }, 500, 'swing');
67        return false;
68    });
69});
70
71
72//アンカースクロール
73$(function(){
74   // #で始まるアンカーをクリックした場合に処理
75   $('a[href^="#"]:not(.sp_menu a)').click(function() {
76      // スクロールの速度
77      var speed = 400; // ミリ秒
78      // アンカーの値取得
79      var href= $(this).attr("href");
80      // 移動先を取得
81      var target = $(href == "#" || href == "" ? 'html' : href);
82      // 移動先を数値で取得
83      var position = target.offset().top;
84      // スムーススクロール
85      $('body,html').animate({scrollTop:position}, speed, 'swing');
86      return false;
87   });
88});
89
90//スクロールでヘッダーにbg
91$(function() {
92    //スクロールが100に達したらボタン表示
93	  var ua = navigator.userAgent; 
94if (ua.match('Trident')) {
95   $('body').on('load scroll', function(){
96		//ヘッダーの高さ分(80px)スクロールするとfixedクラスを追加
97		if ($('body').scrollTop() > 200) {
98			$('#top #nav-wrap2').addClass('back_b', 400);
99		} else {
100			//80px以下だとfixedクラスを削除
101			$('#top #nav-wrap2').removeClass('back_b', 400);
102		}
103	});
104}else{
105	$(window).on('load scroll', function(){
106		//ヘッダーの高さ分(80px)スクロールするとfixedクラスを追加
107		if ($(window).scrollTop() > 200) {
108			$('#top #nav-wrap2').addClass('back_b', 400);
109		} else {
110			//80px以下だとfixedクラスを削除
111			$('#top #nav-wrap2').removeClass('back_b', 400);
112		}
113	});
114}
115});
116
117//ハンバーガーメニュー
118$(function() {
119	var ua = navigator.userAgent; 
120if (ua.match('Trident')) {
121    var w = $('body').width();
122}else{
123	var w = $(window).width();
124}
125    var x = 1400;
126    if (w <= x) {
127	 //スマホの場合
128$(function(){
129	var $body = $('body');
130    $(".menu-trigger").click(function(){
131		$(".menu-trigger").stop().toggleClass("active");
132        $("#nav").stop().slideToggle();
133    });
134});
135 
136}
137});
138//tile.js
139
140$(function(){
141 if(navigator.userAgent.indexOf('iPhone') > 0 || navigator.userAgent.indexOf('iPod') > 0 || (navigator.userAgent.indexOf('Android') > 0 && navigator.userAgent.indexOf('Mobile') > 0)){}
142else {
143$(function(){
144	$(".tile").tile();
145});
146}
147});
148
149//徐々に表示
150$(document).ready(function() {
151    $('.mainv_logo_wrap').fadeIn(1000 ,
152		function(){
153			$("#mainv").addClass('.mainv_border');
154		});
155});
156
157//IE11でfixedの位置を調整
158$(function(){
159	var ua = navigator.userAgent; 
160	if (ua.match('Trident')) {
161		var scrollsize = window.innerWidth - document.body.clientWidth;
162		var oldRight = parseInt($('.menu-trigger').css('right'));
163		var newRight = scrollsize + oldRight;
164		$('.menu-trigger').css('right', newRight);  
165	}
166});
167$(function(){
168	var ua = navigator.userAgent; 
169	if (ua.match('Trident')) {
170		var scrollsize = window.innerWidth - document.body.clientWidth;
171		var oldRight = parseInt($('#dropmenu').css('right'));
172		var newRight = scrollsize + oldRight;
173		$('#dropmenu').css('right', newRight);  
174	}
175});
176$(function(){
177	var ua = navigator.userAgent; 
178	if (ua.match('Trident')) {
179		var scrollsize = window.innerWidth - document.body.clientWidth;
180		var newWidth = "calc(100vw - " + (scrollsize + "px") + ')' ;
181		$('.overlay').css('width', newWidth);  
182	}
183});
184
185//マウスオーバーで表示していた所をアコーディオンに
186$(function(){
187 if(navigator.userAgent.indexOf('iPhone') > 0 || navigator.userAgent.indexOf('iPod') > 0 || (navigator.userAgent.indexOf('Android') > 0 && navigator.userAgent.indexOf('Mobile') > 0)){
188$(function(){
189    $(".about-img").click(function(){
190    $(".about_on",this).stop(true, false).fadeToggle();
191	$(".about_off",this).stop(true, false).fadeToggle();
192    });
193});
194$(function(){
195    $(".alc_list").click(function(){
196	$(".alc_off",this).stop(true, false).toggle();
197	$(".alc_on",this).stop(true, false).fadeToggle();
198	$(this).stop(true, false).stop().toggleClass("active");
199    });
200});
201 }
202});
203

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.