1;(function () { 2 3 'use strict'; 4 var page = $('body,html'); 5 6 var goToTop = function() { 7 8 $('.js-gotop').on('click', function(event){ 9 10 event.preventDefault(); 11 12 $('html, body').animate({ 13 scrollTop: $('html').offset().top 14 }, 500, 'easeInOutExpo'); 15 16 return false; 17 }); 18 19 $(window).scroll(function(){ 20 21 var $win = $(window); 22 if ($win.scrollTop() > 200) { 23 $('.js-top').addClass('active'); 24 } else { 25 $('.js-top').removeClass('active'); 26 } 27 }); 28 29 }; 30 31 /*var tooltip = function(){ 32 $('[data-toggle="tooltip"]').tooltip(); 33 }; 34 35 var popover = function(){ 36 $('[data-toggle="popover"]').popover({html: true}); 37 };*/ 38 39 40 var smoothScroll = function(){ 41 // Smooth Scroll 42 $('a[href*="#"]:not([href="#"]):not([data-toggle]):not([data-carousel])').click(function() { 43 if (location.pathname.replace(/^\//,'') === this.pathname.replace(/^\//,'') || location.hostname === this.hostname) { 44 45 var target = $(this.hash); 46 target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); 47 if (target.length) { 48 $('html,body').animate({ 49 scrollTop: target.offset().top 50 }, 1000); 51 return false; 52 } 53 } 54 }); 55 }; 56 57 /*var matchDivHeight = function (item, options){ 58 $(item).matchHeight(options); 59 };*/ 60 61 var scrollTO = function(item){ 62 page.animate({ 63 scrollTop: $(item).offset().top-130 64 }, 1000); 65 66 return false; 67 }; 68 69 70 $(function(){ 71 goToTop(); 72 smoothScroll(); 73 74 }); 75}());
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.