1//ã¹ã ã¼ãºã¹ã¯ãã¼ã« 2// #page-topãã¯ãªãã¯ããéã®è¨å® 3$('header h1 a').click(function () { 4 $('body,html').animate({ 5 scrollTop: 0//ãã¼ã¸ãããã¾ã§ã¹ã¯ãã¼ã« 6 }, 500);//ãã¼ã¸ãããã¹ã¯ãã¼ã«ã®éããæ°åã大ããã»ã©é ããªã 7 return false;//ãªã³ã¯èªä½ã®ç¡å¹å 8}); 9 10 11 12var Header = $("header"); 13var Wrapper = $("#wrapper"); 14var Headeros = $("header").offset().top; 15var HeaderH = $("header").innerHeight(); 16 17$(window).on("load scroll", function () { 18 /* ã¹ã¯ãã¼ã«ä½ç½®ã®é«ããxxãã大ããããã¤fixedã¯ã©ã¹ããªãå ´å */ 19 if ($(this).scrollTop() > Headeros && Header.hasClass("fixed") == false) { 20 Header.addClass("fixed"); 21 Wrapper.addClass("fixed"); 22 Wrapper.css( 'padding-top', HeaderH + 'px'); 23 } 24 /* ã¹ã¯ãã¼ã«ä½ç½®ã®é«ããxxããå°ããããã¤fixedã¯ã©ã¹ãããå ´å */ 25 else if ($(this).scrollTop() < Headeros && Header.hasClass("fixed") == true) { 26 Header.removeClass("fixed"); 27 Wrapper.removeClass("fixed"); 28 Wrapper.css( 'padding-top', 0 + 'px'); 29 } 30}); 31 32 33//ããã¹ãã¢ãã¡ 34function scroll_txt_fadein(){ 35 $('.txt-effect').each(function(){ 36 var position = $(this).offset().top; 37 var scroll = $(window).scrollTop(); 38 var windowHeight = $(window).height(); 39 if (scroll > position - windowHeight + 300){ 40 $(this).addClass('active'); 41 } 42 }); 43} 44$(function(){ 45 $(window).scroll(function (){ 46 scroll_txt_fadein(); 47 }); 48 scroll_txt_fadein(); 49}); 50 51//æ±ç¨ã¢ãã¡ 52function scroll_fadein(){ 53 $('.effect').each(function(){ 54 var position = $(this).offset().top; 55 var scroll = $(window).scrollTop(); 56 var windowHeight = $(window).height(); 57 if (scroll > position - windowHeight + 300){ 58 $(this).addClass('active'); 59 } 60 }); 61} 62$(function(){ 63 $(window).scroll(function (){ 64 scroll_fadein(); 65 }); 66 scroll_fadein(); 67});
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.