1(function ($) { 2 "use strict"; 3 4 // Spinner 5 var spinner = function () { 6 setTimeout(function () { 7 if ($('#spinner').length > 0) { 8 $('#spinner').removeClass('show'); 9 } 10 }, 1); 11 }; 12 spinner(); 13 14 15 // Initiate the wowjs 16 new WOW().init(); 17 18 19 // Sticky Navbar 20 $(window).scroll(function () { 21 if ($(this).scrollTop() > 300) { 22 $('.sticky-top').addClass('shadow-sm').css('top', '0px'); 23 } else { 24 $('.sticky-top').removeClass('shadow-sm').css('top', '-100px'); 25 } 26 }); 27 28 29 // Back to top button 30 $(window).scroll(function () { 31 if ($(this).scrollTop() > 300) { 32 $('.back-to-top').fadeIn('slow'); 33 } else { 34 $('.back-to-top').fadeOut('slow'); 35 } 36 }); 37 $('.back-to-top').click(function () { 38 $('html, body').animate({scrollTop: 0}, 1500, 'easeInOutExpo'); 39 return false; 40 }); 41 42 43 // Facts counter 44 $('[data-toggle="counter-up"]').counterUp({ 45 delay: 10, 46 time: 2000 47 }); 48 49 50 // Header carousel 51 $(".header-carousel").owlCarousel({ 52 autoplay: true, 53 smartSpeed: 1000, 54 items: 1, 55 dots: true, 56 loop: true, 57 nav : true, 58 navText : [ 59 '<i class="bi bi-chevron-left"></i>', 60 '<i class="bi bi-chevron-right"></i>' 61 ] 62 }); 63 64 65 // Testimonials carousel 66 $(".testimonial-carousel").owlCarousel({ 67 autoplay: true, 68 smartSpeed: 1000, 69 center: true, 70 dots: false, 71 loop: true, 72 nav : true, 73 navText : [ 74 '<i class="bi bi-arrow-left"></i>', 75 '<i class="bi bi-arrow-right"></i>' 76 ], 77 responsive: { 78 0:{ 79 items:1 80 }, 81 768:{ 82 items:2 83 } 84 } 85 }); 86 87 88 // Modal Video 89 var $videoSrc; 90 $('.btn-play').click(function () { 91 $videoSrc = $(this).data("src"); 92 }); 93 console.log($videoSrc); 94 $('#videoModal').on('shown.bs.modal', function (e) { 95 $("#video").attr('src', $videoSrc + "?autoplay=1&modestbranding=1&showinfo=0"); 96 }) 97 $('#videoModal').on('hide.bs.modal', function (e) { 98 $("#video").attr('src', $videoSrc); 99 }) 100 101 102})(jQuery); 103
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.