1 2new WOW().init(); 3 4$(function() { 5 6 // toggle tooltips 7 $('[data-toggle="tooltip"]').tooltip({ 8 container: 'body' 9 }); 10 11 // sticky nav 12 if($('.js-nav-sticky').length) { 13 var $window = $(window), 14 $navbar = $('.js-nav-sticky'), 15 $inventory = $('.inventory'), 16 navbarHeight = $navbar.outerHeight(), 17 navbarPos = $navbar.position(); 18 19 $window.scroll(function () { 20 if($window.scrollTop() >= (navbarPos.top)) { 21 $navbar.addClass('is-sticky'); 22 $inventory.css('margin-bottom', navbarHeight); 23 } else { 24 $navbar.removeClass('is-sticky'); 25 $inventory.removeAttr('style'); 26 } 27 }); 28 } 29 30 // back to top button 31 var $button = $('.js-back-to-top'), 32 $window = $(window); 33 34 $window.scroll(function() { 35 var pos = $window.scrollTop(); 36 37 if (pos > 200) { 38 $button.addClass('is-visible'); 39 } else { 40 $button.removeClass('is-visible'); 41 } 42 }); 43 44 $button.on('click', function(e){ 45 e.preventDefault(); 46 47 $('html, body').animate({ 48 scrollTop: 0 49 }, 'fast'); 50 51 $button.removeClass('is-visible'); 52 }); 53});
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.