1(function($) { 2 3 'use strict'; 4 // Mean Menu 5 $('.mean-menu').meanmenu({ 6 meanScreenWidth: "1199" 7 }); 8 9 // Sticky, Go To Top JS 10 $(window).on('scroll', function() { 11 // Header Sticky JS 12 if ($(this).scrollTop() >150){ 13 $('.navbar-area').addClass("is-sticky"); 14 $('.page-content').addClass("push-down"); 15 } 16 else{ 17 $('.navbar-area').removeClass("is-sticky"); 18 $('.page-content').removeClass("push-down"); 19 }; 20 21 // Go To Top JS 22 var scrolled = $(window).scrollTop(); 23 if (scrolled > 300) $('.go-top').addClass('active'); 24 if (scrolled < 300) $('.go-top').removeClass('active'); 25 }); 26 27 // Click Event JS 28 $('.go-top').on('click', function() { 29 $("html, body").animate({ scrollTop: "0" }, 50); 30 }); 31 32 // Count Time JS 33 function makeTimer() { 34 var endTime = new Date("november 30, 2022 17:00:00 PDT"); 35 var endTime = (Date.parse(endTime)) / 1000; 36 var now = new Date(); 37 var now = (Date.parse(now) / 1000); 38 var timeLeft = endTime - now; 39 var days = Math.floor(timeLeft / 86400); 40 var hours = Math.floor((timeLeft - (days * 86400)) / 3600); 41 var minutes = Math.floor((timeLeft - (days * 86400) - (hours * 3600 )) / 60); 42 var seconds = Math.floor((timeLeft - (days * 86400) - (hours * 3600) - (minutes * 60))); 43 if (hours < "10") { hours = "0" + hours; } 44 if (minutes < "10") { minutes = "0" + minutes; } 45 if (seconds < "10") { seconds = "0" + seconds; } 46 $("#days").html(days + "<span>Day</span>"); 47 $("#hours").html(hours + "<span>Hours</span>"); 48 $("#minutes").html(minutes + "<span>Minutes</span>"); 49 $("#seconds").html(seconds + "<span>Seconds</span>"); 50 51 $("#dayss").html(days + "<span>d</span>"); 52 $("#hourss").html(hours + "<span>h</span>"); 53 $("#minutess").html(minutes + "<span>m</span>"); 54 $("#secondss").html(seconds + "<span>s</span>"); 55 } 56 setInterval(function() { makeTimer(); }, 300); 57 58 // Preloader 59 $(window).on('load', function() { 60 $('#initial-preloader').addClass('preloader-deactivate'); 61 }) 62 63 // Others Option For Responsive JS 64 $(".others-option-for-responsive .dot-menu").on("click", function(){ 65 $(".others-option-for-responsive .container .container").toggleClass("active"); 66 }); 67 68 // Featured Slide JS 69 $('.featured-slide').owlCarousel({ 70 loop: true, 71 margin: 30, 72 nav: true, 73 dots: false, 74 autoplay: false, 75 smartSpeed: 1000, 76 autoplayHoverPause: true, 77 navText: [ 78 "<i class='ri-arrow-left-line'></i>", 79 "<i class='ri-arrow-right-line'></i>", 80 ], 81 responsive: { 82 0: { 83 items: 1, 84 }, 85 414: { 86 items: 1, 87 }, 88 576: { 89 items: 1, 90 }, 91 768: { 92 items: 2, 93 }, 94 992: { 95 items: 3, 96 }, 97 1200: { 98 items: 3, 99 }, 100 }, 101 }); 102 103 // Featured Slide Three JS 104 $('.featured-slide-three').owlCarousel({ 105 loop: true, 106 margin: 30, 107 nav: true, 108 dots: false, 109 autoplay: false, 110 smartSpeed: 1000, 111 autoplayHoverPause: true, 112 navText: [ 113 "<i class='ri-arrow-left-line'></i>", 114 "<i class='ri-arrow-right-line'></i>", 115 ], 116 responsive: { 117 0: { 118 items: 1, 119 }, 120 414: { 121 items: 1, 122 }, 123 576: { 124 items: 1, 125 }, 126 768: { 127 items: 2, 128 }, 129 992: { 130 items: 2, 131 }, 132 1200: { 133 items: 5, 134 }, 135 }, 136 }); 137 138 // Agents Slide JS 139 $('.agents-slide').owlCarousel({ 140 items: 1, 141 loop: true, 142 margin: 30, 143 nav: true, 144 dots: false, 145 autoplay: true, 146 smartSpeed: 1000, 147 autoplayHoverPause: true, 148 navText: [ 149 "<i class='ri-arrow-left-line'></i>", 150 "<i class='ri-arrow-right-line'></i>", 151 ], 152 responsive: { 153 0: { 154 items: 1, 155 }, 156 576: { 157 items: 1, 158 }, 159 768: { 160 items: 2, 161 }, 162 992: { 163 items: 3, 164 }, 165 1200: { 166 items: 4, 167 }, 168 }, 169 }); 170 171 // Discover Slide JS 172 // $('#discover-slide').owlCarousel({ 173 // items: 3, 174 // loop: true, 175 // margin: 30, 176 // nav: true, 177 // dots: true, 178 // autoplay: true, 179 // smartSpeed: 1000, 180 // autoplayHoverPause: true, 181 // navText: [ 182 // "<i class='ri-arrow-left-line'></i>", 183 // "<i class='ri-arrow-right-line'></i>", 184 // ], 185 // responsive: { 186 // 0: { 187 // items: 2, 188 // }, 189 // 576: { 190 // items: 3, 191 // }, 192 // 768: { 193 // items: 4, 194 // }, 195 // 992: { 196 // items: 4, 197 // }, 198 // 1200: { 199 // items: 4, 200 // }, 201 // }, 202 // }); 203 204 // Client Say Slide JS
205 $('.client-say-slide').owlCarousel({ 206 items: 1, 207 loop: true, 208 margin: 0, 209 nav: false, 210 dots: true, 211 autoplay: true, 212 smartSpeed: 1000, 213 autoplayHoverPause: true, 214 }); 215 216 // Client Say Slide Two JS 217 $('.client-say-slide-two').owlCarousel({ 218 items: 1, 219 loop: true, 220 margin: 30, 221 nav: false, 222 dots: true, 223 autoplay: true, 224 smartSpeed: 1000, 225 autoplayHoverPause: true, 226 responsive: { 227 0: { 228 items: 1, 229 }, 230 576: { 231 items: 1, 232 }, 233 768: { 234 items: 2, 235 }, 236 992: { 237 items: 3, 238 }, 239 1200: { 240 items: 3, 241 }, 242 }, 243 }); 244 245 // Year JS 246 // document.getElementById("year").innerHTML = new Date().getFullYear(); 247 248 // WOW Animation 249 if ($('.wow').length) { 250 var wow = new WOW({ 251 boxClass: 'wow', 252 animateClass: 'animated', 253 offset: 0, 254 mobile: false, 255 live: true, 256 }); 257 wow.init(); 258 } 259 260 // MixItUp Shorting JS 261 $('.shorting').mixItUp(); 262 263 // Subscribe form JS 264 $(".newsletter-form").validator().on("submit", function (event) { 265 if (event.isDefaultPrevented()) { 266 // handle the invalid form... 267 formErrorSub(); 268 submitMSGSub(false, "Please enter your email correctly."); 269 } else { 270 // everything looks good! 271 event.preventDefault(); 272 } 273 }); 274 function callbackFunction (resp) { 275 if (resp.result === "success") { 276 formSuccessSub(); 277 } 278 else { 279 formErrorSub(); 280 } 281 } 282 function formSuccessSub(){ 283 $(".newsletter-form")[0].reset(); 284 submitMSGSub(true, "Thank you for subscribing!"); 285 setTimeout(function() { 286 $("#validator-newsletter, #validator-newsletter-2").addClass('hide'); 287 }, 4000) 288 } 289 function formErrorSub(){ 290 $(".newsletter-form").addClass("animated shake"); 291 setTimeout(function() { 292 $(".newsletter-form").removeClass("animated shake"); 293 }, 1000) 294 } 295 function submitMSGSub(valid, msg){ 296 if(valid){ 297 var msgClasses = "validation-success"; 298 } else { 299 var msgClasses = "validation-danger"; 300 } 301 $("#validator-newsletter, #validator-newsletter-2").removeClass().addClass(msgClasses).text(msg); 302 } 303 304 // AJAX MailChimp JS 305 $(".newsletter-form").ajaxChimp({ 306 url: "https://Envy Theme.us20.list-manage.com/subscribe/post?u=60e1ffe2e8a68ce1204cd39a5&id=42d6d188d9", // Your url MailChimp 307 callback: callbackFunction 308 }); 309 310 // Pricing JS 311 try { 312 var e = document.getElementById("filt-monthly"), 313 d = document.getElementById("filt-yearly"), 314 t = document.getElementById("switcher"), 315 m = document.getElementById("monthly"), 316 y = document.getElementById("yearly"); 317 318 e.addEventListener("click", function(){ 319 t.checked = false; 320 e.classList.add("toggler--is-active"); 321 d.classList.remove("toggler--is-active"); 322 m.classList.remove("hide"); 323 y.classList.add("hide"); 324 }); 325 d.addEventListener("click", function(){ 326 t.checked = true; 327 d.classList.add("toggler--is-active"); 328 e.classList.remove("toggler--is-active"); 329 m.classList.add("hide"); 330 y.classList.remove("hide"); 331 }); 332 t.addEventListener("click", function(){ 333 d.classList.toggle("toggler--is-active"); 334 e.classList.toggle("toggler--is-active"); 335 m.classList.toggle("hide"); 336 y.classList.toggle("hide"); 337 }); 338 } catch (err) {} 339 340})(jQuery);
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.