1$(document).ready(function () { 2 // Header Sticky 3 $(window).on('scroll', function () { 4 if ($(this).scrollTop() > 120) { 5 $('.navbar').addClass("is-sticky"); 6 } 7 else { 8 $('.navbar').removeClass("is-sticky"); 9 } 10 }); 11 12 // Popup Image 13 $('.popup-image').magnificPopup({ 14 type: 'image', 15 gallery: { 16 enabled: true 17 } 18 }); 19 20 // Testimonials Slides 21 $('.testimonials-slides').owlCarousel({ 22 items: 1, 23 nav: true, 24 loop: true, 25 margin: 30, 26 dots: false, 27 autoplay: true, 28 animateIn: 'fadeIn', 29 animateOut: 'fadeOut', 30 autoplayHoverPause: true, 31 navText: [ 32 "<i class='flaticon-left-arrow'></i>", 33 "<i class='flaticon-right-arrow'></i>" 34 ] 35 }); 36 37 // Go to Top 38 $(function () { 39 // Scroll Event 40 $(window).on('scroll', function () { 41 var scrolled = $(window).scrollTop(); 42 if (scrolled > 600) $('.go-top').addClass('active'); 43 if (scrolled < 600) $('.go-top').removeClass('active'); 44 }); 45 // Click Event 46 $('.go-top').on('click', function () { 47 $("html, body").animate({ scrollTop: "0" }, 500); 48 }); 49 }); 50 51});
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.