PageSourceSearch

https://kawadairanaika.com/wp-content/themes/basic-child/js/pc.js

js kawadairanaika.com collected 2026-10-06 08:11:00 UTC 1,468 bytes, 46 lines download raw bytes

1/*
2オリジナルJS設定ファイル
3*/
4
5jQuery(document).ready(function($){
6
7	$( '#global-nav' ).responsive_nav();
8	$(".module-title,.archive-title,.archive .post-title").wrapInner("<span></span>");
9	var topBtn = $('.rtt'); 
10	topBtn.hide();
11	$(window).scroll(function () {
12		if ($(this).scrollTop() > 100) {
13			topBtn.fadeIn();
14		} else {
15			topBtn.fadeOut();
16		}
17	});
18
19	/*$(function(){
20		var ua = navigator.userAgent;
21		if(ua.indexOf('iPhone') > 0 && ua.indexOf('iPod') == -1 || ua.indexOf('Android') > 0 && ua.indexOf('Mobile') > 0 && ua.indexOf('SC-01C') == -1 && ua.indexOf('A1_07') == -1 ){
22			$('.tel-link img').each(function(){
23				if($(this).attr('alt')) $(this).wrap($('<a>').attr('href', 'tel:' + $(this).attr('alt').replace(/-/g, '')));
24			});
25		}
26	});*/
27
28	jQuery('#postcode').keyup(function(event){
29		AjaxZip3.zip2addr(this,'','your-pref','your-city');
30	})
31	$("a[href$='pdf']").attr('target','_blank');
32	$("img").each(function(){
33		var imgw = $(this).attr('width');
34		if( imgw <= 0 ) $(this).removeAttr("width height");
35	});
36
37});
38
39//bodyの高さが足りないときは.bodywrapにヘッダとフッタの高さを除外した高さを与える
40var fitHeight = function(){
41	//bodyの高さがwindowの高さ以下の場合発動
42	if( jQuery('body').height() <= jQuery(window).height() ){
43		jQuery('.bodywrap').css({height: jQuery(window).height() - ( jQuery('#headerwrap').outerHeight(true) + jQuery('#footerwrap').outerHeight(true) ) + 'px'});
44	}
45  
46}

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.