1$(document).ready(function(){ 2 //$(".pagetop a").hide(); 3 $(window).on("scroll", function() { 4 if ($(this).scrollTop() > 100) { 5 $("#page_top").fadeIn("fast"); 6 } else { 7 $("#page_top").fadeOut("fast"); 8 } 9 scrollHeight = $(document).height(); //ããã¥ã¡ã³ãã®é«ã 10 scrollPosition = $(window).height() + $(window).scrollTop(); //ç¾å¨å° 11 footHeight = $("footer").innerHeight(); //footerã®é«ãï¼ï¼æ¢ãããä½ç½®ï¼ 12 if ( scrollHeight - scrollPosition <= footHeight ) { //ããã¥ã¡ã³ãã®é«ãã¨ç¾å¨å°ã®å·®ãfooterã®é«ã以ä¸ã«ãªã£ãã 13 $("#page_top").css({ 14 "position":"absolute", //pisitionãabsoluteï¼è¦ªï¼wrapperããã®çµ¶å¯¾å¤ï¼ã«å¤æ´ 15 "bottom": footHeight + 5 //ä¸ããfooterã®é«ã + âpxä¸ããä½ç½®ã«é ç½® 16 }); 17 } else { //ãã以å¤ã®å ´å㯠18 if ($(window).width() >= 1024) { 19 $("#page_top").css({ 20 "position":"fixed", //åºå®è¡¨ç¤º 21 "bottom": "60px" //ä¸ãã20pxä¸ããä½ç½®ã« 22 }); 23 } else { 24 $("#page_top").css({ 25 "position":"fixed", //åºå®è¡¨ç¤º 26 "bottom": "65px" //ä¸ãã0pxä¸ããä½ç½®ã« 27 }); 28 } 29 } 30 }); 31 $('#page_top').click(function () { 32 $('body,html').animate({ 33 scrollTop: 0 34 }, 800); 35 return false; 36 }); 37});
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.