PageSourceSearch

https://gotoh-geka.jp/wp-content/themes/theme/js/add31.js?ver=0895673a449e6fc441a65a95003a11bb

js gotoh-geka.jp collected 2026-09-30 23:21:04 UTC 7,352 bytes, 218 lines download raw bytes

1$(function(){
2  //診療時間にアイコン搭載
3  $('.header_week').each(function(){
4    var txt = $(this).html();
5    $(this).html(
6      txt.replace(/診療時間はこちら/g,'<i class="material-icons">chevron_right</i>  診療時間'));
7  });
8});
9
10$(function () {
11  $('#images').insertBefore('#contents');
12});
13
14//地図にアイコン搭載
15$(function(){
16  $('.mapSec_tomappage').each(function(){
17    var txt = $(this).html();
18    $(this).html(
19      txt.replace(/大きい地図はこちら/g,'<i class="material-icons">location_on</i> 大きい地図はこちら'));
20  });
21});
22
23//スマホにメニューのアイコンを記載
24$(function(){
25  $('#mobile a').each(function(){
26    var txt = $(this).html();
27    $(this).html(
28      txt.replace(/<img .*?src="(.*?)".*?>/g,'<i class="material-icons">menu</i>'));
29  });
30});
31
32//$(function(){
33//$('#footer').wrapAll('<div class="footercontents" />');
34//});
35
36$(function(){
37  $('table').wrap('<div class="scroll-table" />');
38});
39
40$(function(){
41  //以下まとめてfunction
42  var headerWeek = $('.header_week p');
43  if (headerWeek.length != 0) {
44    headerWeek.html(headerWeek.html().replace(/\<br\>/gi,''));
45    headerWeek.find('i').appendTo(headerWeek.find('a'));
46  }
47  //var infoData = $('.infoSec .info_date');
48  //if (infoData.length != 0) {
49  //  infoData.html(infoData.html().replace(/\[|\]|\s/gi,''));
50  //}
51  $('#searchsubmit').attr('src','https://wevery.jp/wp-content/uploads/2019/05/icon_find.png');
52  //$('.flexslider .slides').append($('.caption-wrap'));
53  for(var i = 0; i < $('.flexslider .slides .ms-image').length; i++){
54    //alert($('.caption-wrap').eq(i).html());
55    $('.flexslider .slides .ms-image').append($('.caption-wrap').eq(i).val());
56  }
57  $('#footer').append($('#footer .address'));
58
59  //$('.banner.smart_phonebottom').before($('.banner.smart_phonetop'));
60  $('#menu-main_menu').before('<div class="menu-side_top"></div>');
61
62  //$('.menu-side_top #page_search').attr('id','page_search2');
63  //$('.menu-side_top #s').attr('id','s2');
64  //$('.menu-side_top #searchsubmit').attr('id','searchsubmit2');
65
66  // 2020.08.06 change start
67  // safariだと上手くハンバーガメニューが動作しないため、クリックイベントの指定方法を変更
68  //  $('#mobile').on('click', function() {
69  //   if ($(this).hasClass('side-open')) {
70  //     $(this).delay(300).queue(function() {
71  //       $(this).removeClass('side-open').dequeue();
72  //       $('#header .header_tel').removeClass('side-open').dequeue();
73  //     });
74  //   } else {
75  //     $(this).addClass('side-open');
76  //     $('#header .header_tel').addClass('side-open');
77  //   }
78  // });
79  $(document).on('click', '#mobile', function() {
80    if ($(this).hasClass('side-open')) {
81      $(this).delay(300).queue(function() {
82        $(this).removeClass('side-open').dequeue();
83        $('#header .header_tel').removeClass('side-open').dequeue();
84      });
85    } else {
86      $(this).addClass('side-open');
87      $('#header .header_tel').addClass('side-open');
88    }
89  });
90  // 2020.07.31 change end
91
92  $('#sidr .close').on('click', function() {
93    if ($('#mobile').hasClass('side-open')) {
94      $('#mobile').delay(300).queue(function() {
95        $('#mobile').removeClass('side-open').dequeue();
96        $('#header .header_tel').removeClass('side-open').dequeue();
97      });
98    }
99  });
100
101  $('#sidr .menu_box h2').on('click', function() {
102    $(this).toggleClass('active').next().slideToggle(400);
103  });
104
105  $('#sidr ul#menu-main_menu > li').each(function(index, element){
106    if ($(this).find('.sub-menu').length > 0) {
107      $(this).children('a').after('<div class="accordion-elm">▼</div>');
108    }
109  });
110
111  $('#sidr ul#menu-main_menu > li .accordion-elm').on('click', function() {
112    $(this).toggleClass('active').next().slideToggle(400);
113  });
114  //まとめてfunctionここまで
115});
116
117//2022.03.08 del start function.phpに移動
118//2019.09.03 add start
119//--------------------------------------------
120// main article内に「<p><a href="hogehoge.com"></p>」の形式があったら
121// <a>に自動的に class="css_btn_class" を追加
122//--------------------------------------------
123//$(function(){
124//  //正規表現を指定
vendor: 3,036 bytes, lines 125-218
125//  //2021.03.01 change 1~2文字でもclassを指定できるように変更
126//  //var match_str = new RegExp('^<a (.*)href=(.*)>([^<].+[^>])</a>$', 'gm');
127//  var match_str = new RegExp('^<a (.*)href=(.*)>([^<]*[^>])</a>$', 'gm');
128//  var match_str_except = new RegExp('</a>[^.*]<a(.*)', 'gm');
129//  //pタグの中から、正規表現で一致する対象を検索
130//  $('#main article p').each(function(index, element){
131//    if($(element).html().match(match_str)){
132//      //<a>が連続している場合に、間に他の文章がなければボタンにする
133//      if(!$(element).html().match(match_str_except)){
134//        //「class=css_btn_class」を付与
135//        $(element).children('a').addClass('css_btn_class');
136//      }
137//    }
138//  });
139//});
140//2019.09.03 add end
141//2022.03.08 del end
142
143//detailsをIEに対応させる
144window.onload = function(){
145  void (function (root, factory) {
146    if (typeof define === 'function' && define.amd) define(factory)
147    else if (typeof exports === 'object') module.exports = factory()
148    else factory()
149  }(this, function () {
150    var DETAILS = 'details'
151    var SUMMARY = 'summary'
152
153    var supported = checkSupport()
154    if (supported) return
155
156    // Add a classname
157    document.documentElement.className += ' no-details'
158
159    window.addEventListener('click', clickHandler)
160
161    injectStyle('details-polyfill-style',
162      'html.no-details ' + DETAILS + ':not([open]) > :not(' + SUMMARY + ') { display: none; }\n' +
163      'html.no-details ' + DETAILS + ' > ' + SUMMARY + ':before { content: "\u25b6"; display: inline-block; font-size: .8em; width: 1.5em; }\n' +
164      'html.no-details ' + DETAILS + '[open] > ' + SUMMARY + ':before { content: "\u25bc"; }')
165
166    /*
167    * Click handler for `<summary>` tags
168    */
169
170    function clickHandler (e) {
171      if (e.target.nodeName.toLowerCase() === 'summary') {
172        var details = e.target.parentNode
173        if (!details) return
174
175        if (details.getAttribute('open')) {
176          details.open = false
177          details.removeAttribute('open')
178        } else {
179          details.open = true
180          details.setAttribute('open', 'open')
181        }
182      }
183    }
184
185    /*
186    * Checks for support for `<details>`
187    */
188
189    function checkSupport () {
190      var el = document.createElement(DETAILS)
191      if (!('open' in el)) return false
192
193      el.innerHTML = '<' + SUMMARY + '>a</' + SUMMARY + '>b'
194      document.body.appendChild(el)
195
196      var diff = el.offsetHeight
197      el.open = true
198      var result = (diff != el.offsetHeight)
199
200      document.body.removeChild(el)
201      return result
202    }
203
204    /*
205    * Injects styles (idempotent)
206    */
207
208    function injectStyle (id, style) {
209      if (document.getElementById(id)) return
210
211      var el = document.createElement('style')
212      el.id = id
213      el.innerHTML = style
214
215      document.getElementsByTagName('head')[0].appendChild(el)
216    }
217  }))
218}; // eslint-disable-line semi

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.