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