PageSourceSearch

https://www.asia-p.co.jp/js/script.js

js asia-p.co.jp collected 2026-10-06 13:17:42 UTC 1,739 bytes, 52 lines download raw bytes

1jQuery( function ($) {
2
3    // 「ページTOPへ」ボタンは、scrolltopcontrol.js を使用
4    // その他のナビゲーションボタン
5    $('a.smooth').bind('click',function(event) {
6	$('html, body').stop().animate({
7	    scrollTop: $( $(this).attr('href') ).offset().top
8	},  1000, 'easeInOutExpo');
9	event.preventDefault();
10    });
11
12    // マウスオーバーによる画像の入れ替え (jQueryバージョンのSmartRollover)
13    $('img').each( function () {
14	if ( $(this).attr( 'src' ).match( /_off\./ ) ) {
15	    var mom = $(this).parent();
16	    if ( $(this).hasClass( 'current' ) || $(mom).hasClass( 'current' ) ) {
17		$(this).attr( 'src', $(this).attr( 'src' ).replace( /_off\./, '_on.' ) );
18	    }
19	    $(this).bind( 'mouseover', function( event ) {
20		if ( ! $(this).hasClass( 'current' ) && ! $(mom).hasClass( 'current' ) ) {
21		    $(this).attr( 'src', $(this).attr( 'src' ).replace( /_off\./, '_on.' ) );
22		}
23		event.preventDefault();
24	    });
25	    $(this).bind( 'mouseout', function( event ) {
26		if ( ! $(this).hasClass( 'current' ) && ! $(mom).hasClass( 'current' ) ) {
27		    $(this).attr( 'src', $(this).attr( 'src' ).replace( /_on\./, '_off.' ) );
28		}
29		event.preventDefault();
30	    });
31	}
32    });
33
34    // CSS :nth-child に対応していない IE 用のパッチ
35//  if ( navigator.userAgent.search(/MSIE [5678]/) != -1 ) {
36//	$(':nth-child(odd)').css('clear','left');
37//  }
38
39});
40
41
42/*
432014.03.18 WEB8 Kitagawa追加
44PC側で電話番号へのリンク無効化
45*/
46jQuery( function ($) {
47	//iPhoneとAndroidのどちらでもなければクリックしても無効
48	if(navigator.userAgent.indexOf('iPhone') < 0 && navigator.userAgent.indexOf('Android') < 0) {
49		$("a.tapandcall").removeAttr("href");
50	}
51});
52

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.