PageSourceSearch

https://lula-niigata.com/wp-content/themes/nbc2018/share/js/main.js

js lula-niigata.com collected 2026-10-05 07:30:32 UTC 1,501 bytes, 58 lines download raw bytes

1jQuery(function($){
2	var $topBtn = $("#pagetop"); 
3	$topBtn.hide();
4	$(window).on('scroll', function () {
5		if( $(this).scrollTop() > 100 ) {
6			$topBtn.not(":animated").fadeIn();
7		} else {
8			$topBtn.not(":animated").fadeOut();
9		}
10	});
11	$topBtn.on('click', function () {
12		$('body,html').animate({
13			scrollTop: 0
14		}, 500);
15		return false;
16	});
17
18	$('.menu-trigger').on('click', function() {
19		var w;
20		$(this).toggleClass('active');
21		w = window.innerWidth;
22		$(".sp-menu").removeClass('pc');
23		$(".sp-menu").addClass('sp');
24		$(".sp-menu").css({'left' : w, 'width': w});
25		$(".sp-menu").stop(true, false).animate({left: 0},200,"linear");
26		$(".close-btn").css({'display' : 'block'});
27		return false;
28	});
29	$('.close-btn').on('click', function() {
30		$(".menu-trigger").toggleClass('active');
31		w = window.innerWidth;
32		$(".sp-menu").removeClass('sp');
33		$(".sp-menu").addClass('pc');
34		$(".sp-menu").stop(true, false).animate({left: "-"+w},200,"linear");
35		$(".close-btn").css({'display' : 'none'});
36		return false;
37	});
38	
39	//TOPのみ
40	$(function() {
41		var $tab = $('.tab');
42		var $cntList = $('.content li.tab-list');
43		if( !$tab.length || !$cntList.length ) return false;
44
45		var $tabItem = $tab.find('li');
46		if( !$tabItem.length ) return false;
47
48		var cls = 'select';
49		$tabItem.on('click', function() {
50			var index = $tabItem.index(this);
51			$cntList.css('display','none');
52			$cntList.eq(index).css('display','block');
53			$tabItem.removeClass(cls);
54			$(this).addClass(cls);
55		});
56	});
57
58});

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.