PageSourceSearch

https://kashiwanoha-hifuka.jp/blog/wp-content/themes/clinicblog2/js/script.js?ver=7.1.2

js kashiwanoha-hifuka.jp collected 2026-09-30 19:54:20 UTC 2,356 bytes, 75 lines download raw bytes

1// JavaScript Document
2
3
4// サイドバー 本サイトから引っ張る時間表(自ドメイン内のみ) ----------------------------------------
5
6function iframe_in() {
7  const root_time = document.getElementById("side_time");
8//  root_time.style.width = root_time.contentWindow.document.body.scrollWidth + "px";
9  root_time.style.height = root_time.contentWindow.document.body.scrollHeight + "px";
10}
11
12
13jQuery(function($) {
14
15// Global ----------------------------------------
16
17  const windowWidth = $(window).width(); // ウィンドウ幅取得
18  const windowSm = 768; // ブレイクポイント
19
20
21// 768ブレイクポイントでリロード ----------------------------------------
22
23// 印刷中かどうかを判断するフラグ
24let isPrinting = false;
25// 印刷プレビューが開始されたときにフラグをtrueに設定
26window.addEventListener('beforeprint', () => {
27  isPrinting = true;
28});
29// 印刷プレビューが終了したときにフラグをfalseに設定
30window.addEventListener('afterprint', () => {
31  isPrinting = false;
32});
33
34const breakpoint = window.matchMedia('(max-width:767px)');
35breakpoint.addEventListener("change", () => {
36  // 印刷操作中でなければブラウザリロード
37  if (!isPrinting) {
38    window.location.reload();
39  }
40});
41
42
43// 電話番号 ----------------------------------------
44
45  if(navigator.userAgent.match(/(iPhone|iPad|Android|Mobile)/)){
46    $('.tel').each(function(){
47      const str = $(this).html();
48      if($(this).children().is('img')){
49        $(this).html($('<a>').attr('href', 'tel:' + $(this).children().attr('alt').replace(/-/g, '')).append(str + '</a>'));
50      } else {
51        $(this).html($('<a>').attr('href', 'tel:' + $(this).text().replace(/-/g, '')).append(str + '</a>'));
52      }
53    });
54  }
55
56
57// ページアップ ----------------------------------------
58
59  if(windowWidth >= windowSm){ // PCの場合(SPは出しっぱ)
60    $('#tel_up').hide();
61    $(window).scroll(function(){
62      if($(this).scrollTop() > 200){
63        $('#tel_up').fadeIn().css('visibility', 'visible');
64      } else {
65        $('#tel_up').fadeOut();
66      }
67    });
68  }
69
70  $('#pageup').on('click', function() {
71    $('html, body').animate({ scrollTop: 0 }, 500, 'swing');
72    return false;
73  });
74
75});

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.