PageSourceSearch

https://www.town.hirono.fukushima.jp/_template_/_site_/_default_/_res/js/common.js

js town.hirono.fukushima.jp collected 2026-10-02 05:30:27 UTC 2,186 bytes, 88 lines download raw bytes

1//本文へ
2(function(){
3var $ = FI.jQuery;
4$(function(){
5	$("#blockskip a").focus(function(){
6		$(this).addClass("show");
7	});
8	$("#blockskip a").blur(function(){
9		$(this).removeClass("show");
10	});
11});
12})();
13
14//マイページ
15(function(){
16var $ = FI.jQuery;
17	$(function() {
18		$('#mypage > h2') . click( function() {
19			$(this).next().toggle();
20	});
21});
22})();
23
24//大きな文字で印刷
25function printData(){
26var target = document.getElementById("printcss");
27target.href = target.href.replace("print_dummy","print_l");
28var printx = 0;
29var printSet = setInterval(function() {
30	printx++;
31	//終了条件
32	if (printx == 1) {
33		window.print();
34		target.href = target.href.replace("print_l","print_dummy");
35		clearInterval(printSet);
36	}
37}, 500);
38}
39
40//キャプションのある画像のアクセシビリティ対応
41(function(){
42var $ = FI.jQuery;
43$(function(){
44	$("figure").each(function(i){
45		$(this).attr("role","group");
46		i += 1;
47		$(this).attr("aria-labelledby","figimage" + i);
48		$(this).children("figcaption").attr("id","figimage" + i);
49	});
50});
51})();
52
53//標準リスト カード型のリンク範囲を広げる
54(function(){
55var $ = FI.jQuery;
56$(function(){
57	$(".listcard li").click(function(){
58		window.location=$(this).find("a").attr("href");
59		return false;
60	});
61});
62})();
63
64//スマートフォン表示時に表を横スクロールさせる
65(function(){
66var $ = FI.jQuery;
67var tables = $('table');
68	if (typeof tables == 'undefined' || !tables) return;
69	if (tables.length > 0 && !$('#eventcalendar').length && !$('#form1').length && !$('#map').length){
70		
71		var winWidth = $(window).width();
72		
73		tables.each(function(){
74			if($(this).width() < winWidth){
75				$(this).wrap('<div class="tablewrap tablenormal">');
76			}else{
77				$(this).wrap('<div class="tablewrap tablenormal">');
78				$('<button class="tsbutton" aria-controls="gnavismp" aria-expanded="false">表の幅を切り替える</button>').insertBefore(this);
79			}
80			
81		});
82
83		$('.tablewrap .tsbutton').click(function() {
84			$(this).parent('.tablewrap').toggleClass("tablescroll").toggleClass("tablenormal");
85		});
86
87	}
88})();

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.