PageSourceSearch

https://www.pref.fukushima.jp/ssi/js/tab.js

js pref.fukushima.jp collected 2026-09-24 18:19:04 UTC 662 bytes, 30 lines download raw bytes

1window.onload = function() {
2	tab();
3}
4
5function tab(id) {
6	var lis = document.getElementById("tabs").getElementsByTagName("li");
7	for(var i = 0; i < lis.length;i++) {
8		if(id) {
9			var n = lis[i].getAttribute("name");
10			var box = document.getElementById(n);
11			if(n == id) {
12				box.style.display		= "block";
13				box.style.visibility	= "visible";
14				lis[i].className		= "open";
15			} else {
16				box.style.display		= "none";
17				box.style.visibility	= "hidden";
18				lis[i].className		= "";
19			}
20		} else {
21			lis[i].onclick = function() {
22				tab(this.getAttribute("name"));
23			}
24		}
25	}
26	if(!id) {
27		//デフォルトで表示させるタブ
28		tab("box1");
29	}
30}

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.