File manager - Edit - /home/asiatechinc/public_html/asiatech-websites/dreamhouseclubandresort.com/js/main.js
Back
(function ($) { "use strict"; jQuery(document).ready(function () { $("#status").fadeOut(); $("#preloader").delay(200).fadeOut("slow"); new WOW().init(); }); $('#navbar li').on('mouseenter', function () { $(this).find('ul').first().stop(true, true).delay(350).slideDown(500, 'easeInOutQuad'); }); $('#navbar li').on('mouseleave', function () { $(this).find('ul').first().stop(true, true).delay(100).slideUp(150, 'easeInOutQuad'); }); $(window).scroll(() => { if ($(window).scrollTop() > 10) { $('.navigation').addClass('navbar-sticky'); } else { $('.navigation').removeClass('navbar-sticky'); } }); $(document).on('click', '#back-to-top, .back-to-top', () => { $('html, body').animate({ scrollTop: 0 }, '500'); return false; }); $(window).on('scroll', () => { if ($(window).scrollTop() > 500) { $('#back-to-top').fadeIn(200); } else { $('#back-to-top').fadeOut(200); } }); jQuery(document).ready(() => { jQuery('.js-video-button').modalVideo({ channel: 'vimeo' }); }); $('.review-slider').slick({ infinite: true, slidesToShow: 2, slidesToScroll: 1, arrows: false, dots: true, autoplay: true, responsive: [{ breakpoint: 1000, settings: { slidesToShow: 1 } }] }); $('.review-slider1').slick({ infinite: true, slidesToShow: 2, slidesToScroll: 1, arrows: false, dots: false, autoplay: true, responsive: [{ breakpoint: 1000, settings: { slidesToShow: 1 } }] }); $('.room-slider').slick({ infinite: true, slidesToShow: 2, slidesToScroll: 1, arrows: false, dots: false, autoplay: true, responsive: [{ breakpoint: 600, settings: { slidesToShow: 1 } }] }); $('.award-slider').slick({ infinite: true, slidesToShow: 4, slidesToScroll: 1, arrows: false, dots: false, autoplay: true, responsive: [{ breakpoint: 1000, settings: { slidesToShow: 2 } }, { breakpoint: 500, settings: { slidesToShow: 1 } }] }); $('.team-slider').slick({ infinite: true, slidesToShow: 3, slidesToScroll: 1, arrows: false, dots: false, autoplay: true, responsive: [{ breakpoint: 1100, settings: { slidesToShow: 2 } }, { breakpoint: 700, settings: { slidesToShow: 1 } }] }); $('.team-slider1').slick({ infinite: true, slidesToShow: 4, slidesToScroll: 1, arrows: false, dots: false, autoplay: true, responsive: [{ breakpoint: 1000, settings: { slidesToShow: 2 } }, { breakpoint: 600, settings: { slidesToShow: 1 } }] }); $('.gallery-slider').slick({ infinite: true, slidesToShow: 6, slidesToScroll: 1, arrows: false, dots: false, autoplay: true, responsive: [{ breakpoint: 1000, settings: { slidesToShow: 4 } }, { breakpoint: 500, settings: { slidesToShow: 2 } }] }); $('.slider-store').slick({ slidesToShow: 1, slidesToScroll: 1, arrows: false, fade: true, asNavFor: '.slider-thumbs', }); $('.slider-thumbs').slick({ slidesToShow: 3, slidesToScroll: 1, asNavFor: '.slider-store', dots: false, centerMode: true, arrows: true, focusOnSelect: true, }); $('.slider-for').slick({ slidesToShow: 1, slidesToScroll: 1, arrows: true, fade: true, autoplay: true, asNavFor: '.slider-nav', }); $('.slider-nav').slick({ slidesToShow: 5, slidesToScroll: 1, asNavFor: '.slider-for', dots: false, centerMode: true, autoplay: true, focusOnSelect: true, }); $('#datepicker, #check-datepicker').datepicker(); $('.selectpicker').selectpicker(); $(document).ready(function () { $('select').niceSelect(); }); if ($('.accrodion-grp').length) { const accrodionGrp = $('.accrodion-grp'); accrodionGrp.each(function () { const accrodionName = $(this).data('grp-name'); const Self = $(this); const accordion = Self.find('.accrodion'); Self.addClass(accrodionName); Self.find('.accrodion .accrodion-content').hide(); Self.find('.accrodion.active').find('.accrodion-content').show(); accordion.each(function () { $(this).find('.accrodion-title').on('click', function () { if ($(this).parent().hasClass('active') === false) { $(`.accrodion-grp.${accrodionName}`).find('.accrodion').removeClass('active'); $(`.accrodion-grp.${accrodionName}`).find('.accrodion').find('.accrodion-content').slideUp(); $(this).parent().addClass('active'); $(this).parent().find('.accrodion-content').slideDown(); } }); }); }); } $("#contactform").validate({ submitHandler: function () { $.ajax({ url: 'mail/contact.php', type: 'POST', data: { fname: $('input[name="first_name"]').val(), lname: $('input[name="last_name"]').val(), email: $('input[name="email"]').val(), phone: $('input[name="phone"]').val(), comments: $('textarea[name="comments"]').val(), }, success: function (result) { $('#contactform-error-msg').html(result); $("#contactform")[0].reset(); } }); } }); var $grid = $(".grid").isotope({ itemSelector: ".element-item", layoutMode: "fitRows", }); var filterFns = { numberGreaterThan50: function () { var number = $(this).find(".number").text(); return parseInt(number, 10) > 50; }, ium: function () { var name = $(this).find(".name").text(); return name.match(/ium$/); }, }; $(".filters-button-group").on("click", "button", function () { var filterValue = $(this).attr("data-filter"); filterValue = filterFns[filterValue] || filterValue; $grid.isotope({ filter: filterValue }); }); $(".button-group").each(function (i, buttonGroup) { var $buttonGroup = $(buttonGroup); $buttonGroup.on("click", "button", function () { $buttonGroup.find(".is-checked").removeClass("is-checked"); $(this).addClass("is-checked"); }); }); $('.range-slider-ui').each(function () { const minRangeValue = $(this).attr('data-min'); const maxRangeValue = $(this).attr('data-max'); const minName = $(this).attr('data-min-name'); const maxName = $(this).attr('data-max-name'); const unit = $(this).attr('data-unit'); $(this).slider({ range: true, min: minRangeValue, max: maxRangeValue, values: [minRangeValue, maxRangeValue], slide(event, ui) { event = event; const currentMin = parseInt(ui.values[0], 10); const currentMax = parseInt(ui.values[1], 10); $(this).children('.min-value').text(`${currentMin} ${unit}`); $(this).children('.max-value').text(`${currentMax} ${unit}`); $(this).children('.current-min').val(currentMin); $(this).children('.current-max').val(currentMax); }, }); }); $('#counter-block').ready(() => { $('.room').animationCounter({ start: 0, end: 264, step: 2, delay: 10, }); $('.staff').animationCounter({ start: 12, end: 575, step: 2, delay: 15, }); $('.restaurant').animationCounter({ start: 25, end: 487, step: 2, delay: 12, }); $('.award').animationCounter({ start: 25, end: 320, step: 1, delay: 11, }); }); $(document).ready(() => { loopcounter('coming-counter'); }); window.FPConfig = { delay: 0, ignoreKeywords: [], maxRPS: 3, hoverDelay: 50, }; niceSelect_destroy(); }(jQuery)); jQuery(window).on('resize load', () => { resize_eb_slider(); }).resize(); function resize_eb_slider() { let bodyheight = jQuery(this).height(); if (jQuery(window).width() > 1400) { bodyheight *= 0.90; jQuery('.slider').css('height', `${bodyheight}px`); } } function niceSelect_destroy() { if (jQuery(window).width() < 768) { $('.niceSelect').niceSelect('destroy'); } else { $('.niceSelect').niceSelect('udpate'); } } jQuery(document).on('click', '.dark-mode a', function () { jQuery('body').addClass('night-mode'); }); jQuery(document).on('click', '.light-mode a', function () { jQuery('body').removeClass('night-mode'); });
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings