PageSourceSearch

https://www.town.nishiaizu.fukushima.jp/ssi/js/lowerpage.js?20231129am1044

js town.nishiaizu.fukushima.jp collected 2026-10-02 07:10:19 UTC 3,347 bytes, 102 lines download raw bytes

1$(window).on('load', function () {
2    // ユーザエージェント
3    var ua = navigator.userAgent;
4    if ((ua.indexOf('iPhone') > 0) || ua.indexOf('iPod') > 0 || (ua.indexOf('Android') > 0 && ua.indexOf('Mobile') > 0)) {
5        $('head').prepend('<meta name="viewport" content="width=device-width,initial-scale=1">');
6    } else {
7        $('head').prepend('<meta name="viewport" content="width=1300">');
8    }
9
10    // グロナビドロップダウン
11    $('.menu-item-has-children > a').focus(function () {
12        $(this).siblings('.sub-menu').addClass('focused');
13    }).blur(function () {
14        $(this).siblings('.sub-menu').removeClass('focused');
15    });
16    // For children
17    $('.sub-menu a').focus(function () {
18        $(this).parents('.sub-menu').addClass('focused');
19    }).blur(function () {
20        $(this).parents('.sub-menu').removeClass('focused');
21    });
22
23    // アコーディオン
24    $("#acMenu > dt > button,#acMenu2 > dt > button").on("click", function () {
25        $(this).parent('dt').next().slideToggle();
26        if ($(this).find('.icon--toggle').text() === '+') {
27            $(this).find('.icon--toggle').text('―');
28            $(this).find('.icon--toggle').attr('title', 'メニューを閉じる');
29            $(this).attr('aria-selected', true);
30            $(this).attr('aria-expanded', true);
31            $(this).parent('dt').next('dd').attr('aria-hidden', false);
32        } else {
33            $(this).find('.icon--toggle').text('+');
34            $(this).find('.icon--toggle').attr('title', 'メニューを開く');
35            $(this).attr('aria-selected', false);
36            $(this).attr('aria-expanded', false);
37            $(this).parent('dt').next('dd').attr('aria-hidden', true);
38        }
39    });
40
41// ページトップ
42var pageTop1 = $("#footer_link_pagetop");
43pageTop1.click(function () {
44	$('body, html').animate({
45		scrollTop: 0
46	}, 500);
47	return false;
48});
49
50});
51
52jQuery(document).ready(function ($) {
53	// 目的別で探すをクリックで実行
54	$(".openNavi,.closeNavi").click(function () {
55		// bodyにclass付け外し
56		$("body").toggleClass("active");
57	});
58	// ハンバーガーメニューをクリックで実行
59	$("#spm_menu").click(function () {
60		// bodyにclass付け外し
61		$("body").toggleClass("active2");
62	});
63});
64
65// グローバルナビ固定
66$(function () {
67    var _window = $(window),
68        _header = $('#top_search'),
69        heroBottom;
70
71    _window.on('scroll', function () {
72        heroBottom = $('#header2').height();
73        if (_window.scrollTop() > heroBottom) {
74            _header.addClass('fixed');
75        }
76        else {
77            _header.removeClass('fixed');
78        }
79    });
80
81    _window.trigger('scroll');
82});
83
84
85// 位置調整
86$(document).ready(function () {
87	const mediaQuery = window.matchMedia('(max-width: 670px)');
88
89	function handle(mm) {
90		if (mm.matches) {
91			// ウィンドウサイズが670px以下のとき
92			$('#top_search').insertAfter('#he_right');
93		} else {
94			// それ以外
95			$('#top_search').insertAfter('#header2');
96		}
97	}
98	// ページが読み込まれた時に実行
99	handle(mediaQuery);
100	// ウィンドウサイズが変更されても実行されるように
101	mediaQuery.addListener(handle);
102});

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.