1$(function() { 2 'use strict'; 3 // Preloader 4 $(window).on('load', function(event) { 5 $('#preLoader') 6 .delay(100) 7 .fadeOut(100); 8 }); 9 //Sticky Menu 10 $(window).on('scroll', function(event) { 11 var scroll = $(window).scrollTop(); 12 if (scroll < 100) { 13 $('.header-menu-area').removeClass('sticky'); 14 $('.header-two').removeClass('sticky'); 15 } else { 16 $('.header-menu-area').addClass('sticky'); 17 $('.header-two').addClass('sticky'); 18 } 19 }); 20 // Search Icon 21 $('.search-icon').on('click', function(e) { 22 $('.search-wrap').toggleClass('search-active'); 23 e.preventDefault(); 24 }); 25 // Mobile Menu 26 $('header .main-menu ').meanmenu({ 27 meanMenuContainer: '.mobilemenu', 28 meanScreenWidth: '991', 29 meanRevealPosition: 'none', 30 meanMenuOpen: '<i class="far fa-bars"/>', 31 meanMenuClose: '<i class="far fa-times"/>', 32 meanMenuCloseSize: '25px' 33 }); 34 35 36 //Date time picker 37 $('#arrive-date, #depart-date').datepicker({ 38 format: 'd-m-yyyy', 39 autoclose: true 40 }); 41 // Counter UP init 42 $('.counter-number').counterUp({ 43 delay: 100, 44 time: 3000 45 }); 46 // latest room slider 47 var roomArrow = $('.room-arrows'); 48 var $status = $('.pagingInfo'); 49 var roomSlider = $('#roomSliderActive'); 50 roomSlider.on('init reInit afterChange', function( 51 event, 52 slick, 53 currentSlide, 54 nextSlide 55 ) { 56 if (!slick.$dots) { 57 return; 58 } 59 var i = (currentSlide ? currentSlide : 0) + 1; 60 var statusText = i > 10 ? i : '0' + i; 61 $status.html( 62 '<span class="big-num">' + 63 statusText + 64 '<span class="small">' + 65 slick.$dots[0].children.length + 66 '</span>' + 67 '</span> ' 68 ); 69 }); 70 roomSlider.slick({ 71 dots: true, 72 infinite: true, 73 autoplay: true, 74 autoplaySpeed: 3000, 75 arrows: true, 76 speed: 1500, 77 slidesToShow: 4, 78 slidesToScroll: 1, 79 appendArrows: roomArrow, 80 prevArrow: 81 '<span class="prev"><i class="fal fa-angle-left"></i></span>', 82 nextArrow: 83 '<span class="next"><i class="fal fa-angle-right"></i></span>', 84 responsive: [ 85 { 86 breakpoint: 1199, 87 settings: { 88 slidesToShow: 2 89 } 90 }, 91 { 92 breakpoint: 767, 93 settings: { 94 slidesToShow: 1 95 } 96 } 97 ] 98 }); 99 // feature slider active 100 $('#featureSlideActive').slick({ 101 dots: false, 102 infinite: true, 103 autoplay: true, 104 autoplaySpeed: 3000, 105 arrows: true, 106 speed: 1500, 107 slidesToShow: 1, 108 slidesToScroll: 1, 109 prevArrow: 110 '<span class="prev"><i class="fal fa-angle-double-left"></i></span>', 111 nextArrow: 112 '<span class="next"><i class="fal fa-angle-double-right"></i></span>' 113 }); 114 // Feedback slider ome 115 $('#feedbackSlideActive').slick({ 116 dots: true, 117 infinite: true, 118 autoplay: true, 119 autoplaySpeed: 3000, 120 arrows: true, 121 speed: 1500, 122 slidesToShow: 2, 123 slidesToScroll: 2, 124 prevArrow: 125 '<span class="prev"><i class="fal fa-angle-double-left"></i></span>', 126 nextArrow: 127 '<span class="next"><i class="fal fa-angle-double-right"></i></span>', 128 responsive: [ 129 { 130 breakpoint: 1599, 131 settings: { 132 arrows: false 133 } 134 }, 135 { 136 breakpoint: 991, 137 settings: { 138 slidesToShow: 1, 139 arrows: false 140 } 141 }, 142 { 143 breakpoint: 767, 144 settings: { 145 slidesToShow: 1, 146 arrows: false 147 } 148 } 149 ] 150 }); 151 // Feedback slider two 152 $('#feedSliderTWo').slick({ 153 dots: true, 154 infinite: true, 155 autoplay: true, 156 autoplaySpeed: 3000, 157 arrows: true, 158 speed: 1500, 159 slidesToShow: 1, 160 slidesToScroll: 1, 161 prevArrow: 162 '<span class="prev"><i class="fal fa-angle-double-left"></i></span>', 163 nextArrow: 164 '<span class="next"><i class="fal fa-angle-double-right"></i></span>', 165 responsive: [ 166 { 167 breakpoint: 1200, 168 settings: { 169 arrows: false 170 } 171 } 172 ] 173 }); 174 // Brand Slider Active 175 $('#brandsSlideActive').slick({ 176 dots: false, 177 infinite: true, 178 autoplay: true, 179 autoplaySpeed: 800, 180 arrows: false, 181 speed: 1000, 182 slidesToShow: 5, 183 slidesToScroll: 2, 184 responsive: [ 185 { 186 breakpoint: 1601, 187 settings: { 188 slidesToShow: 5 189 190 } 191 }, 192 { 193 breakpoint: 1401, 194 settings: { 195 slidesToShow: 5 196 } 197 }, 198 199 { 200 breakpoint: 1201, 201 settings: { 202 slidesToShow: 5 203 } 204 }, 205 206 { 207 breakpoint:1190, 208 settings: { 209 slidesToShow: 3 210 } 211 }, 212 213 214 { 215 breakpoint: 768, 216 settings: { 217 slidesToShow: 2 218 } 219 }, 220 { 221 breakpoint: 576, 222 settings: { 223 slidesToShow: 2, 224 225 } 226 }, 227 { 228 breakpoint: 376, 229 settings: { 230 slidesToShow: 2, 231 232 } 233 } 234 ] 235 }); 236 237 238 $('#brandsSlideActive1').slick({ 239 dots: false, 240 infinite: true, 241 autoplay: true, 242 autoplaySpeed: 800,
243 arrows: false, 244 speed: 1000, 245 slidesToShow: 5, 246 slidesToScroll: 2, 247 rtl: true, 248 responsive: [ 249 { 250 breakpoint: 1601, 251 settings: { 252 slidesToShow: 5 253 254 } 255 }, 256 { 257 breakpoint: 1401, 258 settings: { 259 slidesToShow: 5 260 } 261 }, 262 263 { 264 breakpoint: 1201, 265 settings: { 266 slidesToShow: 5 267 } 268 }, 269 270 { 271 breakpoint:1190, 272 settings: { 273 slidesToShow: 3 274 } 275 }, 276 277 278 { 279 breakpoint: 768, 280 settings: { 281 slidesToShow: 2 282 } 283 }, 284 { 285 breakpoint: 576, 286 settings: { 287 slidesToShow: 2, 288 289 } 290 }, 291 { 292 breakpoint: 376, 293 settings: { 294 slidesToShow: 2, 295 296 } 297 } 298 ] 299 }); 300 301 302 $('#productSlideActive').slick({ 303 dots: false, 304 infinite: true, 305 autoplay: true, 306 autoplaySpeed: 800, 307 arrows: false, 308 speed: 1000, 309 slidesToShow: 4, 310 slidesToScroll: 2, 311 responsive: [ 312 { 313 breakpoint: 1601, 314 settings: { 315 slidesToShow: 4 316 } 317 }, 318 { 319 breakpoint: 1401, 320 settings: { 321 slidesToShow: 4 322 } 323 }, 324 325 { 326 breakpoint: 1201, 327 settings: { 328 slidesToShow: 4 329 } 330 }, 331 332 { 333 breakpoint:1190, 334 settings: { 335 slidesToShow: 3 336 } 337 }, 338 339 { 340 breakpoint: 768, 341 settings: { 342 slidesToShow: 2 343 } 344 }, 345 { 346 breakpoint: 576, 347 settings: { 348 slidesToShow: 1, 349 slidesToScroll: 1 350 } 351 } 352 ] 353 }); 354 355 356 $('#productSlideActive1').slick({ 357 dots: false, 358 infinite: true, 359 autoplay: true, 360 autoplaySpeed: 1000, 361 arrows: false, 362 speed: 1000, 363 slidesToShow: 4, 364 slidesToScroll: 2, 365 responsive: [ 366 { 367 breakpoint: 1601, 368 settings: { 369 slidesToShow: 4 370 } 371 }, 372 { 373 breakpoint: 1401, 374 settings: { 375 slidesToShow: 4 376 } 377 }, 378 379 { 380 breakpoint: 1201, 381 settings: { 382 slidesToShow: 4 383 } 384 }, 385 386 { 387 breakpoint:1190, 388 settings: { 389 slidesToShow: 3 390 } 391 }, 392 393 { 394 breakpoint: 768, 395 settings: { 396 slidesToShow: 2 397 } 398 }, 399 { 400 breakpoint: 576, 401 settings: { 402 slidesToShow: 1 403 } 404 } 405 ] 406 }); 407 408 409 410 // Bootstrap Accordion Icon 411 $('.feature-accordion .card-header button').on('click', function(e) { 412 $('.feature-accordion .card-header button').removeClass( 413 'active-accordion' 414 ); 415 $(this).addClass('active-accordion'); 416 }); 417 // Wow js and nice select init 418 $('select').niceSelect(); 419 new WOW().init(); 420 $('.video-popup').magnificPopup({ 421 type: 'iframe' 422 }); 423 // Isotop Active 424 425// $('.gallery-filter li').on('click', function() { 426// $('.gallery-filter li').removeClass('active'); 427// $(this).addClass('active'); 428 429// var selector = $(this).attr('data-filter'); 430// $('.gallery-filter-items').isotope({ 431// filter: selector 432// }); 433// }); 434// $(window).load(function() { 435// $('.gallery-filter-items').isotope(); 436// }); 437 // Back to Top 438 $('.back-to-top').on('click', function(e) { 439 e.preventDefault(); 440 $('html, body').animate( 441 { 442 scrollTop: 0 443 }, 444 1500 445 ); 446 }); 447 // Slider One 448 function sliderOne() { 449 var slider = $('#heroSlideActive'); 450 slider.on('init', function(e, slick) { 451 var $firstAnimatingElements = $( 452 '.single-hero-slide:first-child' 453 ).find('[data-animation]'); 454 doAnimations($firstAnimatingElements); 455 }); 456 slider.on('beforeChange', function(e, slick, currentSlide, nextSlide) { 457 var $animatingElements = $( 458 '.single-hero-slide[data-slick-index="' + nextSlide + '"]' 459 ).find('[data-animation]'); 460 doAnimations($animatingElements); 461 }); 462 slider.slick({ 463 autoplay: true, 464 autoplaySpeed: 5000, 465 dots: false, 466 fade: true, 467 468 pauseOnHover: false, 469 arrows: true, 470 infinite: true, 471 speed: 1500, 472 prevArrow: 473 '<span class="prev"><i class="fal fa-angle-double-left"></i></span>', 474 nextArrow: 475 '<span class="next"><i class="fal fa-angle-double-right"></i></span>', 476 responsive: [ 477 { 478 breakpoint: 768, 479 settings: { 480 arrows: true, 481 } 482 } 483 ] 484 }); 485 486 function doAnimations(elements) { 487 var animationEndEvents = 488 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend'; 489 elements.each(function() { 490 var $this = $(this); 491 var $animationDelay = $this.data('delay'); 492 var $animationType = 'animated ' + $this.data('animation'); 493 $this.css({ 494 'animation-delay': $animationDelay, 495 '-webkit-animation-delay': $animationDelay 496 }); 497 $this 498 .addClass($animationType) 499 .one(animationEndEvents, function() { 500 $this.removeClass($animationType); 501 });
502 }); 503 } 504 } 505 sliderOne(); 506 // Slider Two 507 function sliderTwo() { 508 var slider = $('#secondSlider'); 509 slider.on('init', function(e, slick) { 510 var $firstAnimatingElements = $( 511 '.single-hero-slide:first-child' 512 ).find('[data-animation]'); 513 doAnimations($firstAnimatingElements); 514 }); 515 slider.on('beforeChange', function(e, slick, currentSlide, nextSlide) { 516 var $animatingElements = $( 517 '.single-hero-slide[data-slick-index="' + nextSlide + '"]' 518 ).find('[data-animation]'); 519 doAnimations($animatingElements); 520 }); 521 slider.slick({ 522 autoplay: true, 523 autoplaySpeed: 10000, 524 dots: true, 525 fade: true, 526 arrows: true, 527 infinite: true, 528 speed: 1500, 529 prevArrow: 530 '<span class="prev"><i class="fal fa-angle-double-left"></i></span>', 531 nextArrow: 532 '<span class="next"><i class="fal fa-angle-double-right"></i></span>', 533 responsive: [ 534 { 535 breakpoint: 768, 536 settings: { 537 arrows: false 538 } 539 } 540 ] 541 }); 542 543 function doAnimations(elements) { 544 var animationEndEvents = 545 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend'; 546 elements.each(function() { 547 var $this = $(this); 548 var $animationDelay = $this.data('delay'); 549 var $animationType = 'animated ' + $this.data('animation'); 550 $this.css({ 551 'animation-delay': $animationDelay, 552 '-webkit-animation-delay': $animationDelay 553 }); 554 $this 555 .addClass($animationType) 556 .one(animationEndEvents, function() { 557 $this.removeClass($animationType); 558 }); 559 }); 560 } 561 } 562 sliderTwo(); 563 // Map for Contact page 564 function contactMap() { 565 var mapOptions = { 566 zoom: 11, 567 scrollwheel: false, 568 // The latitude and longitude to center the map (always required) 569 center: new google.maps.LatLng(40.7128, -74.006), // New York 570 // This is where you would paste any style found on Snazzy Maps. 571 styles: [ 572 { 573 featureType: 'all', 574 elementType: 'geometry.fill', 575 stylers: [ 576 { 577 weight: '2.00' 578 } 579 ] 580 }, 581 { 582 featureType: 'all', 583 elementType: 'geometry.stroke', 584 stylers: [ 585 { 586 color: '#9c9c9c' 587 } 588 ] 589 }, 590 { 591 featureType: 'all', 592 elementType: 'labels.text', 593 stylers: [ 594 { 595 visibility: 'on' 596 } 597 ] 598 }, 599 { 600 featureType: 'landscape', 601 elementType: 'all', 602 stylers: [ 603 { 604 color: '#f2f2f2' 605 } 606 ] 607 }, 608 { 609 featureType: 'landscape', 610 elementType: 'geometry.fill', 611 stylers: [ 612 { 613 color: '#ffffff' 614 } 615 ] 616 }, 617 { 618 featureType: 'landscape.man_made', 619 elementType: 'geometry.fill', 620 stylers: [ 621 { 622 color: '#ffffff' 623 } 624 ] 625 }, 626 { 627 featureType: 'poi', 628 elementType: 'all', 629 stylers: [ 630 { 631 visibility: 'off' 632 } 633 ] 634 }, 635 { 636 featureType: 'road', 637 elementType: 'all', 638 stylers: [ 639 { 640 saturation: -100 641 }, 642 { 643 lightness: 45 644 } 645 ] 646 }, 647 { 648 featureType: 'road', 649 elementType: 'geometry.fill', 650 stylers: [ 651 { 652 color: '#eeeeee' 653 } 654 ] 655 }, 656 { 657 featureType: 'road', 658 elementType: 'labels.text.fill', 659 stylers: [ 660 { 661 color: '#7b7b7b' 662 } 663 ] 664 }, 665 { 666 featureType: 'road', 667 elementType: 'labels.text.stroke', 668 stylers: [ 669 { 670 color: '#ffffff' 671 } 672 ] 673 }, 674 { 675 featureType: 'road.highway', 676 elementType: 'all', 677 stylers: [ 678 { 679 visibility: 'simplified' 680 } 681 ] 682 }, 683 { 684 featureType: 'road.arterial', 685 elementType: 'labels.icon', 686 stylers: [ 687 { 688 visibility: 'off' 689 } 690 ] 691 }, 692 { 693 featureType: 'transit', 694 elementType: 'all', 695 stylers: [ 696 { 697 visibility: 'off' 698 } 699 ] 700 }, 701 { 702 featureType: 'water', 703 elementType: 'all', 704 stylers: [ 705 { 706 color: '#46bcec' 707 }, 708 { 709 visibility: 'on' 710 } 711 ] 712 }, 713 { 714 featureType: 'water', 715 elementType: 'geometry.fill', 716 stylers: [ 717 { 718 color: '#c8d7d4' 719 } 720 ] 721 }, 722 { 723 featureType: 'water', 724 elementType: 'labels.text.fill', 725 stylers: [ 726 { 727 color: '#070707' 728 } 729 ] 730 }, 731 { 732 featureType: 'water', 733 elementType: 'labels.text.stroke', 734 stylers: [ 735 { 736 color: '#ffffff' 737 } 738 ] 739 } 740 ] 741 }; 742 743 var mapElement = document.getElementById('contactMap'); 744 745 // Create the Google Map using our element and options defined above 746 var map = new google.maps.Map(mapElement, mapOptions); 747 748 // Let's also add a marker while we're at it 749 var iconBase = '../assets/img/mappin.png'; 750 var marker = new google.maps.Marker({ 751 position: new google.maps.LatLng(40.7128, -74.006), 752 map: map, 753 icon: iconBase, 754 title: 'Cryptox' 755 }); 756 } 757 if ($('#contactMap').length != 0) { 758 google.maps.event.addDomListener(window, 'load', contactMap); 759 } 760 // Map for Home Page 761 function contactMapOne() { 762 var mapOptions = { 763 zoom: 11, 764 scrollwheel: false, 765 // The latitude and longitude to center the map (always required) 766 center: new google.maps.LatLng(40.7128, -74.006), // New York 767 // This is where you would paste any style found on Snazzy Maps. 768 styles: [] 769 }; 770 771 var mapElement = document.getElementById('contactMapOne'); 772 773 // Create the Google Map using our element and options defined above 774 var map = new google.maps.Map(mapElement, mapOptions); 775 776 // Let's also add a marker while we're at it 777 var iconBase = '../assets/img/mappin.png'; 778 var marker = new google.maps.Marker({ 779 position: new google.maps.LatLng(40.7128, -74.006), 780 map: map, 781 icon: iconBase, 782 title: 'Cryptox' 783 }); 784 } 785 if ($('#contactMapOne').length != 0) { 786 google.maps.event.addDomListener(window, 'load', contactMapOne); 787 } 788});
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.