1// JavaScript Document 2 3 4// ã¹ã¿ã¤ã«ã·ã¼ãã®èªã¿è¾¼ã¿ããã¼ã¸ãèªã¿è¾¼ãã å¾ã«ãã¦ã¬ã³ããªã³ã°ãæ©ã 5//========================================================================================== 6/* 7// ãã¼ã¸ä¸é¨ã®ã¹ã¯ãã¼ã«ããã«è¦ããç¯å²ãHTMLã«ã¤ã³ã©ã¤ã³ã§æ¸ããä¸ã§ãã以å¤ã®CSSã¯ã¬ã³ããªã³ã°å¾ã«èªã¿è¾¼ã 8var cb = function() { 9 var l = document.createElement('link'); l.rel = 'stylesheet'; 10 l.href = 'css/style.css'; 11 var h = document.getElementsByTagName('head')[0]; h.parentNode.insertBefore(l, h); 12}; 13var raf = requestAnimationFrame || mozRequestAnimationFrame || webkitRequestAnimationFrame || msRequestAnimationFrame; 14if (raf) raf(cb); 15else window.addEventListener('load', cb); */ 16 17 18// ãã¼ã¸å ã¹ã ã¼ã¹ã¹ã¯ãã¼ã« 19//========================================================================================== 20$(function () { 21 $('a[href^="#"]').click(function () { 22 var href = $(this).attr("href"); 23 var target = $(href); 24 var tt = target.offset().top; 25 $('body,html').stop().animate({scrollTop: tt - 10}, 500, 'swing'); 26 }); 27 28 // $("a.smoothScrolls, .smoothScrolls a").not("a.noScrolls, .noScrolls a").click(function (e) { 29 // e.preventDefault(); 30 // var tt = $($(this).attr("href")).offset().top; 31 // $('html, body').animate({scrollTop: tt - 10}, 500, 'swing'); 32 // }); 33}); 34 35 36// ã¹ããã®ã¨ã.telã¯ã©ã¹ããªã³ã¯ã§ã©ãã 37//========================================================================================== 38if (navigator.userAgent.match(/(iPhone|Android|Mobile)/)) { 39 $('.tel, .tel2').each(function () { 40 var str = $(this).html(); 41 if ($(this).children().is('img')) { 42 $(this).html($('<a class="link-tel">').attr('href', 'tel:' + $(this).children().attr('alt').replace(/-/g, '')).append(str + '</a>')); 43 } else { 44 $(this).html($('<a class="link-tel">').attr('href', 'tel:' + $(this).text().replace(/-/g, '')).append(str + '</a>')); 45 } 46 }); 47} 48 49 50// ãã¼ã¸ãããã¸æ»ããã¿ã³ 51//========================================================================================== 52jQuery(function ($) { 53 //ãããã¸æ»ããã¿ã³ 54 var topBtn = $('#page-top'); 55 topBtn.hide(); 56 //ã¹ã¯ãã¼ã«ã200ã«éããããã¿ã³è¡¨ç¤º 57 $(window).scroll(function () { 58 if ($(this).scrollTop() > 200) { 59 topBtn.fadeIn(); 60 } else { 61 topBtn.fadeOut(); 62 } 63 }); 64 //ã¹ã¯ãã¼ã«ãã¦ããã 65 topBtn.click(function () { 66 $('body,html').animate({ 67 scrollTop: 0 68 }, 500); 69 return false; 70 }); 71}); 72 73 74// ãããããã¦ã³ã¡ãã¥ã¼ 75//========================================================================================== 76jQuery(function ($) { 77 // SP ãã³ãã¼ã¬ã¼ï¼åé層ã¢ã³ã¼ãã£ãªã³ã¡ãã¥ã¼ 78 $('.toggleable').slicknav({ 79 duration: 340, 80 closedSymbol: "▼", 81 openedSymbol: "▲", 82 label: '' 83 }); 84}); 85 86// PC CSSã®ã¿ã§å®è£ 87// ãã ãããã¼ã¸èªã¿è¾¼ã¿æã«ä¸ç¬è¡¨ç¤ºããã¦ãã¾ããã¨ãããã®ã§CSSã§display:none;ã«ãã¦ããã®ãJSãèªã¿è¾¼ã¾ããããã§ã¼ãã¤ã³ãæå®ãã¦ããè§£é¤ãã 88$(window).on('load', function () { 89 // SPãã³ãã¼ã¬ã¼å ã®.subãå«ãã§ãã¾ããªãããã«ã»ã¬ã¯ã¿ã工夫 90 $('.navbar .sub').addClass('load'); 91}); 92 93 94// ãã§ã¼ãã¤ã³ã®æ±ç¨ããªã¬ã¼ 95//========================================================================================== 96jQuery(function ($) { 97 $(window).scroll(function () { 98 99 var elem = $('.js-fadeIn'); 100 101 elem.each(function () { 102 var active = 'active'; 103 var scrollPos = $(window).scrollTop(); 104 var elemOffset = $(this).offset().top; 105 var wh = $(window).height(); 106 107 if (scrollPos > elemOffset - wh + (wh / 6)) { 108 // ç»é¢ã®ä¸ãã1/6ã®ä½ç½®ã¾ã§ãããçºå 109 $(this).addClass(active); 110 } 111 }); 112 }); 113 $(window).scroll(); // ãã¡ã¼ã¹ããã¥ã¼ã«è©²å½è¦ç´ ãå ¥ã£ã¦ããå ´åã«å³æã«å¼ã³åºã 114});
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.