1// JavaScript Document 2 3 4jQuery(document).ready( function() { 5 6// PC ãããããã¦ã³ã¡ãã¥ã¼ 7 8 var windowWidth = $(window).width(); 9 var windowSm = 768; 10 if (windowWidth >= windowSm) { 11 $('#nav .subsub').hide(); 12 $('#nav .sub').click( function(event) { 13 $('#nav .subsub').css('visibility','visible'); 14 $(this).toggleClass('close').next('#nav .subsub').slideToggle(); 15 }); 16 } 17 18// SPãããããã¦ã³ã¡ãã¥ã¼ SlickNav 19 $('nav').slicknav({ 20 label: '', 21 closeOnClick: 'true' 22 }); 23 24// é»è©±çªå· 25 if (navigator.userAgent.match(/(iPhone|iPad|Android|Mobile)/)) { 26 $('.tel').each(function() { 27 var str = $(this).html(); 28 if ($(this).children().is('img')) { 29 $(this).html($('<a>').attr('href', 'tel:' + $(this).children().attr('alt').replace(/-/g, '')).append(str + '</a>')); 30 } else { 31 $(this).html($('<a>').attr('href', 'tel:' + $(this).text().replace(/-/g, '')).append(str + '</a>')); 32 } 33 }); 34 } 35 36 37//img switcher 38$(function () { 39 var $setElem = $('body img'), 40 pcName = '_pc', 41 spName = '_sp', 42 replaceWidth = 750; 43 44 $setElem.each(function () { 45 var $this = $(this); 46 47 function imgSize() { 48 if (window.innerWidth > replaceWidth) { 49 $this.attr('src', $this.attr('src').replace(spName, pcName)).css({ 50 visibility: 'visible' 51 }); 52 } else { 53 $this.attr('src', $this.attr('src').replace(pcName, spName)).css({ 54 visibility: 'visible' 55 }); 56 } 57 } 58 $(window).resize(function () { 59 imgSize(); 60 }); 61 imgSize(); 62 }); 63}); 64 65 66 67 68// ã¹ã ã¼ãºã¹ã¯ãã¼ã« 69 70 $('.scr').click(function(){ 71 var speed = 500; 72 var href= $(this).attr("href"); 73 var target = $(href == "#" || href == "" ? 'html' : href); 74 var position = target.offset().top; 75 $("html, body").animate({scrollTop:position}, speed, "swing"); 76 return false; 77 }); 78 79 80// ãã¼ã¸ã¢ãã 81var up = $("#pageup"); 82//$(window).scroll(function () { 83// if ($(this).scrollTop() > 200) { 84// up.fadeIn(); 85// } else { 86// up.fadeOut(); 87// } 88//}); 89up.click(function () { 90 $("body, html").animate({ scrollTop: 0 }, 500); 91 return false; 92}); 93 94 95$('#pageup').click(function () { 96 $("body, html").animate({ scrollTop: 0 }, 500); 97 return false; 98}); 99 100 101 102$(window).scroll(function(){ 103 if ($(window).scrollTop() > 300) { 104 $('#pageup').addClass('block'); 105 } else { 106 $('#pageup').removeClass('block'); 107 } 108}); 109 110 111 112// a target outlink 113$("a[href^=http]:not([href*='" + location.hostname + "'])").attr({ 114 target: "_blank", 115 rel: "noopener" 116}); 117 118// a target pdf 119$("a[href$=pdf]").attr("target", "_blank"); 120 121 122}); 123 124//ããã ãç¥ãã ã¢ã³ã¼ãã£ãªã³ 125 $('#news .news_title').slice(0, 3).addClass("close"); 126 $('#news .news_title').click(function(){ 127 $(this).toggleClass("close").next('#news .news_body').slideToggle(); 128 });
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.