1// JavaScript Document 2 3//å»é¢ããã®ããããã¿ã¤ãã«ã®é表示 4$(".pointWrap:not(:has(.point))").hide(); 5 6 7// sp menu 8var windowWidth = $(window).width(); 9var windowSm = 767; 10if (windowWidth <= windowSm) { 11/* sp Only ------------------------------- */ 12$(document).ready(function() { 13 var headerHight = 60; 14 $('a[href^="#"]:not([href$="#"])').click(function() { 15 var href = $(this).attr('href'); 16 var pos = $(href).offset().top-headerHight; 17 var duration = 600; 18 $('body, html').animate({ scrollTop: pos }, duration, 'linear'); 19 return false; 20 }); 21 }); 22 23// footer ftslide 24//$(window).on('load scroll', function(){ 25// if ($(window).scrollTop() > 300) { 26// $('#ftSlideBlock').slideDown(400); 27// } else { 28// $('#ftSlideBlock').slideUp(400); 29// } 30//}); 31 32} else { 33/* pc Only ------------------------------- */ 34 $(function() { 35 $('a[href^="#"]:not([href$="#"])').click(function() { 36 var href = $(this).attr('href'); 37 var pos = $(href).offset().top; 38 var duration = 600; 39 $('body, html').animate({ scrollTop: pos }, duration, 'linear'); 40 return false; 41 }); 42}); 43 44// $(function() { 45// $(".featRead").heightLine(); 46// }); 47 48} 49 50/* common ------------------------------- */ 51 52//clickable 53 $(".clickable").click(function(){ 54 if($(this).find("a").attr("target")=="_blank"){ 55 window.open($(this).find("a").attr("href"), '_blank'); 56 }else{ 57 window.location=$(this).find("a").attr("href"); 58 } return false; 59 }); 60 61// scroll top 62$(document).ready(function(){ 63 $("#pagetop").hide(); 64 $(window).on("scroll", function() { 65 if ($(this).scrollTop() > 100) { 66 $("#pagetop").fadeIn("fast"); 67 } else { 68 $("#pagetop").fadeOut("fast"); 69 } 70 var scrollHeight = $(document).height(); 71 var scrollPosition = $(window).height() + $(window).scrollTop(); 72 var footHeight = $("#footer").innerHeight(); 73 if ( scrollHeight - scrollPosition <= footHeight ) { 74 $("#pagetop").css({ 75 "position":"absolute", 76 "bottom": footHeight + 10 77 }); 78 } else { //ãã以å¤ã®å ´å㯠79 $("#pagetop").css({ 80 "position":"fixed", 81 "bottom": "" 82 }); 83 } 84 }); 85}); 86 87// visual switch 88$(function() { 89 var $elem = $('.js-image-switch'); 90 var sp = '_sp.'; 91 var pc = '_pc.'; 92 var replaceWidth = 768; 93 94 function imageSwitch() { 95 var windowWidth = parseInt($(window).width()); 96 $elem.each(function() { 97 var $this = $(this); 98 if (windowWidth >= replaceWidth) { 99 $this.attr('src', $this.attr('src').replace(sp, pc)); 100 } else { 101 $this.attr('src', $this.attr('src').replace(pc, sp)); 102 } 103 }); 104 } 105 imageSwitch(); 106 var resizeTimer; 107 $(window).on('resize', function() { 108 clearTimeout(resizeTimer); 109 resizeTimer = setTimeout(function() { 110 imageSwitch(); 111 }, 200); 112 }); 113}); 114 115// sp tel 116if(window.addEventListener){ 117 window.addEventListener( "load" , syncerTelephoneLink, false ); 118}else{ 119 window.attachEvent( "onload", syncerTelephoneLink );} 120function syncerTelephoneLink(){ 121 var width = window.innerWidth ; 122 if( width>=768 ){ return false ; } 123 var elms = document.getElementsByClassName( "syncer-tel" ) ; 124 for( var i=0,l=elms.length; l>i; i++ ){ 125 var elm = elms[i] ; 126 var number = elm.getAttribute( "data-number" ) ; 127 if( number!=null ){ 128 if( elm.tagName == "A" ) { 129 elm.href = "tel:" + number ; 130 }else{ 131 var text = elm.innerHTML ; 132 elm.innerHTML = '<a href="tel:' + number + '">
132' + text + '</a>' ; 133 } 134 } 135 } 136} 137 138// tableB 139// $(function() { 140// $(".tblC .unitH01").heightLine(); 141// $(".tblC .unitH02").heightLine(); 142// $(".tblC .unitH03").heightLine(); 143// $(".tblC .unitH04").heightLine(); 144// }); 145 146$("#homCovid h2").click(function(){ 147 $(this).toggleClass('active'); 148 $(".homContCovid").slideToggle(); 149}); 150 151 152/****************************************************** 153 ** File Name : medica.js powered by yuga.js 154 ** Creater : miura@MMP 155 ** Summary : custom yuga.js 156 ** Modified : 2008.07.29 157/ ***************************************************** 158/* 159 * yuga.js 0.7.1 - åªé ãªWebå¶ä½ã®ããã®JS 160 * 161 * Copyright (c) 2009 Kyosuke Nakamura (kyosuke.jp) 162 * Licensed under the MIT License: 163 * http://www.opensource.org/licenses/mit-license.php 164 * 165 * Since: 2006-10-30 166 * Modified: 2009-01-27 167 * 168 * jQuery 1.3.1 169 * ThickBox 3.1 170 */ 171 172 173(function($) { 174 175 $(function() { 176 $.yuga.selflink(); 177 }); 178 179 //--------------------------------------------------------------------- 180 181 $.yuga = { 182 // URIãè§£æãããªãã¸ã§ã¯ããè¿ãfunction 183 Uri: function(path){ 184 var self = this; 185 this.originalPath = path; 186 //絶対ãã¹ãåå¾ 187 this.absolutePath = (function(){ 188 var e = document.createElement('span'); 189 e.innerHTML = '<a href="' + path + '" />'; 190 return e.firstChild.href; 191 })(); 192 //絶対ãã¹ãåè§£ 193 var fields = {'schema' : 2, 'username' : 5, 'password' : 6, 'host' : 7, 'path' : 9, 'query' : 10, 'fragment' : 11}; 194 var r = /^((\w+):)?(\/\/)?((\w+):?(\w+)?@)?([^\/\?:]+):?(\d+)?(\/?[^\?#]+)?\??([^#]+)?#?(\w*)/.exec(this.absolutePath); 195 for (var field in fields) { 196 this[field] = r[fields[field]]; 197 } 198 this.querys = {}; 199 if(this.query){ 200 $.each(self.query.split('&'), function(){ 201 var a = this.split('='); 202 if (a.length == 2) self.querys[a[0]] = a[1]; 203 }); 204 } 205 }, 206 //ç¾å¨ã®ãã¼ã¸ã¨è¦ªãã£ã¬ã¯ããªã¸ã®ãªã³ã¯ 207 selflink: function (options) { 208 var c = $.extend({ 209 selfLinkAreaSelector:'body', 210 selfLinkClass:'current', 211 parentsLinkClass:'parentsLink', 212 postfix: '_cr', 213 changeImgSelf:false, 214 changeImgParents:false 215 }, options); 216 $(c.selfLinkAreaSelector+((c.selfLinkAreaSelector)?' ':'')+'a[href]').each(function(){ 217 var href = new $.yuga.Uri(this.getAttribute('href')); 218 var setImgFlg = false; 219 if ((href.absolutePath == location.href) && !href.fragment) { 220 //åãææ¸ã«ãªã³ã¯ 221 $(this).addClass(c.selfLinkClass); 222 setImgFlg = c.changeImgSelf; 223 } else if (0 <= location.href.search(href.absolutePath)) { 224 //親ãã£ã¬ã¯ããªãªã³ã¯ 225 $(this).addClass(c.parentsLinkClass); 226 setImgFlg = c.changeImgParents; 227 } 228 if (setImgFlg){ 229 //imgè¦ç´ ãå«ã¾ãã¦ãããç¾å¨ç¨ç»åï¼_crï¼ã«è¨å® 230 $(this).find('img').each(function(){ 231 this.originalSrc = $(this).attr('src'); 232 this.currentSrc = this.originalSrc.replace(new RegExp('('+c.postfix+')?(\.gif|\.jpg|\.png)$'), c.postfix+"$2"); 233 $(this).attr('src',this.currentSrc); 234 }); 235 } 236 }); 237 } 238 }; 239})(jQuery);
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.