PageSourceSearch

https://www.kashikojima.com/provence/js/main.js

js kashikojima.com collected 2026-10-08 18:33:41 UTC 1,450 bytes, 42 lines download raw bytes

1//jQuery(document).ready(function($){
2$(window).load(function(){
3	//open/close primary navigation
4	var current_scrollY;
5	
6	$('.cd-primary-nav-trigger').on('click', function(){
7		$('.cd-menu-icon').toggleClass('is-clicked'); 
8		$('.cd-header').toggleClass('menu-is-open');
9		
10		//in firefox transitions break when parent overflow is changed, so we need to wait for the end of the trasition to give the body an overflow hidden
11		if( $('.cd-primary-nav').hasClass('is-visible') ) {
12			$('.cd-primary-nav').removeClass('is-visible').one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend',function(){
13				$('body').removeClass('overflow-hidden');
14				$( '#wrapper' ).attr( { style: '' } );
15				$( 'html, body' ).prop( { scrollTop: current_scrollY } );
16			});
17		} else {
18			$('.cd-primary-nav').addClass('is-visible').one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend',function(){
19				$('body').addClass('overflow-hidden');
20				$( '#wrapper' ).css( {
21				position: 'fixed',
22				width: '100%',
23				top: -1 * current_scrollY
24				} );
25			});	
26		current_scrollY = $( window ).scrollTop();
27		}
28	});
29	
30	var reserveLink = $('#header-wrap .reserveLink.fixed');
31	// ボタン非表示
32	reserveLink.hide();
33
34	// 100px スクロールしたらボタン表示
35	$(window).scroll(function () {
36		if ($(this).scrollTop() > 100) {
37			reserveLink.fadeIn();
38		} else {
39			reserveLink.fadeOut();
40		}
41	});
42});

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.