1(function($) { 2 'use strict'; 3 4 /*==================== 5 MEAN MENU JS 6 ======================*/ 7 $('.mean-menu').meanmenu({ 8 meanScreenWidth: "991" 9 }); 10 11 /*==================== 12 PRELOADER JS 13 ======================*/ 14 $(window).on('load', function() { 15 $('.preloader').fadeOut(); 16 }); 17 18 /*==================== 19 NICE SELECT JS 20 ======================*/ 21// $('select').niceSelect(); 22 23 /*==================== 24 HEADER STICKY JS 25 ======================*/ 26 $(window).on('scroll', function() { 27 if ($(this).scrollTop() >150){ 28 $('.navbar-area').addClass("is-sticky"); 29 } 30 else{ 31 $('.navbar-area').removeClass("is-sticky"); 32 } 33 }); 34 35 /*==================== 36 HERO SLIDER WRAP JS 37 ======================*/ 38 $('.hero-slider-wrap').owlCarousel({ 39 loop:true, 40 margin:0, 41 nav:true, 42 mouseDrag:true, 43 items:1, 44 dots:false, 45 autoHeight:true, 46 autoplay: true, 47 smartSpeed:800, 48 autoplayHoverPause:true, 49 navText: [ 50 "<i class='bx bx-chevrons-left'></i>", 51 "<i class='bx bx-chevrons-right'></i>" 52 ] 53 }); 54 55 /*==================== 56 TESTIMONIAL WRAP JS 57 ======================*/ 58 $('.testimonial-wrap').owlCarousel({ 59 loop:true, 60 margin:0, 61 nav:false, 62 mouseDrag:true, 63 items:1, 64 dots:true, 65 autoHeight:true, 66 autoplay:true, 67 smartSpeed:1500, 68 autoplayHoverPause:true, 69 center:false, 70 responsive:{ 71 0:{ 72 items:1, 73 margin:10 74 }, 75 576:{ 76 items:1, 77 margin:10 78 }, 79 768:{ 80 items:2, 81 margin:20 82 }, 83 992:{ 84 items:2 85 }, 86 1200:{ 87 items:2 88 } 89 } 90 }); 91 92 /*==================== 93 DEPARTMENT WRAP JS 94 ======================*/ 95 $('.department-wrap').owlCarousel({ 96 loop:true, 97 margin:0, 98 nav:false, 99 mouseDrag:true, 100 items:1, 101 dots:true, 102 autoHeight:true, 103 autoplay:true, 104 smartSpeed:1500, 105 autoplayHoverPause:true, 106 center:false, 107 responsive:{ 108 0:{ 109 items:1, 110 margin:10 111 }, 112 576:{ 113 items:1, 114 margin:10 115 }, 116 768:{ 117 items:2, 118 margin:20 119 }, 120 992:{ 121 items:2 122 }, 123 1200:{ 124 items:3 125 } 126 } 127 }); 128 129 /*==================== 130 BLOG WRAP JS 131 ======================*/ 132 $('.blog-wrap').owlCarousel({ 133 loop:true, 134 margin:0, 135 nav:false, 136 mouseDrag:true, 137 items:1, 138 dots:true, 139 autoHeight:true, 140 autoplay:true, 141 smartSpeed:1500, 142 autoplayHoverPause:true, 143 center:false, 144 responsive:{ 145 0:{ 146 items:1, 147 margin:10 148 }, 149 576:{ 150 items:1, 151 margin:10 152 }, 153 768:{ 154 items:2, 155 margin:20 156 }, 157 992:{ 158 items:2 159 }, 160 1200:{ 161 items:3 162 } 163 } 164 }); 165 166 /*==================== 167 BLOG SIDEBAR JS 168 ======================*/ 169 $('.blog-sidebar-wrap').owlCarousel({ 170 loop:true, 171 margin:0, 172 nav:false, 173 mouseDrag:true, 174 items:1, 175 dots:true, 176 autoHeight:true, 177 autoplay:true, 178 smartSpeed:1500, 179 autoplayHoverPause:true, 180 center:false, 181 responsive:{ 182 0:{ 183 items:1, 184 margin:10 185 }, 186 576:{ 187 items:1, 188 margin:10 189 }, 190 768:{ 191 items:2, 192 margin:20 193 }, 194 992:{ 195 items:2 196 }, 197 1200:{ 198 items:2 199 } 200 } 201 }); 202 203 /*==================== 204 TEAM WRAP JS 205 ======================*/ 206 $('.doctor-wrap').owlCarousel({ 207 loop:true, 208 margin:0, 209 nav:false, 210 mouseDrag:true, 211 items:1, 212 dots:true, 213 autoHeight:true, 214 autoplay:true, 215 smartSpeed:1500, 216 autoplayHoverPause:true, 217 center:false, 218 responsive:{ 219 0:{ 220 items:1, 221 margin:10, 222 }, 223 576:{ 224 items:1, 225 margin:10 226 }, 227 768:{ 228 items:2, 229 margin:20 230 }, 231 992:{ 232 items:2 233 }, 234 1200:{ 235 items:3 236 } 237 } 238 }); 239 240 /*==================== 241 DATETIMEPICKER2 JS 242 ======================*/ 243 $('#datetimepicker2').datepicker({ 244 weekStart: 0, 245 todayBtn: "linked", 246 language: "es", 247 orientation: "bottom auto", 248 keyboardNavigation: false, 249 autoclose: true 250 }); 251 252 /*==================== 253 ODOMETER JS 254 ======================*/ 255 $('.odometer').appear(function(e) { 256 var odo = $(".odometer"); 257 odo.each(function() { 258 var countNumber = $(this).attr("data-count"); 259 $(this).html(countNumber); 260 }); 261 }); 262 263 /*==================== 264 SCROLL JS 265 ======================*/ 266 $(window).on('scroll', function(){ 267 var scrolled = $(window).scrollTop(); 268 if (scrolled > 300) $('.go-top').addClass('active'); 269 if (scrolled < 300) $('.go-top').removeClass('active'); 270 }); 271 272 /*==================== 273 GO-TOP JS 274 ======================*/ 275 $('.go-top').on('click', function() { 276 $("html, body").animate({ scrollTop: "0" }, 50); 277 }); 278 279 /*==================== 280 FAQ JS 281 ======================*/ 282 $('.accordion').find('.accordion-title').on('click', function(){ 283 $(this).toggleClass('active'); 284 $(this).next().slideToggle('fast'); 285 $('.accordion-content').not($(this).next()).slideUp('fast'); 286 $('.accordion-title').not($(this)).removeClass('active'); 287 }); 288 289 /*==================== 290 WOW JS 291 ======================*/ 292 new WOW().init(); 293 294 /*==================== 295 POPUP JS 296 ======================*/ 297 $('.popup-youtube, .popup-vimeo').magnificPopup({ 298 disableOn: 300, 299 type: 'iframe', 300 mainClass: 'mfp-fade', 301 removalDelay: 160, 302 preloader: false,
303 fixedContentPos: false, 304 }); 305 306 /*==================== 307 Tabs JS 308 ======================*/ 309 $('.tab ul.tabs').addClass('active').find('> li:eq(0)').addClass('current'); 310 $('.tab ul.tabs li').on('click', function (g) { 311 var tab = $(this).closest('.tab'), 312 index = $(this).closest('li').index(); 313 tab.find('ul.tabs > li').removeClass('current'); 314 $(this).closest('li').addClass('current'); 315 tab.find('.tab_content').find('div.tabs_item').not('div.tabs_item:eq(' + index + ')').fadeOut(); 316 tab.find('.tab_content').find('div.tabs_item:eq(' + index + ')').fadeIn(); 317 g.preventDefault(); 318 }); 319 320 /*==================== 321 INPUT COUNTER JS 322 ======================*/ 323 $('.input-counter').each(function() { 324 var spinner = jQuery(this), 325 input = spinner.find('input[type="text"]'), 326 btnUp = spinner.find('.plus-btn'), 327 btnDown = spinner.find('.minus-btn'), 328 min = input.attr('min'), 329 max = input.attr('max'); 330 331 btnUp.on('click', function() { 332 var oldValue = parseFloat(input.val()); 333 if (oldValue >= max) { 334 var newVal = oldValue; 335 } else { 336 var newVal = oldValue + 1; 337 } 338 spinner.find("input").val(newVal); 339 spinner.find("input").trigger("change"); 340 }); 341 btnDown.on('click', function() { 342 var oldValue = parseFloat(input.val()); 343 if (oldValue <= min) { 344 var newVal = oldValue; 345 } else { 346 var newVal = oldValue - 1; 347 } 348 spinner.find("input").val(newVal); 349 spinner.find("input").trigger("change"); 350 }); 351 }); 352 // Data Aos 353 // AOS.init({ 354 // once: true, 355 // disable: function() { 356 // var maxWidth = 991; 357 // return window.innerWidth < maxWidth; 358 // } 359 // }); 360 361 /*==================== 362 SUBSCRIBE FORM JS 363 ======================*/ 364 $(".newsletter-form").validator().on("submit", function (event) { 365 if (event.isDefaultPrevented()) { 366 // handle the invalid form... 367 formErrorSub(); 368 submitMSGSub(false, "Please enter your email correctly."); 369 } else { 370 // everything looks good! 371 event.preventDefault(); 372 } 373 }); 374 function callbackFunction (resp) { 375 if (resp.result === "success") { 376 formSuccessSub(); 377 } 378 else { 379 formErrorSub(); 380 } 381 } 382 function formSuccessSub(){ 383 $(".newsletter-form")[0].reset(); 384 submitMSGSub(true, "Thank you for subscribing!"); 385 setTimeout(function() { 386 $("#validator-newsletter").addClass('hide'); 387 }, 4000) 388 } 389 function formErrorSub(){ 390 $(".newsletter-form").addClass("animated shake"); 391 setTimeout(function() { 392 $(".newsletter-form").removeClass("animated shake"); 393 }, 1000) 394 } 395 function submitMSGSub(valid, msg){ 396 if(valid){ 397 var msgClasses = "validation-success"; 398 } else { 399 var msgClasses = "validation-danger"; 400 } 401 $("#validator-newsletter").removeClass().addClass(msgClasses).text(msg); 402 } 403 // AJAX MailChimp 404 $(".newsletter-form").ajaxChimp({ 405 url: "https://envytheme.us20.list-manage.com/subscribe/post?u=60e1ffe2e8a68ce1204cd39a5&id=42d6d188d9", // Your url MailChimp 406 callback: callbackFunction 407 }); 408 409})(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.