PageSourceSearch

https://info.berufbaggage.com/store/common/js/jquery.bmbag.common.js

js berufbaggage.com collected 2026-10-06 04:26:05 UTC 4,649 bytes, 191 lines download raw bytes

1window.addEventListener('load', () => {
2  let vh = window.innerHeight * 0.01;
3  document.documentElement.style.setProperty('--vh', `${vh}px`);
4});
5window.addEventListener('resize', () => {
6  let vh = window.innerHeight * 0.01;
7  document.documentElement.style.setProperty('--vh', `${vh}px`);
8});
9
10var meta = document.createElement("meta");
11var getDevice = (function(){
12    var ua = navigator.userAgent;
13    if(ua.indexOf('iPhone') > 0 || ua.indexOf('iPod') > 0 || ua.indexOf('Android') > 0 && ua.indexOf('Mobile') > 0){
14    $(function(){
15    setCommonSP(); 
16    $("body").addClass("sp");
17    });	
18    }else if(ua.indexOf('iPad') > 0 || ua.indexOf('Android') > 0){
19    	$(function(){
20			setCommon();
21			$("body").addClass("tablet");
22    	});	
23    }else{
24    	$(function(){
25			setCommon();
26    	});
27    }
28})();
29
30
31$(function(){
32	$(window).on('load',function(){
33		$('#loader').delay(1500).fadeOut(1500);
34	});
35	$('.hum').on('click',function(){
36		if($('nav.on')[0]){
37			$('.hum').removeClass('on');
38			$('nav').removeClass('on');
39			$('body').removeClass('fixed');
40		}else{
41			$('.hum').addClass('on');
42			$('nav').addClass('on');
43			$('body').addClass('fixed');
44		}
45	});
46	$('.lk4').on('click',function(){
47		$(this).toggleClass('on');
48		$('.box-search').fadeToggle(250);
49	});
50	if($(window).width()<=768){
51		$('dt.cat').on('click',function(){
52			$(this).next().slideToggle(500);
53			$(this).toggleClass('on');		
54		});
55	}
56});
57
58
59
60
61
62
63
64function setCommonSP(){
65$(function(){
66
67
68/*
69$('img[src="//img.shop-pro.jp/img/new/icons1.gif"]').attr('src','https://bonbonstore.info/common/images/patch_new.png');
70$('img[src="//img.shop-pro.jp/img/new/icons16.gif"]').attr('src','https://bonbonstore.info/common/images/patch_sale.png');
71$('img[src="//img.shop-pro.jp/img/new/icons52.gif"]').attr('src','https://bonbonstore.info/common/images/patch_stock.png');
72*/
73
74
75});
76}
77
78function setCommon(){
79
80$(function() {
81var $scrollpos;
82$('.spmenu').on('click',function(){
83	if($('.spmenu.active')[0]){
84		$('.spmenu').removeClass('active');
85		$('nav').removeClass('active');
86		$('body').removeClass('fixed').css({'top': 0});
87		window.scrollTo(0,$scrollpos);
88	}else{
89		$scrollpos = $(window).scrollTop();
90		$('.spmenu').addClass('active');
91		$('nav').addClass('active');
92		$('body').addClass('fixed').css({'top': -$scrollpos});
93	}
94});
95
96/*
97do {
98$("#category").find(".inner").children("li:lt(4)").wrapAll('<ul class="package"></ul>');
99} while ($("#category").find(".inner").children("li").length);
100*/
101
102
103if($("#home")[0]){
104}else{
105/*if($("#list")[0] || $("#detail")[0]){
106$('#menu').find("li.mn3").addClass("active");
107}*/
108}
109//hover
110/*$("#menu a,#social a,.btn a,li a").hover(function(){
111$(this).stop().fadeTo(100, 0.7);
112},function(){
113$(this).stop().fadeTo(100, 1.0);
114});*/
115
116$(window).on('scroll',function(){
117	var $value = $(this).scrollTop();
118	if ( $value >= 100 ) {
119		$('header').addClass('fix');
120    } else {
121		$('header').removeClass('fix');
122    }
123});
124
125$('img[src="//img.shop-pro.jp/img/new/icons1.gif"]').attr('src','https://bonbonstore.info/common/images/patch_new.png');
126$('img[src="//img.shop-pro.jp/img/new/icons16.gif"]').attr('src','https://bonbonstore.info/common/images/patch_sale.png');
127$('img[src="//img.shop-pro.jp/img/new/icons52.gif"]').attr('src','https://bonbonstore.info/common/images/patch_stock.png');
128
129
130});
131}
132
133
134
135
136
137
138//スクロール
139(function($) {
140	$.fn.pageTopButton = function(option) {
141		var elements = this;
142		
143		elements.each(function(){
144			option = $.extend({
145				xPos: 250,			//表示が開始される位置
146				fadeTime : 100	//表示のフェード時間
147			}, option);
148			$(window).scroll(function () {
149				var WW= $(window).width();
150				if(WW>736){
151				if ($(window).scrollTop() >= option.xPos) {
152					$(elements).fadeIn(option.fadeTime);
153				} else if ($(window).scrollTop() <= option.xPos) {
154					$(elements).fadeOut(option.fadeTime);
155				}
156				}else{
157				if ($(window).scrollTop() >= (option.xPos-200)) {
158					$(elements).fadeIn(option.fadeTime);
159				} else if ($(window).scrollTop() <= (option.xPos-200)) {
160					$(elements).fadeOut(option.fadeTime);
161				}	
162				}
163			});
164		});	
165		return this;
166	};		
167})( jQuery );
168
169(function($){
170	$.fn.smoothscroll = function(option) {
171		option = $.extend({
172			vy: 500,
173			easing: 'easeOutExpo'
174		}, option);		
175		$('a[href^="#"]').click(function(){
176			var WW= $(window).width();
177			if(WW>736){
178			var yPos = $($(this).attr('href')).offset().top-100;	
179			}else{
180			var yPos = $($(this).attr('href')).offset().top-50;
181			}
182			$('html,body').stop().animate({scrollTop:(yPos)}, option.vy , option.easing);
183			return false;
184		});
185	}
186})(jQuery);
187
188$(function(){
189	$('html').smoothscroll();
190	$('#btn_pagetop').pageTopButton();
191});

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.