PageSourceSearch

https://www.bridgelink.jp/common/js/common.js

js bridgelink.jp collected 2026-10-07 00:55:09 UTC 2,550 bytes, 99 lines download raw bytes

1/*-------------------------------------
2 ロールオーバー
3-------------------------------------*/
4$(function(){
5	$('a img, input[type="image"]').hover(function(){
6		$(this).attr('src', $(this).attr('src').replace('_off', '_ov'));
7		}, function(){
8			if (!$(this).hasClass('currentPage')) {
9			$(this).attr('src', $(this).attr('src').replace('_ov', '_off'));
10		}
11	});
12});
13
14
15/*-------------------------------------
16 hoverで透過
17-------------------------------------*/
18$(function() {
19	$('.overimg, .btn_w').hover(
20		function(){
21			$(this).stop().animate({opacity: 0.7}, 150);
22		},function(){
23			$(this).stop().animate({opacity: 1}, 150);
24	});
25});
26
27
28/*-------------------------------------
29 ページ内リンクスクロール
30-------------------------------------*/
31
32$(function(){
33	$('a[href^=#]').click(function() {
34		var speed = 400;
35		var href= $(this).attr("href");
36		var target = $(href == "#" || href == "" ? 'html' : href);
37		var position = target.offset().top;
38		$('body,html').animate({scrollTop:position}, speed, 'swing');
39		return false;
40	});
41});
42
43
44/*-------------------------------------
45 電話番号
46-------------------------------------*/
47
48$(function(){
49	var ua = navigator.userAgent;
50	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 ){
51		$('.tel-link img').each(function(){
52			var alt = $(this).attr('alt');
53			$(this).wrap($('<a>').attr('href', 'tel:' + alt.replace(/-/g, '')));
54		});
55	}
56});
57
58
59/*-------------------------------------
60 heightLine
61-------------------------------------*/
62
63$(function(){
64	var width = $(window).width();
65	$(".heightLine").heightLine();
66});
67
68/*-------------------------------------
69 画像エフェクト
70-------------------------------------*/
71
72$(function(){
73	$('.boxgrid.captionfull').hover(function(){
74		$(".hidden", this).stop().animate({top:'0px'},{queue:false,duration:320});
75	}, function() {
76		$(".hidden", this).stop().animate({top:'160px'},{queue:false,duration:320});
77	});
78});
79
80/*-------------------------------------
81 div全体 リンク
82-------------------------------------*/
83
84$(function(){
85	$(".hidden").click(function(){
86		window.location=$(this).find("a").attr("href");
87		return false;
88	});
89});
90
91/*-------------------------------------
92 スマホメニュー
93-------------------------------------*/
94$(function(){
95	$('#btn_menu, .overlay').on('click', function() {
96		$('nav, .overlay').slideToggle();
97		$('#btn_menu, .overlay').toggleClass('active');
98	});
99});

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.