1// JavaScript Document 2 3 4// sp menu 5var windowWidth = $(window).width(); 6var windowSm = 767; 7if (windowWidth <= windowSm) { 8 9/* sp Only ------------------------------- */ 10 11$(document).ready(function() { 12 var headerHight = 60; 13 $('a[href^="#"]:not([href$="#"])').click(function() { 14 var href = $(this).attr('href'); 15 var pos = $(href).offset().top-headerHight; 16 var duration = 600; 17 $('body, html').animate({ scrollTop: pos }, duration, 'linear'); 18 return false; 19 }); 20 }); 21 22} else { 23 24/* pc Only ------------------------------- */ 25 26 $(function() { 27 $('a[href^="#"]:not([href$="#"])').click(function() { 28 var href = $(this).attr('href'); 29 var pos = $(href).offset().top; 30 var duration = 600; 31 $('body, html').animate({ scrollTop: pos }, duration, 'linear'); 32 return false; 33 }); 34}); 35 36 37} 38 39/* common ------------------------------- */ 40 41 42// load rewrite 43var timer = false; 44var w = 0; 45 46//ãã¼ãæ 47$(window).load(function() { 48 w = $(window).width(); 49}); 50 51//ãªãµã¤ãºæ 52$(window).resize(function() { 53 if (timer !== false) { 54 clearTimeout(timer); 55 } 56 timer = setTimeout(function() { 57 if($(window).width() != w){ 58 location.reload(); 59 w = $(window).width(); 60 } 61 }, 200); 62}); 63 64 65 66$(function(){ 67 //clickable 68 $(".clickable").click(function(){ 69 if($(this).find("a").attr("target")=="_blank"){ 70 window.open($(this).find("a").attr("href"), '_blank'); 71 }else{ 72 window.location=$(this).find("a").attr("href"); 73 } return false; 74 }); 75 76// scroll top 77 78$(function() { 79 $(window).scroll(function () { 80 var s = $(this).scrollTop(); 81 var m = 300; 82 if(s > m) { 83 $("#pagetop").fadeIn('slow'); 84 } else if(s < m) { 85 $("#pagetop").fadeOut('slow'); 86 } 87 }); 88}); 89 90// visual switch 91var $elem = $('.js-image-switch'); 92var sp = '_sp.'; 93var pc = '_pc.'; 94var replaceWidth = 768; 95 96function imageSwitch() { 97 var windowWidth = parseInt($(window).width()); 98 $elem.each(function() { 99 var $this = $(this); 100 if(windowWidth >= replaceWidth) { 101 $this.attr('src', $this.attr('src').replace(sp, pc)); 102 } else { 103 $this.attr('src', $this.attr('src').replace(pc, sp)); 104 } 105 }); 106} 107imageSwitch(); 108 109//map 110$(function(){ 111var canvas = document.getElementById( 'gMap' ) ; 112var latlng = new google.maps.LatLng( 35.355957 , 132.756685 ); 113var mapOptions = { 114 zoom: 17 , 115 center: latlng , 116 scrollwheel: false, 117 streetViewControl:false, 118 mapTypeControl:false, 119 zoomControl: false, 120 draggable: false, 121}; 122var map = new google.maps.Map( canvas , mapOptions ) ; 123var markers = [] ; 124markers[0] = new google.maps.Marker({ 125 map: map , 126 position: new google.maps.LatLng( 35.355957 , 132.756685 ) , 127}); 128 129}); 130 131 132// sp tel 133if(window.addEventListener){ 134 window.addEventListener( "load" , syncerTelephoneLink, false ); 135}else{ 136 window.attachEvent( "onload", syncerTelephoneLink );} 137function syncerTelephoneLink(){ 138 var width = window.innerWidth ; 139 if( width>=768 ){ return false ; } 140 var elms = document.getElementsByClassName( "syncer-tel" ) ; 141 for( var i=0,l=elms.length; l>i; i++ ){ 142 var elm = elms[i] ; 143 var number = elm.getAttribute( "data-number" ) ; 144 if( number!=null ){ 145 if( elm.tagName == "A" ) { 146 elm.href = "tel:" + number ; 147 }else{ 148 var text = elm.innerHTML ; 149 elm.innerHTML = '<a href="tel:' + number + '">
149' + text + '</a>' ; 150 } 151 } 152 } 153}; 154 155 }); 156 157 158/****************************************************** 159 ** File Name : medica.js powered by yuga.js 160 ** Creater : miura@MMP 161 ** Summary : custom yuga.js 162 ** Modified : 2008.07.29 163/ ***************************************************** 164/* 165 * yuga.js 0.7.1 - åªé ãªWebå¶ä½ã®ããã®JS 166 * 167 * Copyright (c) 2009 Kyosuke Nakamura (kyosuke.jp) 168 * Licensed under the MIT License: 169 * http://www.opensource.org/licenses/mit-license.php 170 * 171 * Since: 2006-10-30 172 * Modified: 2009-01-27 173 * 174 * jQuery 1.3.1 175 * ThickBox 3.1 176 */ 177 178 179(function($) { 180 181 $(function() { 182 $.yuga.selflink(); 183 }); 184 185 //--------------------------------------------------------------------- 186 187 $.yuga = { 188 // URIãè§£æãããªãã¸ã§ã¯ããè¿ãfunction 189 Uri: function(path){ 190 var self = this; 191 this.originalPath = path; 192 //絶対ãã¹ãåå¾ 193 this.absolutePath = (function(){ 194 var e = document.createElement('span'); 195 e.innerHTML = '<a href="' + path + '" />'; 196 return e.firstChild.href; 197 })(); 198 //絶対ãã¹ãåè§£ 199 var fields = {'schema' : 2, 'username' : 5, 'password' : 6, 'host' : 7, 'path' : 9, 'query' : 10, 'fragment' : 11}; 200 var r = /^((\w+):)?(\/\/)?((\w+):?(\w+)?@)?([^\/\?:]+):?(\d+)?(\/?[^\?#]+)?\??([^#]+)?#?(\w*)/.exec(this.absolutePath); 201 for (var field in fields) { 202 this[field] = r[fields[field]]; 203 } 204 this.querys = {}; 205 if(this.query){ 206 $.each(self.query.split('&'), function(){ 207 var a = this.split('='); 208 if (a.length == 2) self.querys[a[0]] = a[1]; 209 }); 210 } 211 }, 212 //ç¾å¨ã®ãã¼ã¸ã¨è¦ªãã£ã¬ã¯ããªã¸ã®ãªã³ã¯ 213 selflink: function (options) { 214 var c = $.extend({ 215 selfLinkAreaSelector:'body', 216 selfLinkClass:'current', 217 parentsLinkClass:'parentsLink', 218 postfix: '_cr', 219 changeImgSelf:false, 220 changeImgParents:false 221 }, options); 222 $(c.selfLinkAreaSelector+((c.selfLinkAreaSelector)?' ':'')+'a[href]').each(function(){ 223 var href = new $.yuga.Uri(this.getAttribute('href')); 224 var setImgFlg = false; 225 if ((href.absolutePath == location.href) && !href.fragment) { 226 //åãææ¸ã«ãªã³ã¯ 227 $(this).addClass(c.selfLinkClass); 228 setImgFlg = c.changeImgSelf; 229 } else if (0 <= location.href.search(href.absolutePath)) { 230 //親ãã£ã¬ã¯ããªãªã³ã¯ 231 $(this).addClass(c.parentsLinkClass); 232 setImgFlg = c.changeImgParents; 233 } 234 if (setImgFlg){ 235 //imgè¦ç´ ãå«ã¾ãã¦ãããç¾å¨ç¨ç»åï¼_crï¼ã«è¨å® 236 $(this).find('img').each(function(){ 237 this.originalSrc = $(this).attr('src'); 238 this.currentSrc = this.originalSrc.replace(new RegExp('('+c.postfix+')?(\.gif|\.jpg|\.png)$'), c.postfix+"$2"); 239 $(this).attr('src',this.currentSrc); 240 }); 241 } 242 }); 243 } 244 }; 245})(jQuery); 246 247 248(function () { 249 var balloon = Array.prototype.slice.call(document.querySelectorAll('.w_b_bal_box')); 250 var avatar = Array.prototype.slice.call(document.querySelectorAll('.w_b_ava_wrap')); 251 var icon = Array.prototype.slice.call(document.querySelectorAll('.w_b_icon')); 252 var observer = new IntersectionObserver(function (entries) { 253 entries.forEach(function (entry) { 254 if (entry.intersectionRatio > 0) { 255 entry.target.classList.add('w_b_outview'); 256 entry.target.classList.add('w_b_inview'); 257 entry.target.classList.remove('w_b_outclass'); 258 entry.target.classList.add('w_b_inclass'); 259 } else { 260 entry.target.classList.add('w_b_outview'); 261 entry.target.classList.remove('w_b_inview'); 262 entry.target.classList.add('w_b_outclass'); 263 entry.target.classList.remove('w_b_inclass'); 264 } 265 }); 266 }, { 267 268 threshold: [0, 0.5, 1.0], 269 rootMargin: '-120px 0px', 270 }); 271 balloon.forEach(function (box) { 272 observer.observe(box); 273 }); 274 avatar.forEach(function (box) { 275 observer.observe(box); 276 }); 277 icon.forEach(function (box) { 278 observer.observe(box); 279 }); 280})();
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.