PageSourceSearch

https://www.nerima-dental-office.com/common/js/main.js

js nerima-dental-office.com collected 2026-10-05 06:17:12 UTC 1,581 bytes, 45 lines download raw bytes

1//スマートフォンの時は発信
2$(function(){
3    var ua = navigator.userAgent;
4    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 ){
5        $('.tel-link img').each(function(){
6            var alt = $(this).attr('alt');
7            $(this).wrap($('<a>').attr('href', 'tel:' + alt.replace(/-/g, '')));
8        });
9    }
10});
11
12//タブレットviewport固定
13$(function(){
14    // setViewport
15    tbView = 'width=1100px';
16 
17    if(navigator.userAgent.indexOf('iPhone') > 0 || navigator.userAgent.indexOf('iPod') > 0 || (navigator.userAgent.indexOf('Android') > 0 && navigator.userAgent.indexOf('Mobile') > 0)){
18        $('head').prepend('<meta name="viewport" content="' + spView + '" id="viewport">');
19    } else if(navigator.userAgent.indexOf('iPad') > 0 || (navigator.userAgent.indexOf('Android') > 0 && navigator.userAgent.indexOf('Mobile') == -1) || navigator.userAgent.indexOf('A1_07') > 0 || navigator.userAgent.indexOf('SC-01C') > 0){
20        $('head').prepend('<meta name="viewport" content="' + tbView + '" id="viewport">');
21    } 
22});
23
24
25
26//マウスオン、画像切り替え
27$(window).load(function() {
28    if (551 <= $(this).width()) {
29     $('.link img').hover(function(){
30        $(this).attr('src', $(this).attr('src').replace('_off', '_on'));
31          }, function(){
32             if (!$(this).hasClass('currentPage')) {
33             $(this).attr('src', $(this).attr('src').replace('_on', '_off'));
34        }
35   });
36    }
37});
38
39
40
41
42
43
44
45

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.