PageSourceSearch

https://freesia.blue/wp-content/themes/keni62_wp_corp_1706271215/js/utility.js?ver=4.1.41

js freesia.blue collected 2026-10-07 18:28:34 UTC 2,507 bytes, 87 lines download raw bytes

1jQuery(function(){
2
3//マウスオーバー(ファイルの末尾に「_off」「_on」で切り替え)
4jQuery('img.over,input.over')
5.each( function(){
6	jQuery('<img>,<input>').attr('src',jQuery(this).attr('src').replace(/^(.+)_off(\.[a-z]+)$/, "$1_on$2"));
7})
8.mouseover( function(){
9	jQuery(this).attr('src',jQuery(this).attr('src').replace(/^(.+)_off(\.[a-z]+)$/, "$1_on$2"));
10})
11.mouseout( function(){
12	jQuery(this).attr('src',jQuery(this).attr('src').replace(/^(.+)_on(\.[a-z]+)$/, "$1_off$2"));
13});
14
15//検索ボックス内のテキスト
16jQuery('.search').val('検索ワードを入力');
17jQuery('.search').focus( function(){
18	var searchWord=jQuery(this);
19		if(searchWord.val()=='検索ワードを入力'){
20		jQuery(this).val(''),
21		jQuery(this).addClass('onfocus');
22	};
23});
24jQuery('.search').blur( function(){
25	var searchWord=jQuery(this);
26		if(searchWord.val()==''){
27		jQuery(this).val('検索ワードを入力'),
28		jQuery(this).removeClass('onfocus');
29	};
30});
31
32//テーブルのセルとリストに偶数・奇数を付与
33jQuery('li:odd,tr:odd').addClass('odd'),
34jQuery('li:even,tr:even').addClass('even');
35
36//スムーズスクロール
37jQuery('a[href^="#"]').click(function(){
38	var Hash = jQuery(this.hash);
39	var HashOffset = jQuery(Hash).offset().top;
40	jQuery('html,body').animate({
41		scrollTop: jQuery(jQuery(this).attr('href')).offset().top }, 'slow','swing');
42	return false;
43});
44
45//グローバルメニューのプルダウン設定
46jQuery('#menu li').hover(function() {
47	jQuery('> ul:not(:animated)', this).fadeIn('normal');
48}, function() {
49	jQuery('> ul', this).fadeOut('normal');
50});
51
52
53//グローバルメニュー用のIE「z-index」バグ対策
54var zNum = 1000;
55jQuery('#global-nav li').each(function() {
56	jQuery(this).css('zIndex', zNum);
57	zNum = zNum-10;
58});
59
60//モバイル用のグローバルメニュー設定
61jQuery('.btn-gnav').click(function(){
62	jQuery('.menu-wrap').toggleClass('showMenu');
63});
64
65//モバイル用のサイドバーとサブコンテンツの設定
66jQuery('.sub-contents-btn').click(function(){
67	jQuery('.sub-column #sub-contents-in').toggleClass('showSubConts');
68});
69
70jQuery('.sidebar-btn').click(function(){
71	jQuery('.sub-column #sidebar-in').toggleClass('showSidebar');
72});
73
74//クリックでテキストを選択
75jQuery('.text-field')
76	.focus(function(){
77		jQuery(this).select();
78	})
79	.click(function(){
80		jQuery(this).select();
81		return false;
82});
83
84
85});
86
87

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.