PageSourceSearch

https://zuiganji.or.jp/js/common.js

js zuiganji.or.jp collected 2026-10-02 07:38:35 UTC 1,946 bytes, 122 lines download raw bytes

1
2//nav
3
4$(function() {
5	$('#navToggle').click(function(){
6		$('header ').toggleClass('openNav');
7	});
8});
9
10// header右クリック禁止
11
12document.addEventListener('contextmenu', (event) => {
13     event.preventDefault();
14}, true);
15 
16//sp
17if(navigator.userAgent.match(/(iPhone|iPad|iPod|Android)/)){
18
19
20//
21$(function () {
22    $(window).scroll(function () {
23
24        if ($(this).scrollTop() > 200) {
25            $('#menuFIX').addClass('shown');
26        } else {
27            $('#menuFIX').removeClass('shown');
28        }
29    });
30});
31
32
33//
34$(function(){
35  
36  $('#Navigation ul li').click(function(){
37   
38    $(this).next('#Navigation ul ul').slideToggle("slow");
39    $(this).toggleClass("open");
40
41    $('#Navigation ul li').not($(this)).next('#Navigation ul ul').slideUp(900);
42    $('#Navigation ul li').not($(this)).removeClass("open");
43  });
44});
45
46 }
47 
48
49 
50// up
51
52$(function() {
53
54	var topBtn = $('#pageTop');	
55	topBtn.hide();
56	$(window).scroll(function () {
57		if ($(this).scrollTop() > 600) {
58			topBtn.fadeIn();
59		} else {
60			topBtn.fadeOut();
61		}
62	});
63
64});
65
66
67
68// link hole
69
70jQuery(function($) {
71  $('.ov').css('cursor','pointer');
72  $('.ov').on('click',function () {
73    window.location.href = $(this).find('a').attr('href');
74  });
75});
76
77
78
79// FAQ
80
81$(function()
82{
83	$("#qaCo p").hide();
84	$("#qaCo h3").each(function(i)
85	{
86		var elementVal = $(this).next("p");
87		
88		$(this).click(function()
89		{
90			elementVal.slideToggle("slow");
91   	     $(this).toggleClass("active");
92		});
93	});
94
95});
96
97
98
99// room
100
101$(function () {
102    $(window).scroll(function () {
103
104        if ($(this).scrollTop() > 1000) {
105            $('.bg.sp').addClass('no');
106        } else {
107            $('.bg.sp').removeClass('no');
108        }
109    });
110});
111
112// iPad判別
113$(function(){
114var ua = window.navigator.userAgent.toLowerCase();
115if (
116  ua.indexOf("ipad") > -1 ||
117  (ua.indexOf("macintosh") > -1 && "ontouchend" in document)
118) {
119  // iPadでの処理
120$('body').addClass('iPad');
121}
122    });

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.