PageSourceSearch

https://nozomi-zaitaku.com/wp-content/themes/theme/js/add42.js?ver=7c32b21d1ed98791aa64d7b670a8bfbb

js nozomi-zaitaku.com collected 2026-10-06 08:11:01 UTC 9,882 bytes, 305 lines download raw bytes

1$(function(){
2  //R02
3
4  //トップに戻る変更
5  $('.pagetop').each(function(){
6    var txt = $(this).html();
7    $(this).html(txt.replace(/\▲ ページのトップに戻る/g,'<i class="material-icons">expand_less</i><span class="spf_word">TOP</span>'));
8  });
9
10  var topBtn = $('.pagetop');
11  topBtn.hide();
12
13  //スクロールが100に達したらボタン表示
14  $(window).scroll(function () {
15    if ($(this).scrollTop() > 100) {
16      topBtn.fadeIn();
17    } else {
18      topBtn.fadeOut();
19    }
20  });
21
22  //スクロールしてトップ
23  topBtn.on('click', function () {
24    $('body,html').animate({
25      scrollTop: 0
26    }, 500);
27    return false;
28  });
29
30  // gNavの固定
31  var _window = $(window),
32    _header = $('#gNav'),
33    headerBottom;
34
35  _window.on('scroll',function(){
36    headerBottom = $('#header').height();
37    if(_window.scrollTop() > headerBottom &&  _header.hasClass('is-fixed') == false){
38      _header.css({"top": '-100px'});
39      _header.addClass('is-fixed');
40      _header.animate({"top": 0},600);
41    }
42    else if(_window.scrollTop() < headerBottom &&  _header.hasClass('is-fixed') == true){
43      _header.removeClass('is-fixed');
44    }
45  });
46
47  _window.trigger('scroll');
48
49
50  $("#side_blog").insertAfter("#main");
51
52  //2022.03.01 del start 必要なし
53  //// main article内の<ul>に「<li>flow</li>」の形式があったら
54  //// <ul>に自動的に class="list_flow_class" を追加
55  //  //正規表現を指定
56  //  var match_str = new RegExp('<li>flow</li>');
57  //  //ulタグの中から、正規表現で一致する対象を検索
58  //  $('#main article ul').each(function(index, element){
59  //    if($(element).html().match(match_str)){
60  //        //「list_flow_class」を付与
61  //        $(element).addClass('list_flow_class');
62  //    }
63  //  });
64  //2022.03.01 del end
65
66  //お知らせの日時変更
67
68  $('.info_date').each(function(){
69    var txt = $(this).html();
70    $(this).html(txt.replace(/\[/g,'').replace(/]/g,'').replace(/更新/g,'').replace(/ /g,''));
71  });
72
73  //診療時間にアイコン搭載
74  $('.header_week').each(function(){
75    var txt = $(this).html();
76    $(this).html(
77      txt.replace(/診療時間はこちら/g,'<i class="material-icons">chevron_right</i>  診療時間'));
78  });
79});
80
81$(function () {
82  $('#images').insertBefore('#contents');
83});
84
85//地図にアイコン搭載
86$(function(){
87  $('.mapSec_tomappage').each(function(){
88    var txt = $(this).html();
89    $(this).html(
90      txt.replace(/大きい地図はこちら/g,'<i class="material-icons">location_on</i> 大きい地図はこちら'));
91  });
92});
93
94//スマホにメニューのアイコンを記載
95$(function(){
96  $('#mobile a').each(function(){
97    var txt = $(this).html();
98    $(this).html(
99      txt.replace(/<img .*?src="(.*?)".*?>/g,'<i class="material-icons">menu</i>'));
100  });
101});
102
103//$(function(){
104//$('#footer').wrapAll('<div class="footercontents" />');
105//});
106
107$(function(){
108  $('table').wrap('<div class="scroll-table" />');
109});
110
111$(function(){
112  //以下まとめてfunction
113  var headerWeek = $('.header_week p');
114  if (headerWeek.length != 0) {
115    headerWeek.html(headerWeek.html().replace(/\<br\>/gi,''));
116    headerWeek.find('i').appendTo(headerWeek.find('a'));
117  }
118  //var infoData = $('.infoSec .info_date');
119  //if (infoData.length != 0) {
120  //  infoData.html(infoData.html().replace(/\[|\]|\s/gi,''));
121  //}
122  $('#searchsubmit').attr('src','https://wevery.jp/wp-content/uploads/2019/05/icon_find.png');
123  //$('.flexslider .slides').append($('.caption-wrap'));
124  for(var i = 0; i < $('.flexslider .slides .ms-image').length; i++){
125    //alert($('.caption-wrap').eq(i).html());
126    $('.flexslider .slides .ms-image').append($('.caption-wrap').eq(i).val());
127  }
128  $('#footer').append($('#footer .address'));
129
130  //$('.banner.smart_phonebottom').before($('.banner.smart_phonetop'));
131  $('#menu-main_menu').before('<div class="menu-side_top"></div>');
132
133  //$('.menu-side_top #page_search').attr('id','page_search2');
134  //$('.menu-side_top #s').attr('id','s2');
135  //$('.menu-side_top #searchsubmit').attr('id','searchsubmit2');
136
137  // 2020.08.06 change start
138  // safariだと上手くハンバーガメニューが動作しないため、クリックイベントの指定方法を変更
139  //  $('#mobile').on('click', function() {
140  //   if ($(this).hasClass('side-open')) {
141  //     $(this).delay(300).queue(function() {
142  //       $(this).removeClass('side-open').dequeue();
143  //       $('#header .header_tel').removeClass('side-open').dequeue();
144  //     });
145  //   } else {
146  //     $(this).addClass('side-open');
147  //     $('#header .header_tel').addClass('side-open');
148  //   }
149  // });
150  $(document).on('click', '#mobile', function() {
151    if ($(this).hasClass('side-open')) {
152      $(this).delay(300).queue(function() {
153        $(this).removeClass('side-open').dequeue();
154        $('#header .header_tel').removeClass('side-open').dequeue();
155      });
156    } else {
157      $(this).addClass('side-open');
158      $('#header .header_tel').addClass('side-open');
159      $('body').css({'overflow':'hidden','height':'100vh','position':''});
160    }
161  });
162  // 2020.07.31 change end
163
164  $('#sidr .close').on('click', function() {
165    if ($('#mobile').hasClass('side-open')) {
166      $('#mobile').delay(300).queue(function() {
167        $('#mobile').removeClass('side-open').dequeue();
168        $('#header .header_tel').removeClass('side-open').dequeue();
169        $('body').css({'overflow':'','height':''});
170      });
171    }
172  });
173
174  $('#sidr .menu_box h2').on('click', function() {
175    $(this).toggleClass('active').next().slideToggle(400);
176  });
177
178  $('#sidr ul#menu-main_menu > li').each(function(index, element){
179    if ($(this).find('.sub-menu').length > 0) {
180      $(this).children('a').after('<div class="accordion-elm">▼</div>');
181    }
182  });
183
184  $('#sidr ul#menu-main_menu > li .accordion-elm').on('click', function() {
185    $(this).toggleClass('active').next().slideToggle(400);
186  });
187  //まとめてfunctionここまで
188});
189
190//2022.03.08 del start function.phpに移動
191//2019.09.03 add start
192//--------------------------------------------
193// main article内に「<p><a href="hogehoge.com"></p>」の形式があったら
194// <a>に自動的に class="css_btn_class" を追加
195//--------------------------------------------
196//$(function(){
197//  //正規表現を指定
198//  //2021.03.01 change 1~2文字でもclassを指定できるように変更
199//  //var match_str = new RegExp('^<a (.*)href=(.*)>([^<].+[^>])</a>$', 'gm');
200//  var match_str = new RegExp('^<a (.*)href=(.*)>([^<]*[^>])</a>$', 'gm');
201//  var match_str_except = new RegExp('</a>[^.*]<a(.*)', 'gm');
202//  //pタグの中から、正規表現で一致する対象を検索
203//  $('#main article p').each(function(index, element){
204//    if($(element).html().match(match_str)){
205//      //<a>が連続している場合に、間に他の文章がなければボタンにする
206//      if(!$(element).html().match(match_str_except)){
207//        //「class=css_btn_class」を付与
208//        $(element).children('a').addClass('css_btn_class');
209//      }
210//    }
211//  });
212//});
213//2019.09.03 add end
214//2022.03.08 del end
215
216//detailsをIEに対応させる
217window.onload = function(){
218  void (function (root, factory) {
219    if (typeof define === 'function' && define.amd) define(factory)
220    else if (typeof exports === 'object') module.exports = factory()
221    else factory()
222  }(this, function () {
223    var DETAILS = 'details'
224    var SUMMARY = 'summary'
225
226    var supported = checkSupport()
227    if (supported) return
228
229    // Add a classname
230    document.documentElement.className += ' no-details'
231
232    window.addEventListener('click', clickHandler)
233
234    injectStyle('details-polyfill-style',
235      'html.no-details ' + DETAILS + ':not([open]) > :not(' + SUMMARY + ') { display: none; }\n' +
236      'html.no-details ' + DETAILS + ' > ' + SUMMARY + ':before { content: "\u25b6"; display: inline-block; font-size: .8em; width: 1.5em; }\n' +
237      'html.no-details ' + DETAILS + '[open] > ' + SUMMARY + ':before { content: "\u25bc"; }')
238
239    /*
240    * Click handler for `<summary>` tags
241    */
242
243    function clickHandler (e) {
244      if (e.target.nodeName.toLowerCase() === 'summary') {
245        var details = e.target.parentNode
246        if (!details) return
247
248        if (details.getAttribute('open')) {
249          details.open = false
250          details.removeAttribute('open')
251        } else {
252          details.open = true
253          details.setAttribute('open', 'open')
254        }
255      }
256    }
257
258    /*
259    * Checks for support for `<details>`
260    */
261
262    function checkSupport () {
263      var el = document.createElement(DETAILS)
264      if (!('open' in el)) return false
265
266      el.innerHTML = '<' + SUMMARY + '>a</' + SUMMARY + '>b'
267      document.body.appendChild(el)
268
269      var diff = el.offsetHeight
270      el.open = true
271      var result = (diff != el.offsetHeight)
272
273      document.body.removeChild(el)
274      return result
275    }
276
277    /*
278    * Injects styles (idempotent)
279    */
280
281    function injectStyle (id, style) {
282      if (document.getElementById(id)) return
283
284      var el = document.createElement('style')
285      el.id = id
286      el.innerHTML = style
287
288      document.getElementsByTagName('head')[0].appendChild(el)
289    }
290  }))
291}; // eslint-disable-line semi
292
293$(function () {
294  $('.scroll-table').each(function(){
295    var txt = $(this).html();
296    $(this).html(
297      txt.replace(/scroll-table/g,'scroll-table js-scrollable'));
298  });
299
300  //new ScrollHint('.js-scrollable', {
301  //  i18n: {
302  //    scrollable: 'スクロールOK'
303  //  }
304  //});
305});

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.