123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- /* ---------------------------------------------------
- Template Name: Sona
- Description: Sona Hotel Html Template
- Author: Colorlib
- Author URI: https://colorlib.com
- Version: 1.0
- Created: Colorlib
- --------------------------------------------------------- */
- 'use strict';
- (function ($) {
- /*------------------
- Preloader
- --------------------*/
- $(window).on('load', function () {
- $(".loader").fadeOut();
- $("#preloder").delay(200).fadeOut("slow");
- });
- /*------------------
- Background Set
- --------------------*/
- $('.set-bg').each(function () {
- var bg = $(this).data('setbg');
- $(this).css('background-image', 'url(' + bg + ')');
- });
- //Offcanvas Menu
- $(".canvas-open").on('click', function () {
- $(".offcanvas-menu-wrapper").addClass("show-offcanvas-menu-wrapper");
- $(".offcanvas-menu-overlay").addClass("active");
- });
- $(".canvas-close, .offcanvas-menu-overlay").on('click', function () {
- $(".offcanvas-menu-wrapper").removeClass("show-offcanvas-menu-wrapper");
- $(".offcanvas-menu-overlay").removeClass("active");
- });
- // Search model
- $('.search-switch').on('click', function () {
- $('.search-model').fadeIn(400);
- });
- $('.search-close-switch').on('click', function () {
- $('.search-model').fadeOut(400, function () {
- $('#search-input').val('');
- });
- });
- /*------------------
- Navigation
- --------------------*/
- $(".mobile-menu").slicknav({
- prependTo: '#mobile-menu-wrap',
- allowParentLinks: true
- });
- /*------------------
- Hero Slider
- --------------------*/
- $(".hero-slider").owlCarousel({
- loop: true,
- margin: 0,
- items: 1,
- dots: true,
- animateOut: 'fadeOut',
- animateIn: 'fadeIn',
- smartSpeed: 1200,
- autoHeight: false,
- autoplay: true,
- mouseDrag: false
- });
- /*------------------------
- Testimonial Slider
- ----------------------- */
- $(".testimonial-slider").owlCarousel({
- items: 1,
- dots: false,
- autoplay: true,
- loop: true,
- smartSpeed: 1200,
- nav: true,
- navText: ["<i class='arrow_left'></i>", "<i class='arrow_right'></i>"]
- });
- /*------------------
- Magnific Popup
- --------------------*/
- $('.video-popup').magnificPopup({
- type: 'iframe'
- });
- /*------------------
- Date Picker
- --------------------*/
- $(".date-input").datepicker({
- minDate: 0,
- dateFormat: 'dd MM, yy'
- });
- /*------------------
- Nice Select
- --------------------*/
- $("select").niceSelect();
- })(jQuery);
|