1$(function(){ 2 var $commonNavi = $("#common-navi"); 3 $(window).scroll(function(){ 4 if ($(this).scrollTop() > 2) { 5 $commonNavi.addClass("trance"); 6 } else { 7 $commonNavi.removeClass("trance"); 8 } 9 }); 10}); 11/*$(window).load(function(){ 12 var $body = $('body'), 13 $navTypeA = $('#page-navi'), 14 navTypeAOffsetTop = $navTypeA.offset().top; 15 $(window).scroll(function(){ 16 if($(this).scrollTop() > navTypeAOffsetTop) { 17 $body.addClass('fixed'); 18 } else { 19 $body.removeClass('fixed'); 20 } 21 }); 22});*/ 23//ãã¼ã¸å ã¹ã¯ãã¼ã« 24$(document).on('click', 'a[href*=#]', function(event){ 25 var headerHight = $('#common-navi').height(); 26 var pageNaviHight = $('#page-navi').height(); 27 if (this.href.indexOf("#") === 0 || (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname)) { 28 event.preventDefault(); 29 30 $('html,body').animate({ 31 scrollTop: $(this.hash).offset().top+1 32 },1100, 'easeOutQuart'); 33 } 34}); 35 36$(function($){ 37 var body = $('body'), 38 header = $('.header'), 39 slideMenu = $('.slide-menu'), 40 slideMenuBtn = $('#slide-navi-btn'), 41 pageNavi = $('#page-navi'), 42 pabeNaviHeight = pageNavi.height(), 43 menuWidth = slideMenu.outerWidth(); 44 slideMenuBtn.click(function(){ 45 // body ã« open ã¯ã©ã¹ãä»ä¸ãã 46 body.toggleClass('open'); 47 $(".slide-btn-icon").toggleClass("close"); 48 if(body.hasClass('open')){ 49 slideMenu.animate({ 50 'right' : 0 51 }, 300); 52 header.animate({ 53 'right' : 0 54 }, 300); 55 pageNavi.animate({ 56 'top' : -pabeNaviHeight 57 }, 300); 58 } else { 59 slideMenu.animate({ 60 'right' : -menuWidth }, 300); 61 header.animate({ 62 'left' : 0 }, 300); 63 pageNavi.animate({ 64 'top' : 0 65 }, 300); 66 } 67 }); 68});
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.