PageSourceSearch

https://www.bunka.go.jp/common/js/fonsize.js

js bunka.go.jp collected 2026-10-01 08:51:08 UTC 797 bytes, 27 lines download raw bytes

1$(function () {
2	//ローカルストレージの設定と取得
3	var key = 'font';
4	var data = localStorage.getItem(key);
5	if (!data) data = 'normal';
6	$('body').addClass('textsize_' + data);
7
8	$('.header_fontsize a.' + data).addClass('current');
9
10	$('.header_fontsize a').click(function () {
11		$('.header_fontsize a').removeClass('current');
12		$(this).addClass('current');
13		$('body').removeClass(($('body').prop('class').match(/\btextsize_\S+/g) || []).join(' '));
14		if ($(this).hasClass('exlarge')) {
15			data = 'exlarge';
16		} else if ($(this).hasClass('large')) {
17			data = 'large';
18		} else {
19			data = 'normal';
20		}
21		$('body').addClass('textsize_' + data);
22		localStorage.setItem(key, data);
23
24		// 要素の高さの再取得
25		$.fn.matchHeight._update();
26	});
27});

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.