PageSourceSearch

https://t-meister.jp/js/kujyo/utility.js

js t-meister.jp collected 2026-10-04 00:27:26 UTC 2,885 bytes, 97 lines download raw bytes

1//jQuery.noConflict(); 一旦コメントアウト
2(function($) {
3	
4		//マウスオーバー(ファイルの末尾に「_off」「_on」で切り替え)
5		$("img.over,input.over")
6		.each( function(){
7			$("<img>,<input>").attr("src",$(this).attr("src").replace(/^(.+)_off(\.[a-z]+)$/, "$1_on$2"));
8		})
9		.mouseover( function(){
10			$(this).attr("src",$(this).attr("src").replace(/^(.+)_off(\.[a-z]+)$/, "$1_on$2"));
11		})
12		.mouseout( function(){
13			$(this).attr("src",$(this).attr("src").replace(/^(.+)_on(\.[a-z]+)$/, "$1_off$2"));
14		});
15		
16		//テーブルのセルとリストに偶数・奇数を付与
17		$("li:odd,tr:odd").addClass("odd"),
18		$("li:even,tr:even").addClass("even");
19
20		//スムーズスクロール
21		var topBtn = $('.page-top');
22		topBtn.hide();
23		$(window).scroll(function () {
24			if ($(this).scrollTop() > 100) {
25				topBtn.fadeIn();
26			} else {
27				topBtn.fadeOut();
28			}
29		});
30
31		$("a[href^='#']").click(function(){
32			var Hash = $(this.hash);
33			var HashOffset = $(Hash).offset().top;
34			$("html,body").animate({
35				scrollTop: $($(this).attr("href")).offset().top }, 'slow','swing');
36			return false;
37		});
38
39		//グローバルメニューのプルダウン設定
40		$("#menu li").hover(function() {
41			$("> ul:not(:animated)", this).fadeIn("normal");
42		}, function() {
43			$("> ul", this).fadeOut("normal");
44		});
45		
46		//モバイル用のグローバルメニュー設定
47		$(".global-nav-panel").click(function(){
48			$("#menu").toggleClass("show-menu");
49		});
50
51		$(".global-nav-panel").click(function(){
52			if($("span",this).hasClass("btn-global-nav icon-gn-menu")){
53				$("span",this).removeClass("icon-gn-menu").addClass("icon-gn-close");
54				$("span",this).text("閉じる");
55			} else {
56				$("span",this).removeClass("icon-gn-close").addClass("icon-gn-menu");
57				$("span",this).text("メニュー");
58			};
59        });
60
61		//クリックでテキストを選択
62		$(".text-field")
63			.focus(function(){
64				$(this).select();
65			})
66			.click(function(){
67				$(this).select();
68				return false;
69		});
70
71		function lpHeader(){
72			hdrWidth = $(window).width();
73			hdrHeight = $(window).height();
74			$('.full-screen,.full-screen .site-header-in,.full-screen .site-header-conts').css({
75				width: hdrWidth + 'px',
76				height: hdrHeight + 'px',
77				maxHeight: '1500px'
78			});
79
80			if(window.innerWidth < 678) {
81				h1Size = hdrWidth / 12;
82				fontSize = hdrWidth / 16;
83				$('.full-screen .site-header-conts h1').css('font-size', h1Size + 'px');
84				$('.full-screen .site-header-conts .lp-catch').css('font-size', fontSize + 'px');
85			} else {
86				h1Size = hdrHeight / 12;
87				fontSize = hdrHeight / 24;
88				$('.full-screen .site-header-conts h1').css('font-size', h1Size + 'px');
89				$('.full-screen .site-header-conts .lp-catch').css('font-size', fontSize + 'px');
90			}
91		}
92		lpHeader();
93		$(window).resize(function() {
94			lpHeader();
95		});
96	
97})(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.