1$(function(){ 2 3//h1æåãµã¤ãºèª¿æ´ 4 $(".h1_text").each(function() { 5 var h1_len = $(this).html(); 6 if(h1_len.length > 12){ 7 $(this).addClass("small"); 8 } 9 }); 10 11//ãããã¼å°å³ã¸ã®ãªã³ã¯ 12 $('.header_address').each(function() { 13 var txt = $(this).html(); 14 $(this).html(txt.replace(/\[/g, '').replace(/\]/g, '')); 15 }); 16 17//ãããã¼è¨ºçæéã®ãªã³ã¯ 18 $('.header_week').each(function(){ 19 var txt = $(this).html(); 20 $(this).html(txt.replace(/診çæéã¯ãã¡ã/g,'診çæé')); 21 }); 22 23//ãããã¼TELä¸¦ã³æ¿ã 24 $(".header_tel").insertAfter(".header_week"); 25 26//ãµã¤ãå æ¤ç´¢ 27 $("#searchform").insertAfter("#nav"); 28 $('#searchsubmit').attr('src','https://wevery.jp/wp-content/uploads/2019/05/icon_find.png'); 29 30//ã¡ã¤ã³ã¹ã©ã¤ãä¸¦ã³æ¿ã 31 $('#images').insertBefore('#contents'); 32 33//gNavã®åºå® 34 var _window = $(window), 35 _header = $('#gNav'), 36 headerBottom; 37 38 _window.on('scroll',function(){ 39 headerBottom = $('#header').height(); 40 if(_window.scrollTop() > headerBottom && _header.hasClass('is-fixed') == false){ 41 _header.css({"top": '-100px'}); 42 _header.addClass('is-fixed'); 43 _header.animate({"top": 0},600); 44 } 45 else if(_window.scrollTop() < headerBottom && _header.hasClass('is-fixed') == true){ 46 _header.removeClass('is-fixed'); 47 } 48 }); 49 50 _window.trigger('scroll'); 51 52//ãç¥ããã®æ¥æå¤æ´ 53 $('.info_date').each(function(){ 54 var txt = $(this).html(); 55 $(this).html(txt.replace(/\[/g,'').replace(/]/g,'').replace(/æ´æ°/g,'').replace(/ã/g,'')); 56 }); 57 58 $('.info_date').each(function(){ 59 var txt = $(this).html(); 60 $(this).html(txt.replace(/ã/g,'')); 61 var change = $(this).html(txt.replace(/ã/g,'')); 62 var chart = change.html().split("."); 63 change.html(chart[0] + 'å¹´' + chart[1] + 'æ' + chart[2] + 'æ¥'); 64 }); 65 66//ãããã«æ»ããã¿ã³ 67 $('.pagetop').each(function(){ 68 var txt = $(this).html(); 69 $(this).html(txt.replace(/\â² ãã¼ã¸ã®ãããã«æ»ã/g,'<i class="material-icons">expand_less</i>')); 70 }); 71 72 var topBtn = $('.pagetop'); 73 topBtn.hide(); 74 75 //ã¹ã¯ãã¼ã«ã100ã«éããããã¿ã³è¡¨ç¤º 76 $(window).scroll(function () { 77 if ($(this).scrollTop() > 100) { 78 topBtn.fadeIn(); 79 } else { 80 topBtn.fadeOut(); 81 } 82 }); 83 84 //ã¹ã¯ãã¼ã«ãã¦ããã 85 topBtn.click(function () { 86 $('body,html').animate({ 87 scrollTop: 0 88 }, 500); 89 return false; 90 }); 91 92//å°å³ãã¿ã³ã«ã¢ã¤ã³ã³æè¼ 93 $('.mapSec_tomappage').each(function(){ 94 var txt = $(this).html(); 95 $(this).html( 96 txt.replace(/大ããå°å³ã¯ãã¡ã/g,'<i class="material-icons">location_on</i> 大ããå°å³ã¯ãã¡ã')); 97 }); 98 99//ã¹ããã®ã¡ãã¥ã¼ã¢ã¤ã³ã³ 100 $('#mobile a').each(function(){ 101 var txt = $(this).html(); 102 $(this).html( 103 txt.replace(/<img .*?src="(.*?)".*?>/g,'<i class="material-icons">menu</i>')); 104 }); 105 106//ãã¼ãã«ã¹ã¯ãã¼ã« 107 $('table').wrap('<div class="scroll-table" />'); 108 109//ããã°ãµã¤ãã¡ãã¥ã¼ 110 $('#side_blog').insertBefore('#sideMenu'); 111}); 112 113 114//ãããã¼TELãªã³ã¯ 115$(function(){ 116 $('.header_tel').each(function(){ 117 var txt = $(this).html(); 118 var url = location.href; 119 var rep_atag = ""; 120 var pre_mb = ""; 121 if ( url.includes('?') ) { 122 params = url.split('?'); 123 sparams = params[1].split("&"); 124 var paramArray = []; 125 for ( i = 0; i < sparams.length; i++ ) { 126 sval = sparams[i].split("="); 127 paramArray.push(sval[0]); 128 paramArray[sval[0]] = sval[1]; 129 } 130 if ( paramArray["mb_preview"] == "true") { 131 rep_atag = "<a href=\"tel: #clinictel\" onclick=\"ga('send', 'event', 'clickâ, 'tel');ga('newTracker.send', 'event', 'click', 'tel');\">"; 132 pre_mb = "mobile"; 133 } 134 } 135 136 const ua = navigator.userAgent; 137 if (ua.indexOf('iPhone') > -1 || (ua.indexOf('Android') > -1 && ua.indexOf('Mobile') > -1) || pre_mb == "mobile") { 138 // ã¹ãã¼ããã©ã³ 139 var telnum = document.getElementById('telnum').value; 140 $(this).html( 141 "<a href=\"tel:" + telnum + "\" onclick=\"ga('send', 'event', 'clickâ, 'tel');ga('newTracker.send', 'event', 'click', 'el');\"><p class=\"tel\"><i class=\"material-icons\">local_phone</i></p></a>" 142 ); 143 } else { 144 $(this).html( 145 txt.replace(/TEL/g, '<i class="material-icons">local_phone</i>' + rep_atag) 146 ); 147 } 148 });
149}); 150 151 152//以ä¸ã¾ã¨ãã¦function 153$(function(){ 154 155 var headerWeek = $('.header_week p'); 156 if (headerWeek.length != 0) { 157 headerWeek.html(headerWeek.html().replace(/\<br\>/gi,'')); 158 headerWeek.find('i').appendTo(headerWeek.find('a')); 159 } 160 161 for(var i = 0; i < $('.flexslider .slides .ms-image').length; i++){ 162 $('.flexslider .slides .ms-image').append($('.caption-wrap').eq(i).val()); 163 } 164 165 $('#header .header_tel .tel a').text('TEL'); 166 $('#menu-main_menu').before('<div class="menu-side_top"></div>'); 167 168 $('#footer').append($('#footer .address')); 169 170// safariã ã¨ä¸æããã³ãã¼ã¬ã¡ãã¥ã¼ãåä½ããªããããã¯ãªãã¯ã¤ãã³ãã®æå®æ¹æ³ã夿´ 171 $(document).on('click', '#mobile', function() { 172 if ($(this).hasClass('side-open')) { 173 $(this).delay(300).queue(function() { 174 $(this).removeClass('side-open').dequeue(); 175 $('#header .header_tel').removeClass('side-open').dequeue(); 176 }); 177 } else { 178 $(this).addClass('side-open'); 179 $('#header .header_tel').addClass('side-open'); 180 $('body').css({'overflow':'hidden','height':'100vh','position':''}); 181 } 182 }); 183 184 $('#sidr .close').on('click', function() { 185 if ($('#mobile').hasClass('side-open')) { 186 $('#mobile').delay(300).queue(function() { 187 $('#mobile').removeClass('side-open').dequeue(); 188 $('#header .header_tel').removeClass('side-open').dequeue(); 189 $('body').css({'overflow':'','height':''}); 190 }); 191 } 192 }); 193 194 $('#sidr .menu_box h2').on('click', function() { 195 $(this).toggleClass('active').next().slideToggle(400); 196 }); 197 $('#sidr ul#menu-main_menu > li').each(function(index, element){ 198 if ($(this).find('.sub-menu').length > 0) { 199 $(this).children('a').after('<div class="accordion-elm"><i class="material-icons">add</i></div>'); 200 } 201 }); 202 $('#sidr ul#menu-main_menu > li .accordion-elm').on('click', function() { 203 $(this).toggleClass('active').next().slideToggle(400); 204 }); 205 206}); 207//ã¾ã¨ãã¦functionããã¾ã§ 208 209 210//detailsãIEã«å¯¾å¿ããã 211window.onload = function(){ 212void (function (root, factory) { 213 if (typeof define === 'function' && define.amd) define(factory) 214 else if (typeof exports === 'object') module.exports = factory() 215 else factory() 216}(this, function () { 217 var DETAILS = 'details' 218 var SUMMARY = 'summary' 219 220 var supported = checkSupport() 221 if (supported) return 222 223 // Add a classname 224 document.documentElement.className += ' no-details' 225 226 window.addEventListener('click', clickHandler) 227 228 injectStyle('details-polyfill-style', 229 'html.no-details ' + DETAILS + ':not([open]) > :not(' + SUMMARY + ') { display: none; }\n' + 230 'html.no-details ' + DETAILS + ' > ' + SUMMARY + ':before { content: "\u25b6"; display: inline-block; font-size: .8em; width: 1.5em; }\n' + 231 'html.no-details ' + DETAILS + '[open] > ' + SUMMARY + ':before { content: "\u25bc"; }') 232 233 /* 234 * Click handler for `<summary>` tags 235 */ 236 237 function clickHandler (e) { 238 if (e.target.nodeName.toLowerCase() === 'summary') { 239 var details = e.target.parentNode 240 if (!details) return 241 242 if (details.getAttribute('open')) { 243 details.open = false 244 details.removeAttribute('open') 245 } else { 246 details.open = true 247 details.setAttribute('open', 'open') 248 } 249 } 250 } 251 252 /* 253 * Checks for support for `<details>` 254 */ 255 256 function checkSupport () { 257 var el = document.createElement(DETAILS) 258 if (!('open' in el)) return false 259 260 el.innerHTML = '<' + SUMMARY + '>a</' + SUMMARY + '>b' 261 document.body.appendChild(el) 262 263 var diff = el.offsetHeight 264 el.open = true 265 var result = (diff != el.offsetHeight) 266 267 document.body.removeChild(el) 268 return result 269 } 270 271 /* 272 * Injects styles (idempotent) 273 */ 274 275 function injectStyle (id, style) { 276 if (document.getElementById(id)) return 277 278 var el = document.createElement('style') 279 el.id = id 280 el.innerHTML = style 281 282 document.getElementsByTagName('head')[0].appendChild(el) 283 } 284}))}; // eslint-disable-line semi 285$(function () { 286 $('.news-box dl dt .newsdate').each(function (e) { 287 $(this).html($(this).html().replace(/^\[/, '').replace(/\]$/, '').replace(/[0-9]+æ/, '').replace(/\b([0-
2875]?[0-9]|60)\bå/g, '').replace(/æ´æ°/, '').replace(/å¹´/, '.').replace(/æ/, '.').replace(/æ¥/, '')); 288 }); 289 $(".info-list-item").on("click", function (e) { 290 e.stopPropagation(); 291 if (!$(this).hasClass("open")) { 292 $(this).children(".menu-content").slideDown(); 293 $(this).addClass("open"); 294 } else { 295 $(this).children(".menu-content").slideUp(); 296 $(this).removeClass("open"); 297 } 298 }); 299 $(".sec-under-kv .btn-01").on("click", function (e) { 300 if (!$(this).hasClass("open")) { 301 $(this).siblings(".dropdown").slideDown("fast"); 302 $(this).addClass("open"); 303 } else { 304 $(this).siblings(".dropdown").slideUp("fast"); 305 $(this).removeClass("open"); 306 } 307 }); 308 }); 309 310// ã¹ã¯ãã¼ã«ããããå¾ ã¡æéã«is-fixedãä»ä¸ããã 311document.addEventListener('DOMContentLoaded', function () { 312 const target = document.getElementById('wv_headbtn'); 313 314 if (!target) return; 315 316 window.addEventListener('scroll', function () { 317 if (window.scrollY > 0) { 318 target.classList.add('is-fixed'); 319 } else { 320 target.classList.remove('is-fixed'); 321 } 322 }); 323});
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.