1var $animation_elements = $('.animation-element'); 2var $window = $(window); 3function check_if_in_view() { 4 var window_height = $window.height(); 5 var window_top_position = $window.scrollTop(); 6 var window_bottom_position = (window_top_position + window_height); 7 $.each($animation_elements, function () { 8 var $element = $(this); 9 var element_height = $element.outerHeight(); 10 var element_top_position = $element.offset().top; 11 var element_bottom_position = (element_top_position + element_height); 12 13 //check to see if this current container is within viewport 14 if ((element_bottom_position >= window_top_position) && 15 (element_top_position <= window_bottom_position)) { 16 $element.addClass('in-view'); 17 } else { 18 $element.removeClass('in-view'); 19 } 20 }); 21} 22$window.on('scroll resize', check_if_in_view); 23$window.trigger('scroll'); 24$(document).on("click", ".doSwitch", function () { 25 if (!$(this).hasClass("boldLaser")) { 26 var id = $(this).attr("id") 27 var currentIndex = id.substring(0, 5) 28 $("#universityList a").removeClass("boldLaser") 29 $(this).addClass("boldLaser") 30 $(".hidden-txt").hide() 31 $("#hiddenArea_" + id).show() 32 } 33}) 34$(".hidden").hide(); 35$(".hidden:first").show(); 36$("#universityList a:first").addClass("boldLaser"); 37$(".txts>div:first").show();
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.