1$(document).ready(function() { 2 $(".drawer").drawer(); 3}); 4 5 6// persist-header 7$(function () { 8 var flag = "up"; 9 $(window).on("scroll", function () { 10 if ($(this).scrollTop() > 0) { 11 if (flag === "up") { 12 $(".persist-header").stop().animate({ 13 top: 0 14 }, 500) 15 flag = "down"; 16 } 17 } else { 18 if (flag === "down") { 19 $(".persist-header").stop().animate({ 20 top: "-80px" 21 }, 500); 22 flag = "up"; 23 } 24 } 25 }); 26}); 27 28 29// pagetop 30$(function(){ 31 var pageTop = $("#page-top"); 32 pageTop.hide(); 33 pageTop.click(function () { 34 $('body, html').animate({ scrollTop: 0 }, 500); 35 return false; 36 }); 37$(window).scroll(function () { 38 if($(this).scrollTop() >= 200) { 39 pageTop.fadeIn(); 40 } else { 41 pageTop.fadeOut(); 42 } 43 }); 44}); 45 46 47// page-link 48$(function(){ 49 $('a[href^=#]').click(function() { 50 var speed = 400; 51 var href= $(this).attr("href"); 52 var target = $(href == "#" || href == "" ? 'html' : href); 53 var position = target.offset().top; 54 $('body,html').animate({scrollTop:position}, speed, 'swing'); 55 return false; 56 }); 57}); 58 59 60// fadeInUp 61$(function() { 62 $('.fade').on('inview', function(event, isInView, visiblePartX, visiblePartY) { 63 if(isInView){ 64 $(this).stop().addClass('fadeInUp'); 65 } 66 }); 67}); 68 69// fadeLR 70$(function() { 71 $('.fade-ltr').on('inview', function(event, isInView, visiblePartX, visiblePartY) { 72 if(isInView){ 73 $(this).stop().addClass('fadeLR'); 74 } 75 }); 76}); 77 78// fadeRL 79$(function() { 80 $('.fade-rtl').on('inview', function(event, isInView, visiblePartX, visiblePartY) { 81 if(isInView){ 82 $(this).stop().addClass('fadeRL'); 83 } 84 }); 85});
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.