1$(function() { 2 "use strict"; 3 4 var $win = $(window); 5 6 if (! navigator.userAgent.match(/iphone|android(.+)?mobile/i)) { 7 $('a[href^="tel:"]').on('click', function(e) { 8 e.preventDefault(); 9 }); 10 } 11 12 $('.nav a[href="' + location.href.replace(/(\?|\#).*/, '') + '"]') 13 .addClass('active'); 14 15 $('.btn-top').on('click', function() { 16 // ã¹ã¯ãã¼ã« 17 $('html,body').animate({scrollTop: 0}, 500, 'swing'); 18 }); 19 20 $('a[href^=#]').on('click', function() { 21 var speed = 500; //ç§»åå®äºã¾ã§ã®æé(ããªç§)ãæå® 22 var href= $(this).attr("href"); 23 var target = $(href == "#" || href == "" ? 'html' : href); 24 var position = target.offset().top; 25 $("html, body").animate({scrollTop:position - 140}, speed, "swing"); 26 return false; 27 }); 28 29 //navi-fixed 30 var isNaviFixed = false; 31 $win.on('load resize', function(){ 32 var w = $win.width(); 33 var x = 768; 34 var $header = $('.mt-navbar'); 35 var $inHeader = $('.in'); 36 37 $win.off('scroll.stylishcorporate.navi-fixed'); 38 if (w >= x) { 39 $win.on('scroll.stylishcorporate.navi-fixed', function() { 40 if ($win.scrollTop() > 0) { 41 if (! isNaviFixed) { 42 isNaviFixed = true; 43 $header.addClass('fixed'); 44 $inHeader.removeClass('in'); 45 } 46 } else { 47 if (isNaviFixed) { 48 isNaviFixed = false; 49 $header.removeClass('fixed'); 50 $inHeader.removeClass('in'); 51 } 52 } 53 }); 54 } else { 55 //768px以ä¸ã§ã¯ç¡å¹ã«ãã 56 isNaviFixed = false; 57 $header.removeClass('fixed'); 58 $inHeader.removeClass('in'); 59 } 60 }); 61 62 var isSubNaviFixed = false; 63 $win.on('scroll.stylishcorporate.sub-navi-fixed', function() { 64 if($win.scrollTop() > 306) { 65 if (! isSubNaviFixed) { 66 isSubNaviFixed = true; 67 $('.pagessubnavi').addClass('fixed'); 68 $('.pages').css('margin-top', '42px'); 69 $('.pages-inner').css('margin-top', '100px'); 70 } 71 } 72 else { 73 if (isSubNaviFixed) { 74 isSubNaviFixed = false; 75 $('.pagessubnavi').removeClass('fixed'); 76 $('.pages').css('margin-top', ''); 77 $('.pages-inner').css('margin-top', ''); 78 } 79 } 80 }); 81});
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.