PageSourceSearch

https://www.isp-ss.jp/js/script.js

js isp-ss.jp collected 2026-10-04 05:04:32 UTC 2,367 bytes, 81 lines download raw bytes

1;(function($,undefined){
2	$(function(){
3		// メインナビのサブ項目
4		$('.nav-top').on({
5			mouseenter: function(){
6				$(this).find('ul').first().stop().slideDown();
7			},
8			mouseleave: function(){
9				$(this).find('ul').first().stop().slideUp();
10			}
11		});
12		// pagetopをクリックした時
13		$('.totop').on('click', function(evt){
14			evt.preventDefault();
15			$('html, body').animate({
16				scrollTop: 0
17			}, 300);
18		});
19		// メインナビと限定ページのリンクとpagetopの表示
20		var timer = null;
21		$(window).on('load scroll', function(){
22			timer = setTimeout(function(){
23				if ($(window).scrollTop() >= 72) {
24					$('#main-nav, #limited').addClass('fixed');
25					$('#totop').addClass('show');
26				}
27				else {
28					$('#main-nav, #limited').removeClass('fixed');
29					$('#totop').removeClass('show');
30				}
31			}, 100);
32		});
33		// シェアボタン
34		$('#share-open').on({
35			mouseenter: function(){
36				$(this).find('ul').addClass('show');
37			},
38			mouseleave: function(){
39				$(this).find('ul').removeClass('show');
40			}
41		});
42		// target:_blankを付けるリンク
43		$('a[href^="http"], a[href$=".pdf"], a[href$=".doc"], a.external').filter(function(){
44			// テスト用
45			//return !/211\.19\.62\.123/.test($(this).attr('href'));
46			// 本番用
47			return !/www\.isp-ss\.jp/.test($(this).attr('href'));
48		}).attr('target', '_blank');
49
50		// メールアドレスを書き出す
51		// <span class="show-email" data-mail-pre="info" data-mail-suf="jaipa.or.jp"></span>
52		$('.show-email').email();
53
54		// サブナビとぱんくず
55		var current = $('.path > .current').text();
56		$('#sub-nav').find('a').filter(function(){
57			return $(this).text() === current;
58		}).parent('li').addClass('current');
59		$('.path > .link').filter(function(){
60			return $(this).text() === current;
61		}).css('display', 'none');
62	});
63
64	$.fn.email = function() {
65		return this.each(function(){
66			var myadd1 = $(this).attr('data-mail-pre'),
67				myadd2 = $(this).attr('data-mail-suf'),
68				txt = myadd1 + String.fromCharCode(64) + myadd2,
69				html = $(this).text() || txt;
70			if (myadd1 === undefined || myadd2 === undefined) {
71				return false;
72			}
73			$(this).empty().append(
74				$('<a></a>', {
75					href: 'mai' + 'lto:' + txt,
76					html: html
77				})
78			);
79		})
80	};
81})(jQuery);

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.