PageSourceSearch

https://sancha-pain.com/js/jQ.js

js sancha-pain.com collected 2026-10-06 08:00:46 UTC 3,310 bytes, 129 lines download raw bytes

1// JavaScript Document
2
3
4jQuery(document).ready( function() {
5
6
7// SPドロップダウンメニュー SlickNav
8//  $('#nav').slicknav({
9//    label: '',
10//    closeOnClick: 'true'
11//  });
12
13
14// 電話番号
15//  if (navigator.userAgent.match(/(iPhone|iPad|Android|Mobile)/)) {
16//    $('.tel').each(function() {
17//      var str = $(this).html();
18//      if ($(this).children().is('img')) {
19//        $(this).html($('<a>').attr('href', 'tel:' + $(this).children().attr('alt').replace(/-/g, '')).append(str + '</a>'));
20//      } else {
21//        $(this).html($('<a>').attr('href', 'tel:' + $(this).text().replace(/-/g, '')).append(str + '</a>'));
22//      }
23//    });
24//  }
25
26
27// トップ キービジュアル背景
28//  $('#keyvsl').bgswitcher({
29//    images: [
30//      "img/index_keyvsl01.jpg",
31//      "img/index_keyvsl01.jpg",
32//      "img/index_keyvsl01.jpg",
33//      "img/index_keyvsl01.jpg",
34//      "img/index_keyvsl01.jpg"
35//    ],
36//    interval: 5000,
37//    effect: "fade"
38//  });
39
40// トップ キービジュアル
41//  $('#keyvsl').bxSlider({
42//    auto: true,
43//    pause: 5000,
44//    speed: 1000,
45//    mode: 'fade',
46//    controls: false,
47//    pager: false
48//  });
49//  $('#keyvsl img').delay(50).css('visibility','visible');
50
51
52// トップ お知らせ アコーディオン
53//  $('.index .news_title').slice(0, 3).addClass("close");
54//  $('.index .news_title').click(function(){
55//    $(this).toggleClass("close").next('.index .news_body').slideToggle();
56//  });
57
58
59// クリニック紹介ギャラリー
60//  $('#clinicslide').sliderPro({
61//    width: 750,
62//    height: 500,
63//    fade: true,
64//    arrows: true,
65//    buttons: false,
66//    fullScreen: false,
67//    shuffle: false,
68//    thumbnailArrows: true,
69//    autoplay: false
70//  });
71//  $('#clinicslide img, p').delay(50).css('display','block');
72
73
74// PC 診療内容ドロップダウンメニュー
75//  var windowWidth = $(window).width();
76//  var windowSm = 768;
77//  if (windowWidth >= windowSm) { // PCの場合
78//    $('#nav .subnav').hide();
79//    $('#nav .sub').click( function(event) {
80//      $(this).toggleClass('close').next('#nav .subnav').slideToggle();
81//      $('#nav .sub').not($(this)).next('#nav .subnav').css('display','none');
82//    });
83//  }
84
85// SP 診療内容ドロップダウンメニュー
86//  if (windowWidth <= windowSm) { // スマホの場合
87//    $( '.tit' ).click( function() {
88//      $( this ).toggleClass('close').next('.subnav').slideToggle();
89//    }) ;
90//  }
91
92
93// スムーズスクロール
94  $('.scr').click(function(){
95    var speed = 500;
96    var href= $(this).attr("href");
97    var target = $(href == "#" || href == "" ? 'html' : href);
98    var position = target.offset().top;
99    $("html, body").animate({scrollTop:position}, speed, "swing");
100    return false;
101  });
102
103});
104
105
106// ページアップ単体
107var up = $("#pageup");
108$(window).scroll(function () {
109  if ($(this).scrollTop() > 200) {
110    up.fadeIn();
111  } else {
112    up.fadeOut();
113  }
114});
115up.click(function () {
116  $("body, html").animate({ scrollTop: 0 }, 500);
117  return false;
118});
119
120// SPフッター固定 電話・ページアップ
121var f_fix = $(".tel_access").hide();
122$(window).scroll(function () {
123  if ($(this).scrollTop() > 200) {
124    f_fix.fadeIn().css('visibility', 'visible');
125  } else {
126    f_fix.fadeOut();
127  }
128});
129

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.