PageSourceSearch

https://www.nta.go.jp/template/js/custom.js

js nta.go.jp collected 2026-09-24 06:59:48 UTC 1,735 bytes, 38 lines download raw bytes

1$(document).ready(function() {
2	var lang = document.documentElement.getAttribute('lang')
3	$('h3.sidenavi-title a').on('click',function(){
4		if (lang == 'ja') {
5			if ($(this).hasClass('collapsed') && $(this).find('img').attr('src') == '/template/img/template/navi_down.png') {
6				$(this).find('img').attr("src", "/template/img/template/navi_up.png");
7				$(this).find('img').attr("alt", "\u30e1\u30cb\u30e5\u30fc\u3092\u9589\u3058\u308b");
8			} else {
9				$(this).find('img').attr("src", "/template/img/template/navi_down.png");
10				$(this).find('img').attr("alt", "\u30e1\u30cb\u30e5\u30fc\u3092\u958b\u304f");
11			}
12		} else if (lang == 'en') {
13			if ($(this).hasClass('collapsed')) {
14				$(this).find('img').attr("src", "/template/img/template/navi_up.png");
15				$(this).find('img').attr("alt", "menu close");
16			} else {
17				$(this).find('img').attr("src", "/template/img/template/navi_down.png");
18				$(this).find('img').attr("alt", "menu open");
19			}
20		}
21	});
22    const gtagScript = `
23        <!-- Google tag (gtag.js) -->
vendor: 72 bytes, lines 23-24
23
24        <script async src="https://www.googletagmanager.com/gtag/js?id=
24G-GH42VGR0CY
vendor: 20 bytes, lines 24-25
24"></script>
25        
25<script> 
vendor: 127 bytes, line 25
25window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', '
25G-GH42VGR0CY
vendor: 4 bytes, line 25
25'); 
25</script>`;
26    $("head").append(gtagScript);
27});
28jQuery(document).ready(function ($) {
29    $('.dropdown-toggle').click(function(e) {
30        // 要素で親メニューリンクとドロップダウンメニュー表示を切り分ける
31        if ($(e.target).hasClass('dlink-menu')) {
32            var location = $(this).attr('href');
33            window.location.href = location;
34            return false;
35        }
36        return true;
37    });
38});

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.