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.