1(function($){ 2 3 var app = { 4 5 init : function(){ 6 this.initEvents(); 7 }, 8 9 initEvents : function () { 10 11 // Stores Landing Page: Learn More Herospace Button 12 $(".page-id-23692 .ink_btn-herospace.btn-primary").on("click", function(ev) { 13 ev.preventDefault(); 14 15 var hash = $(this).attr("href"); 16 17 $('html, body').stop().animate({ 18 scrollTop: $(hash).offset().top 19 }, 700); 20 }); 21 22 $(window).scroll(function() { 23 var 24 scroll = $(window).scrollTop(), 25 $siteHeader = $(".site-header"); 26 27 if (scroll >= 50) { 28 29 $siteHeader.addClass("fixed"); 30 31 if ($(window).width() > 850) { 32 $(".herospace-home").css({ 33 marginTop: $(".site-header").outerHeight() 34 }); 35 } 36 37 } else { 38 39 $siteHeader.removeClass("fixed"); 40 41 if ($(window).width() > 850) { 42 $(".herospace-home").css({ 43 marginTop: 0 44 }); 45 } 46 } 47 }); 48 49 } 50 } 51 52 $(function () { 53 app.init(); 54 }); 55 56})(jQuery);
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.