PageSourceSearch

https://www.minamiakatsuka.com/wp/wp-content/themes/mcf/js/config.js?ver=43a5a9caf1a6293c330b23c8dcd5e242

js minamiakatsuka.com collected 2026-10-06 08:08:32 UTC 3,834 bytes, 149 lines download raw bytes

1$(function(){		
2
3	// PC/スマホで表示の切替
4	// configChange();
5	// $(window).resize(function(){
6	//     configChange();
7	// });
8
9
10
11	// box全体リンク
12	$(function(){
13	$('.boxlink').click(function() {
14	location.href = $(this).find('a').attr('href');
15	});
16	});
17
18		// タブリンク
19	$('#myTab a').click(function (e) {
20	  e.preventDefault();
21	  $(this).tab('show');
22	})
23
24
25	// 画像ロールオーバー
26    $("img.rover").each(function() {
27        var off = this.src;
28        var dot = this.src.lastIndexOf('.');
29        var on = this.src.substr(0, dot) +
30            '_on' + this.src.substr(dot, 4);
31        $(this).hover(
32            function() { this.src = on; },
33            function() { this.src = off; });
34    });
35
36	//画像ポップアップ(colorbox)
37	//$('a.colorbox').colorbox({rel:'gal'});		
38	
39		// #で始まるアンカーをクリックした場合の処理(ページ内スクロール)
40   	$('a[href^=#]').click(function() {
41      // スクロールの速度
42      var speed = 400;// ミリ秒
43      // アンカーの値取得
44      var href= $(this).attr("href");
45      // 移動先を取得
46      var target = $(href == "#" || href == "" ? 'html' : href);
47      // 移動先を数値で取得
48      var position = target.offset().top;
49  	});
50
51	// トップに戻る
52	// hide #gotop first
53	$("#gotop").hide();		
54	// fade in #gotop
55	$(function () {
56		$(window).scroll(function () {
57			if ($(this).scrollTop() > 100) {
58				$('#gotop').fadeIn();
59			} else {
60				$('#gotop').fadeOut();
61			}
62		});	
63		// scroll body to 0px on click
64		$('#gotop a').click(function () {
65			$('body,html').animate({scrollTop: 0}, 400,'swing');
66			return false;
67		});
68	});
69
70	$(".hoverlight").on({
71	    "mouseenter":function(){
72	        $(this).fadeTo("fast",.5);
73	    },
74	    "mouseleave":function(){
75	    $(this).fadeTo("fast",1);
76	    }
77	});
78
79
80	// cookie fsizeの読込んで変数 newSize に代入
81	var newSize = $.cookie("fsize");
82	if ( newSize == null ){
83		var nowSize = 14;
84	}else if ( newSize == 14 ){
85		var nowSize = Number( newSize );
86	}else if ( newSize == 16 ){
87		var nowSize = Number( newSize );
88		// ボタンClassを変更
89		$("#fontM").removeClass("btn-primary");
90		$("#fontL").addClass("btn-primary");
91	}
92	$("body").css("font-size", + nowSize + "px");
93	 
94	//「標準」がクリックされた時の処理
95	$("#fontM").on("click",function () {
96		$("body").css("font-size", + 14 + "px");
97		$.cookie("fsize",14,{expires:7,path:'/'}); //cookie「fsize」に14をセットして7日保存
98		// ボタンClassを変更
99		$("#fontL").removeClass("btn-primary");
100		$("#fontM").addClass("btn-primary");
101	});
102	//「大」がクリックされた時の処理
103	$("#fontL").on("click",function () {
104		$("body").css("font-size", + 16 + "px");
105		$.cookie("fsize",16,{expires:7,path:'/'}); //cookie「fsize」に16をセットして7日保存
106		// ボタンClassを変更
107		$("#fontM").removeClass("btn-primary");
108		$("#fontL").addClass("btn-primary");
109	});
110
111	// $("ul.sub").hide();
112	$("ul.globalNav li").hover(function(){
113			$("ul:not(:animated)",this).fadeIn(400);
114	},
115	function(){
116			$("ul",this).fadeOut(400);
117	});
118
119	// スマートフォン用ナビ
120	if($("#sidr").length > 0){
121		$('#spNavBtn').sidr({
122			name: 'sidr',
123			side: 'right',
124			source: function() {
125				$('#wrap').on("click",function(){
126					$.sidr('close', 'sidr');
127				});
128			}		
129		});
130		$('#spNavBtn').on("click",function(){
131			var navIcon = $(this);
132			if ($(navIcon).children("i").hasClass('icon-list')) {
133				$(navIcon).html('閉じる');
134			}else{
135				$(navIcon).html('<i class="icon-list icon-white"></i> メニュー');
136			}			
137		});
138	}
139
140	// PC/スマホでナビゲーションの挙動分岐
141	function configChange(){
142		if ($(window).width() > 767){
143			$("#sideber").after($("#main"));
144		}else{
145			$("#main").after($("#sideber"));
146		}	
147	}
148
149});

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.