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(0); 13 14 15 // Initiate the wowjs 16 new WOW().init(); 17 18 19 // Sticky Navbar 20 $(window).scroll(function () { 21 if ($(this).scrollTop() > 45) { 22 $('.nav-bar').addClass('sticky-top shadow-sm').css('top', '0px'); 23 } else { 24 $('.nav-bar').removeClass('sticky-top shadow-sm').css('top', '-100px'); 25 } 26 }); 27 28 29 // Header carousel 30 $(".header-carousel").owlCarousel({ 31 animateOut: 'fadeOut', 32 items: 1, 33 margin: 0, 34 stagePadding: 0, 35 autoplay: true, 36 smartSpeed: 500, 37 dots: true, 38 loop: true, 39 nav : true, 40 navText : [ 41 '<i class="bi bi-arrow-left"></i>', 42 '<i class="bi bi-arrow-right"></i>' 43 ], 44 }); 45 46 47 48 // testimonial carousel 49 $(".testimonial-carousel").owlCarousel({ 50 autoplay: true, 51 smartSpeed: 1500, 52 center: false, 53 dots: false, 54 loop: true, 55 margin: 25, 56 nav : true, 57 navText : [ 58 '<i class="fa fa-arrow-right"></i>', 59 '<i class="fa fa-arrow-left"></i>' 60 ], 61 responsiveClass: true, 62 responsive: { 63 0:{ 64 items:1 65 }, 66 576:{ 67 items:1 68 }, 69 768:{ 70 items:2 71 }, 72 992:{ 73 items:2 74 }, 75 1200:{ 76 items:2 77 } 78 } 79 }); 80 81 82// YENI 83 84function sendEmail() { 85 Email.send({ 86 Host: "smtp.yourisp.com", 87 Username: "username", 88 Password: "password", 89 To: '[email protected]', 90 From: "[email protected]", 91 Subject: "Test Email", 92 Body: "This is a test email sent using SMTP.js" 93 }) 94 .then(function (message) { 95 alert("Mail sent successfully") // Alert message on successful email delivery 96 }); 97} 98 99 100 // Facts counter 101 $('[data-toggle="counter-up"]').counterUp({ 102 delay: 5, 103 time: 2000 104 }); 105 106 107 // Back to top button 108 $(window).scroll(function () { 109 if ($(this).scrollTop() > 300) { 110 $('.back-to-top').fadeIn('slow'); 111 } else { 112 $('.back-to-top').fadeOut('slow'); 113 } 114 }); 115 $('.back-to-top').click(function () { 116 $('html, body').animate({scrollTop: 0}, 1500, 'easeInOutExpo'); 117 return false; 118 }); 119 120 121})(jQuery); 122
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.