PageSourceSearch

https://nagato-archives.jp/js/sp-menu.js

js nagato-archives.jp collected 2026-10-04 00:24:04 UTC 2,438 bytes, 107 lines download raw bytes

1$(function(){
2
3	//
4	// 和暦
5	//
6
7	setDisplayWareki("none");
8	setDisplaySubWareki("none");
9
10	// 過去の広報紙をみる(和暦)
11	$("#history_wareki").click(function(){
12		if ($("li.history_wareki").css("display") == "none") {
13			setDisplayWareki("block");
14			setDisplaySubWareki("none");
15			return;
16		}
17		$("li.history_wareki").css("display", "none");
18	});
19
20	// 過去の広報紙をみる(和暦年指定)
21	$("li.history_wareki").each(function(){
22		id = $(this).attr("id");
23		if (typeof id !== "undefined") {
24			$(document).on("click", "#" + id, function(){
25				id = $(this).attr("id");
26				if ($("li." + id).css("display") == "none") {
27					$("li." + id).css("display", "block");
28					return;
29				}
30				$("li." + id).css("display", "none");
31			});
32		}
33	});
34
35	//
36	// 西暦
37	//
38
39	setDisplaySeireki("none");
40	setDisplaySubSeireki("none");
41
42	// 過去の広報紙をみる(西暦)
43	$("#history_seireki").click(function(){
44		if ($("li.history_seireki").css("display") == "none") {
45			setDisplaySeireki("block");
46			setDisplaySubSeireki("none");
47			return;
48		}
49		$("li.history_seireki").css("display", "none");
50	});
51
52	// 過去の広報紙をみる(西暦年指定)
53	$("li.history_seireki").each(function(){
54		id = $(this).attr("id");
55		if (typeof id !== "undefined") {
56			$(document).on("click", "#" + id, function(){
57				id = $(this).attr("id");
58				if ($("li." + id).css("display") == "none") {
59					$("li." + id).css("display", "block");
60					return;
61				}
62				$("li." + id).css("display", "none");
63			});
64		}
65	});
66
67	//
68	// 長門市のあゆみ
69	//
70	$("li.spmenu_history").css("display", "none");
71
72	// 長門市のあゆみ
73	$("#spmenu_history").click(function(){
74		if ($("li.spmenu_history").css("display") == "none") {
75			$("li.spmenu_history").css("display", "block");
76			return;
77		}
78		$("li.spmenu_history").css("display", "none");
79	});
80
81});
82
83// 和暦
84function setDisplayWareki(mode) {
85	$("li.history_wareki").css("display", mode);
86}
87function setDisplaySubWareki(mode) {
88	$("li.history_wareki").each(function(){
89		id = $(this).attr("id");
90		if (typeof id !== "undefined") {
91			$("li." + id).css("display", mode);
92		}
93	});
94}
95
96// 西暦
97function setDisplaySeireki(mode) {
98	$("li.history_seireki").css("display", mode);
99}
100function setDisplaySubSeireki(mode) {
101	$("li.history_seireki").each(function(){
102		id = $(this).attr("id");
103		if (typeof id !== "undefined") {
104			$("li." + id).css("display", mode);
105		}
106	});
107}

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.