PageSourceSearch

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

js reprocare-otakanomori.jp collected 2026-10-05 03:40:36 UTC 2,557 bytes, 81 lines download raw bytes

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

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.