| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- (function ($) {
- "use strict";
- $(".scroll-top").hide();
- $(window).on("scroll", function () {
- if ($(this).scrollTop() > 300) {
- $(".scroll-top").fadeIn();
- } else {
- $(".scroll-top").fadeOut();
- }
- });
- $(".scroll-top").on("click", function () {
- $("html, body").animate(
- {
- scrollTop: 0,
- },
- 700
- );
- });
- $(document).ready(function () {
- $(".select2").select2({
- theme: "bootstrap",
- });
- });
- new WOW().init();
- $(".video-button").magnificPopup({
- type: "iframe",
- gallery: {
- enabled: true,
- },
- });
- $(".magnific").magnificPopup({
- type: "image",
- gallery: {
- enabled: true,
- },
- });
- $(".slide-carousel").owlCarousel({
- loop: true,
- autoplay: true,
- autoplayHoverPause: true,
- margin: 0,
- mouseDrag: false,
- animateIn: "fadeIn",
- animateOut: "fadeOut",
- nav: true,
- navText: [
- "<i class='fas fa-long-arrow-alt-left'></i>",
- "<i class='fas fa-long-arrow-alt-right'></i>",
- ],
- responsive: {
- 0: {
- items: 1,
- },
- 600: {
- items: 1,
- },
- 1000: {
- items: 1,
- },
- },
- });
- $(".testimonial-carousel").owlCarousel({
- loop: true,
- autoplay: true,
- autoplayHoverPause: true,
- autoplaySpeed: 1500,
- smartSpeed: 1500,
- margin: 30,
- nav: false,
- animateIn: "fadeIn",
- animateOut: "fadeOut",
- navText: [
- "<i class='fa fa-caret-left'></i>",
- "<i class='fa fa-caret-right'></i>",
- ],
- responsive: {
- 0: {
- items: 1,
- dots: false,
- nav: true,
- },
- 768: {
- items: 1,
- dots: true,
- },
- 992: {
- items: 2,
- dots: true,
- },
- },
- });
- $(".room-detail-carousel").owlCarousel({
- loop: true,
- autoplay: false,
- autoplayHoverPause: true,
- margin: 0,
- mouseDrag: false,
- animateIn: "fadeIn",
- animateOut: "fadeOut",
- nav: true,
- navText: [
- "<i class='fa fa-angle-left'></i>",
- "<i class='fa fa-angle-right'></i>",
- ],
- responsive: {
- 0: {
- items: 1,
- },
- 600: {
- items: 1,
- },
- 1000: {
- items: 1,
- },
- },
- });
- jQuery(".mean-menu").meanmenu({
- meanScreenWidth: "991",
- });
- $(".datepicker").datepicker({
- format: "yyyy-mm-dd",
- todayHighlight: true
- });
- $('.counter').counterUp();
- })(jQuery);
|