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 $('.info_date').each(function(){ 51 var txt = $(this).html(); 52 $(this).html(txt.replace(/\[/g,'').replace(/]/g,'').replace(/æ´æ°/g,'').replace(/ã/g,'')); 53 }); 54 55 $('.info_date').each(function(){ 56 var txt = $(this).html(); 57 $(this).html(txt.replace(/ã/g,'')); 58 var change = $(this).html(txt.replace(/ã/g,'')); 59 var chart = change.html().split("."); 60 change.html(chart[0] + 'å¹´' + chart[1] + 'æ' + chart[2] + 'æ¥'); 61 }); 62 63 //診çæéã«ã¢ã¤ã³ã³æè¼ 64 $('.header_week').each(function(){ 65 var txt = $(this).html(); 66 $(this).html( 67 txt.replace(/診çæéã¯ãã¡ã/g,'<i class="material-icons">chevron_right</i> 診çæé')); 68 }); 69}); 70 71$(function () { 72 $('#images').insertBefore('#contents'); 73}); 74 75//å°å³ã«ã¢ã¤ã³ã³æè¼ 76$(function(){ 77 $('.mapSec_tomappage').each(function(){ 78 var txt = $(this).html(); 79 $(this).html( 80 txt.replace(/大ããå°å³ã¯ãã¡ã/g,'<i class="material-icons">location_on</i> 大ããå°å³ã¯ãã¡ã')); 81 }); 82}); 83 84//ã¹ããã«ã¡ãã¥ã¼ã®ã¢ã¤ã³ã³ãè¨è¼ 85$(function(){ 86 $('#mobile a').each(function(){ 87 var txt = $(this).html(); 88 $(this).html( 89 txt.replace(/<img .*?src="(.*?)".*?>/g,'<i class="material-icons">menu</i>')); 90 }); 91}); 92 93//$(function(){ 94//$('#footer').wrapAll('<div class="footercontents" />'); 95//}); 96 97$(function(){ 98 $('table').wrap('<div class="scroll-table" />'); 99}); 100 101$(function(){ 102 //以ä¸ã¾ã¨ãã¦function 103 var headerWeek = $('.header_week p'); 104 if (headerWeek.length != 0) { 105 headerWeek.html(headerWeek.html().replace(/\<br\>/gi,'')); 106 headerWeek.find('i').appendTo(headerWeek.find('a')); 107 } 108 //var infoData = $('.infoSec .info_date'); 109 //if (infoData.length != 0) { 110 // infoData.html(infoData.html().replace(/\[|\]|\s/gi,'')); 111 //} 112 $('#searchsubmit').attr('src','https://wevery.jp/wp-content/uploads/2019/05/icon_find.png'); 113 //$('.flexslider .slides').append($('.caption-wrap')); 114 for(var i = 0; i < $('.flexslider .slides .ms-image').length; i++){ 115 //alert($('.caption-wrap').eq(i).html()); 116 $('.flexslider .slides .ms-image').append($('.caption-wrap').eq(i).val()); 117 } 118 $('#footer').append($('#footer .address')); 119 120 //$('.banner.smart_phonebottom').before($('.banner.smart_phonetop')); 121 $('#menu-main_menu').before('<div class="menu-side_top"></div>'); 122 123 //$('.menu-side_top #page_search').attr('id','page_search2'); 124 //$('.menu-side_top #s').attr('id','s2'); 125 //$('.menu-side_top #searchsubmit').attr('id','searchsubmit2'); 126 127 // 2020.08.06 change start 128 // safariã ã¨ä¸æããã³ãã¼ã¬ã¡ãã¥ã¼ãåä½ããªããããã¯ãªãã¯ã¤ãã³ãã®æå®æ¹æ³ã夿´ 129 // $('#mobile').on('click', function() { 130 // if ($(this).hasClass('side-open')) { 131 // $(this).delay(300).queue(function() { 132 // $(this).removeClass('side-open').dequeue(); 133 // $('#header .header_tel').removeClass('side-open').dequeue(); 134 // }); 135 // } else { 136 // $(this).addClass('side-open'); 137 // $('#header .header_tel').addClass('side-open'); 138 // } 139 // }); 140 $(document).on('click', '#mobile', function() { 141 if ($(this).hasClass('side-open')) { 142 $(this).delay(300).queue(function() { 143 $(this).removeClass('side-open').dequeue(); 144 $('#header .header_tel').removeClass('side-open').dequeue(); 145 }); 146 } else { 147 $(this).addClass('side-open'); 148 $('#header .header_tel').addClass('side-open'); 149 $('body').css({'overflow':'hidden','height':'100vh','position':''}); 150 } 151 }); 152 // 2020.07.31 change end 153 154 $('#sidr .close').on('click', function() { 155 if ($('#mobile').hasClass('side-open')) { 156 $('#mobile').delay(300).queue(function() { 157 $('#mobile').removeClass('side-open').dequeue(); 158 $('#header .header_tel').removeClass('side-open').dequeue(); 159 $('body').css({'overflow':'','height':''}); 160 }); 161 } 162 }); 163 164 $('#sidr .menu_box h2').on('click', function() { 165 $(this).toggleClass('active').next().slideToggle(400); 166 }); 167 168 $('#sidr ul#menu-main_menu > li').each(function(index, element){ 169 if ($(this).find('.sub-menu').length > 0) { 170 $(this).children('a').after('<div class="accordion-elm">â¼</div>'); 171 } 172 }); 173 174 $('#sidr ul#menu-main_menu > li .accordion-elm').on('click', function() { 175 $(this).toggleClass('active').next().slideToggle(400); 176 }); 177 //ã¾ã¨ãã¦functionããã¾ã§ 178}); 179 180//2022.03.08 del start function.phpã«ç§»å 181//2019.09.03 add start 182//-------------------------------------------- 183// main articleå ã«ã<p><a href="hogehoge.com"></p>ãã®å½¢å¼ããã£ãã 184// <a>ã«èªåçã« class="css_btn_class" ã追å 185//-------------------------------------------- 186//$(function(){ 187// //æ£è¦è¡¨ç¾ãæå®
188// //2021.03.01 change 1ï½2æåã§ãclassãæå®ã§ããããã«å¤æ´ 189// //var match_str = new RegExp('^<a (.*)href=(.*)>([^<].+[^>])</a>$', 'gm'); 190// var match_str = new RegExp('^<a (.*)href=(.*)>([^<]*[^>])</a>$', 'gm'); 191// var match_str_except = new RegExp('</a>[^.*]<a(.*)', 'gm'); 192// //pã¿ã°ã®ä¸ãããæ£è¦è¡¨ç¾ã§ä¸è´ããå¯¾è±¡ãæ¤ç´¢ 193// $('#main article p').each(function(index, element){ 194// if($(element).html().match(match_str)){ 195// //<a>ãé£ç¶ãã¦ããå ´åã«ãéã«ä»ã®æç« ããªããã°ãã¿ã³ã«ãã 196// if(!$(element).html().match(match_str_except)){ 197// //ãclass=css_btn_classããä»ä¸ 198// $(element).children('a').addClass('css_btn_class'); 199// } 200// } 201// }); 202//}); 203//2019.09.03 add end 204//2022.03.08 del end 205 206//detailsãIEã«å¯¾å¿ããã 207window.onload = function(){ 208 void (function (root, factory) { 209 if (typeof define === 'function' && define.amd) define(factory) 210 else if (typeof exports === 'object') module.exports = factory() 211 else factory() 212 }(this, function () { 213 var DETAILS = 'details' 214 var SUMMARY = 'summary' 215 216 var supported = checkSupport() 217 if (supported) return 218 219 // Add a classname 220 document.documentElement.className += ' no-details' 221 222 window.addEventListener('click', clickHandler) 223 224 injectStyle('details-polyfill-style', 225 'html.no-details ' + DETAILS + ':not([open]) > :not(' + SUMMARY + ') { display: none; }\n' + 226 'html.no-details ' + DETAILS + ' > ' + SUMMARY + ':before { content: "\u25b6"; display: inline-block; font-size: .8em; width: 1.5em; }\n' + 227 'html.no-details ' + DETAILS + '[open] > ' + SUMMARY + ':before { content: "\u25bc"; }') 228 229 /* 230 * Click handler for `<summary>` tags 231 */ 232 233 function clickHandler (e) { 234 if (e.target.nodeName.toLowerCase() === 'summary') { 235 var details = e.target.parentNode 236 if (!details) return 237 238 if (details.getAttribute('open')) { 239 details.open = false 240 details.removeAttribute('open') 241 } else { 242 details.open = true 243 details.setAttribute('open', 'open') 244 } 245 } 246 } 247 248 /* 249 * Checks for support for `<details>` 250 */ 251 252 function checkSupport () { 253 var el = document.createElement(DETAILS) 254 if (!('open' in el)) return false 255 256 el.innerHTML = '<' + SUMMARY + '>a</' + SUMMARY + '>b' 257 document.body.appendChild(el) 258 259 var diff = el.offsetHeight 260 el.open = true 261 var result = (diff != el.offsetHeight) 262 263 document.body.removeChild(el) 264 return result 265 } 266 267 /* 268 * Injects styles (idempotent) 269 */ 270 271 function injectStyle (id, style) { 272 if (document.getElementById(id)) return 273 274 var el = document.createElement('style') 275 el.id = id 276 el.innerHTML = style 277 278 document.getElementsByTagName('head')[0].appendChild(el) 279 } 280 })) 281}; // eslint-disable-line semi 282 283$(function(){ 284 $('.scroll-table').each(function(){ 285 var txt = $(this).html(); 286 $(this).html( 287 txt.replace(/<table>/g,'<div class="js-scrollable"><table>').replace(/<\/table>/g,'<\/table><\/div>')); 288 }); 289 290 new ScrollHint('.js-scrollable', { 291 i18n: { 292 scrollable: '' 293 } 294 }); 295}); 296 297//横ã¹ã¯ãã¼ã«ç¨**/ 298 299(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.ScrollHint = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ 300 301 302'use strict'; 303 304function assign(target, firstSource) { 305 if (target === undefined || target === null) { 306 throw new TypeError('Cannot convert first argument to object'); 307 } 308 309 var to = Object(target); 310 for (var i = 1; i < arguments.length; i++) { 311 var nextSource = arguments[i]; 312 if (nextSource === undefined || nextSource === null) { 313 continue; 314 } 315 316 var keysArray = Object.keys(Object(nextSource)); 317 for (var nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex++) { 318 var nextKey = keysArray[nextIndex]; 319 var desc = Object.getOwnPropertyDescriptor(nextSource, nextKey); 320 if (desc !== undefined && desc.enumerable) { 321 to[nextKey] = nextSource[nextKey]; 322 } 323 } 324 } 325 return to; 326} 327 328function polyfill() { 329 if (!Object.assign) { 330 Object.defineProperty(Object, 'assign', { 331 enumerable: false, 332 configurable: true, 333 writable: true, 334 value: assign 335 });
336 } 337} 338 339module.exports = { 340 assign: assign, 341 polyfill: polyfill 342}; 343 344},{}],2:[function(require,module,exports){ 345'use strict'; 346 347Object.defineProperty(exports, "__esModule", { 348 value: true 349}); 350 351var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); 352 353var _es6ObjectAssign = require('es6-object-assign'); 354 355var _util = require('./util'); 356 357function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 358 359var defaults = { 360 suggestClass: 'is-active', 361 scrollableClass: 'is-scrollable', 362 scrollableRightClass: 'is-right-scrollable', 363 scrollableLeftClass: 'is-left-scrollable', 364 scrollHintClass: 'scroll-hint', 365 scrollHintIconClass: 'scroll-hint-icon', 366 scrollHintIconAppendClass: '', // 'scroll-hint-icon-white' 367 scrollHintIconWrapClass: 'scroll-hint-icon-wrap', 368 scrollHintText: 'scroll-hint-text', 369 scrollHintBorderWidth: 10, 370 remainingTime: -1, 371 enableOverflowScrolling: true, 372 applyToParents: false, 373 suggestiveShadow: false, 374 i18n: { 375 scrollable: 'scrollable' 376 } 377}; 378 379var ScrollHint = function () { 380 function ScrollHint(ele, option) { 381 var _this = this; 382 383 _classCallCheck(this, ScrollHint); 384 385 this.opt = (0, _es6ObjectAssign.assign)({}, defaults, option); 386 this.items = []; 387 var elements = typeof ele === 'string' ? document.querySelectorAll(ele) : ele; 388 var applyToParents = this.opt.applyToParents; 389 390 [].forEach.call(elements, function (element) { 391 if (applyToParents) { 392 element = element.parentElement; 393 } 394 element.style.position = 'relative'; 395 element.style.overflow = 'auto'; 396 if (_this.opt.enableOverflowScrolling) { 397 if ('overflowScrolling' in element.style) { 398 element.style.overflowScrolling = 'touch'; 399 } else if ('webkitOverflowScrolling' in element.style) { 400 element.style.webkitOverflowScrolling = 'touch'; 401 } 402 } 403 var item = { 404 element: element, 405 scrolledIn: false, 406 interacted: false 407 }; 408 element.addEventListener('scroll', function () { 409 item.interacted = true; 410 _this.updateItem(item); 411 }); 412 (0, _util.addClass)(element, _this.opt.scrollHintClass); 413 (0, _util.append)(element, '<div class="' + _this.opt.scrollHintIconWrapClass + '" data-target="scrollable-icon">\n <span class="' + _this.opt.scrollHintIconClass + (_this.opt.scrollHintIconAppendClass ? ' ' + _this.opt.scrollHintIconAppendClass : '') + '">\n <div class="' + _this.opt.scrollHintText + '">' + _this.opt.i18n.scrollable + '</div>\n </span>\n </div>'); 414 _this.items.push(item); 415 }); 416 window.addEventListener('scroll', function () { 417 _this.updateItems(); 418 }); 419 window.addEventListener('resize', function () { 420 _this.updateItems(); 421 }); 422 this.updateItems(); 423 } 424 425 _createClass(ScrollHint, [{ 426 key: 'isScrollable', 427 value: function isScrollable(item) { 428 var element = item.element; 429 430 return element.offsetHeight === element.scrollHeight && element.clientWidth < element.scrollWidth; 431 } 432 }, { 433 key: 'checkScrollableDir', 434 value: function checkScrollableDir(item) { 435 var _opt = this.opt, 436 scrollHintBorderWidth = _opt.scrollHintBorderWidth, 437 scrollableRightClass = _opt.scrollableRightClass, 438 scrollableLeftClass = _opt.scrollableLeftClass; 439 var element = item.element; 440 441 var child = element.children[0]; 442 var width = child.scrollWidth; 443 var parentWidth = element.offsetWidth; 444 var scrollLeft = element.scrollLeft; 445 if (parentWidth + scrollLeft < width - scrollHintBorderWidth) { 446 (0, _util.addClass)(element, scrollableRightClass); 447 } else { 448 (0, _util.removeClass)(element, scrollableRightClass); 449 } 450 if (parentWidth < width && scrollLeft > scrollHintBorderWidth) { 451 (0, _util.addClass)(element, scrollableLeftClass); 452 } else { 453 (0, _util.removeClass)(element, scrollableLeftClass); 454 } 455 } 456 }, { 457 key: 'needSuggest', 458 value: function needSuggest(item) { 459 var scrolledIn = item.scrolledIn, 460 interacted = item.interacted; 461 462 return !interacted && scrolledIn && this.isScrollable(item); 463 } 464 }, { 465 key: 'updateItems', 466 value: function updateItems() { 467 var _this2 = this; 468 469 [].forEach.call(this.items, function (item) { 470 _this2.updateItem(item); 471 }); 472 } 473 }, { 474 key: 'updateStatus', 475 value: function updateStatus(item) { 476 var _this3 = this; 477 478 var element = item.element, 479 scrolledIn = item.scrolledIn; 480 481 if (scrolledIn) { 482 return; 483 } 484 if ((0, _util.getOffset)(element).top + element.offsetHeight / 2 < (0, _util.getScrollTop)() + window.innerHeight) { 485 item.scrolledIn = true; 486 if (this.opt.remainingTime !== -1) { 487 setTimeout(function () { 488 item.interacted = true; 489 _this3.updateItem(item); 490 }, this.opt.remainingTime); 491 } 492 } 493 } 494 }, { 495 key: 'updateItem', 496 value: function updateItem(item) { 497 var opt = this.opt; 498 var element = item.element; 499 500 var target = element.querySelector('[data-target="scrollable-icon"]'); 501 this.updateStatus(item); 502 if (this.isScrollable(item)) { 503 (0, _util.addClass)(element, opt.scrollableClass); 504 } else { 505 (0, _util.removeClass)(element, opt.scrollableClass); 506 } 507 if (this.needSuggest(item)) { 508 (0, _util.addClass)(target, opt.suggestClass); 509 } else { 510 (0, _util.removeClass)(target, opt.suggestClass); 511 } 512 if (opt.suggestiveShadow) { 513 this.checkScrollableDir(item); 514 } 515 } 516 }]); 517 518 return ScrollHint; 519}();
520 521exports.default = ScrollHint; 522module.exports = exports['default']; 523 524},{"./util":3,"es6-object-assign":1}],3:[function(require,module,exports){ 525'use strict'; 526 527Object.defineProperty(exports, "__esModule", { 528 value: true 529}); 530var append = exports.append = function append(element, string) { 531 var div = document.createElement('div'); 532 div.innerHTML = string; 533 while (div.children.length > 0) { 534 element.appendChild(div.children[0]); 535 } 536}; 537 538var addClass = exports.addClass = function addClass(element, className) { 539 if (element.classList) { 540 element.classList.add(className); 541 } else { 542 element.className += ' ' + className; 543 } 544}; 545 546var removeClass = exports.removeClass = function removeClass(element, className) { 547 if (element.classList) { 548 element.classList.remove(className); 549 } else { 550 element.className = element.className.replace(new RegExp('(^|\\b)' + className.split(' ').join('|') + '(\\b|$)', 'gi'), ' '); 551 } 552}; 553 554var getScrollTop = exports.getScrollTop = function getScrollTop() { 555 return window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0; 556}; 557 558var getScrollLeft = exports.getScrollLeft = function getScrollLeft() { 559 return window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0; 560}; 561 562var getOffset = exports.getOffset = function getOffset(el) { 563 var rect = el.getBoundingClientRect(); 564 return { 565 top: rect.top + getScrollTop(), 566 left: rect.left + getScrollLeft() 567 }; 568}; 569 570},{}]},{},[2])(2) 571});
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.