Uname : Linux svr.eworld.co.in 5.14.0-427.18.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 28 06:27:02 EDT 2024 x86_64
Soft : Apache
Ip : 92.204.41.43
Port : 443
~
/
home
/
yellowskyqatar
/
public_html
/
assets
/
js
[ HOME ]
Exec
Submit
File Name : main.js
/* main js */ (function ($) { "use strict"; /* Aos animation on scroll */ AOS.init({ once: true }); /* Scroll to fixed navigation bar */ $(window).scroll(function () { if ($(this).scrollTop() > 50) { $('.lh-header').addClass('header-fixed'); $('.lh-logo').css('width', '80px'); // Set logo width when scrolling down $('.navbar').css('padding-top', '20px'); } else { $('.lh-header').removeClass('header-fixed'); $('.lh-logo').css('width', '120px'); // Set logo width when at the top $('.navbar').css('padding-top', '1px'); } }); /* Loader */ $(window).on("load", function () { $(".lh-loader").fadeOut("slow"); }); /* Mobaile menu slider */ $('.navbar-toggler').on("click", function () { $('.lh-sidebar-overlay').fadeIn(); $('.lh-mobile-menu').addClass("lh-menu-open"); }); $('.lh-sidebar-overlay, .lh-close').on("click", function () { $('.lh-sidebar-overlay').fadeOut(); $('.lh-mobile-menu').removeClass("lh-menu-open"); }); function ResponsiveMobilemsMenu() { var $msNav = $(".lh-menu-content"), $msNavSubMenu = $msNav.find(".sub-menu"); $msNavSubMenu.parent().prepend('<span class="menu-toggle"></span>'); $msNav.on("click", "li a, .menu-toggle", function (e) { var $this = $(this); if ($this.attr("href") === "#" || $this.hasClass("menu-toggle")) { e.preventDefault(); if ($this.siblings("ul:visible").length) { $this.parent("li").removeClass("active"); $this.siblings("ul").slideUp(); $this.parent("li").find("li").removeClass("active"); $this.parent("li").find("ul:visible").slideUp(); } else { $this.parent("li").addClass("active"); $this.closest("li").siblings("li").removeClass("active").find("li").removeClass("active"); $this.closest("li").siblings("li").find("ul:visible").slideUp(); $this.siblings("ul").slideDown(); } } }); } ResponsiveMobilemsMenu(); /* Testimonials */ $('.lh-slider').slick({ rows: 1, dots: false, arrows: true, autoplay: true, infinite: true, speed: 1500, slidesToShow: 1, slidesToScroll: 1, responsive: [ { breakpoint: 992, settings: { dots: false, arrows: false, } } ] }); $(window).on('load resize', function () { setTimeout(function () { $('.lh-slider .slick-prev').prepend('<div class="prev-slick-arrow arrow-icon"><span><</span></div><div class="prev-slick-img slick-thumb-nav"><img src="/prev.jpg" class="img-responsive"></div>'); $('.lh-slider .slick-next').append('<div class="next-slick-arrow arrow-icon"><span>></span></div><div class="next-slick-img slick-thumb-nav"><img src="/next.jpg" class="img-responsive"></div>'); get_prev_slick_img(); get_next_slick_img(); }, 100); }); $('.lh-slider').on('click', '.slick-prev', function () { get_prev_slick_img(); }); $('.lh-slider').on('click', '.slick-next', function () { get_next_slick_img(); }); $('.lh-slider').on('swipe', function (event, slick, direction) { if (direction == 'left') { get_prev_slick_img(); } else { get_next_slick_img(); } }); $('.slick-dots').on('click', 'li button', function () { var li_no = $(this).parent('li').index(); if ($(this).parent('li').index() > li_no) { get_prev_slick_img() } else { get_next_slick_img() } }); function get_prev_slick_img() { var prev_slick_img = $('.lh-slider .slick-current').prev().find('img').attr('src'); $('.lh-slider .prev-slick-img img').attr('src', prev_slick_img); $('.lh-slider .prev-slick-img').css('background-image', 'url(' + prev_slick_img + ')'); var prev_next_slick_img = $('.lh-slider .slick-current').next().find('img').attr('src'); $('.lh-slider .next-slick-img img').attr('src', prev_next_slick_img); $('.lh-slider .next-slick-img').css('background-image', 'url(' + prev_next_slick_img + ')'); } function get_next_slick_img() { var next_slick_img = $('.lh-slider .slick-current').next('').find('img').attr('src'); $('.lh-slider .next-slick-img img').attr('src', next_slick_img); $('.lh-slider .next-slick-img').css('background-image', 'url(' + next_slick_img + ')'); var next_prev_slick_img = $('.lh-slider .slick-current').prev('').find('img').attr('src'); $('.lh-slider .prev-slick-img img').attr('src', next_prev_slick_img); $('.lh-slider .prev-slick-img').css('background-image', 'url(' + next_prev_slick_img + ')'); } /* Gallery */ $(document).ready(function () { $('.gallery-img').magnificPopup({ type: 'image', mainClass: 'mfp-with-zoom', gallery: { enabled: true }, zoom: { enabled: true, duration: 300, easing: 'ease-close-tool', opener: function (openerElement) { return openerElement.is('img') ? openerElement : openerElement.find('img'); } } }); }); /* Custom select */ $('select').each(function () { var $this = $(this), selectOptions = $(this).children('option').length; $this.addClass('hide-select'); $this.wrap('<div class="select"></div>'); $this.after('<div class="custom-select active"></div>'); var $customSelect = $this.next('div.custom-select.active'); $customSelect.text($this.children('option').eq(0).text()); var $optionlist = $('<ul />', { 'class': 'select-options' }).insertAfter($customSelect); for (var i = 0; i < selectOptions; i++) { $('<li />', { text: $this.children('option').eq(i).text(), rel: $this.children('option').eq(i).val() }).appendTo($optionlist); } var $optionlistItems = $optionlist.children('li'); $customSelect.click(function (e) { e.stopPropagation(); $('div.custom-select.active').not(this).each(function () { $(this).removeClass('active').next('ul.select-options').hide(); }); $(this).toggleClass('active').next('ul.select-options').slideToggle(); }); $optionlistItems.click(function (e) { e.stopPropagation(); $customSelect.text($(this).text()).removeClass('active'); $this.val($(this).attr('rel')); $optionlist.hide(); }); $(document).click(function () { $customSelect.removeClass('active'); $optionlist.hide(); }); }); /* Tap to top */ $(window).scroll(function () { if ($(this).scrollTop() > 50) { $(".back-to-top").fadeIn(); } else { $(".back-to-top").fadeOut(); } }); /* Side tool */ $(".btn-lh-tool").on("click", function (e) { e.preventDefault(); if ($(this).hasClass("close-tool")) { $(".lh-tool").addClass("lh-tool-active"); $(".tool-overlay").fadeIn(); if ($(".btn-lh-tool").not("close-tool")) { $(".lh-tool").removeClass("lh-tool-active"); $(".btn-lh-tool").addClass("close-tool"); } if ($(".btn-lh-tool").not("close-tool")) { $(".lh-tool").addClass("lh-tool-active"); $(".btn-lh-tool").addClass("close-tool"); $(".tool-overlay").fadeIn(); } } else { $(".lh-tool").removeClass("lh-tool-active"); $(".tool-overlay").fadeOut(); } $(this).toggleClass("close-tool"); return false; }); $(".tool-overlay").on("click", function (e) { $(".btn-lh-tool").addClass("close-tool"); $(".lh-tool").removeClass("lh-tool-active"); $(".tool-overlay").fadeOut(); }); $(".lh-color li").click(function () { $("li").removeClass("active-colors"); $(this).addClass("active-colors"); }); /* Color show */ $(".c1").click(function () { $("#add_class").remove(); }); $(".c2").click(function () { $("#add_class").remove(); $("head").append( '<link rel="stylesheet" href="assets/css/color-1.css" id="add_class">' ); }); $(".c3").click(function () { $("#add_class").remove(); $("head").append( '<link rel="stylesheet" href="assets/css/color-2.css" id="add_class">' ); }); $(".c4").click(function () { $("#add_class").remove(); $("head").append( '<link rel="stylesheet" href="assets/css/color-3.css" id="add_class">' ); }); $(".c5").click(function () { $("#add_class").remove(); $("head").append( '<link rel="stylesheet" href="assets/css/color-4.css" id="add_class">' ); }); $(".c6").click(function () { $("#add_class").remove(); $("head").append( '<link rel="stylesheet" href="assets/css/color-5.css" id="add_class">' ); }); $(".c7").click(function () { $("#add_class").remove(); $("head").append( '<link rel="stylesheet" href="assets/css/color-6.css" id="add_class">' ); }); $(".c8").click(function () { $("#add_class").remove(); $("head").append( '<link rel="stylesheet" href="assets/css/color-7.css" id="add_class">' ); }); $(".c9").click(function () { $("#add_class").remove(); $("head").append( '<link rel="stylesheet" href="assets/css/color-8.css" id="add_class">' ); }); $(".c10").click(function () { $("#add_class").remove(); $("head").append( '<link rel="stylesheet" href="assets/css/color-9.css" id="add_class">' ); }); /* Dark mode */ $(".dark-mode li").click(function () { $("li").removeClass("active-dark-mode"); $(this).addClass("active-dark-mode"); }); $(".dark").click(function () { $("#add_dark_mode").remove(); $("head").append('<link rel="stylesheet" class="dark-link-mode" href="assets/css/dark.css" id="add_dark_mode">'); }); $(".white").click(function () { $("#add_dark_mode").remove(); }); /* Skin mode */ $(".skin-1").click(function () { $("#add_skin").remove(); $("head").append('<link rel="stylesheet" href="assets/css/shape-1.css" id="add_skin">'); $(".skin-mode li").removeClass("active"); $(this).addClass("active"); }); $(".skin-2").click(function () { $("#add_skin").remove(); $("head").append('<link rel="stylesheet" href="assets/css/shape-2.css" id="add_skin">'); $(".skin-mode li").removeClass("active"); $(this).addClass("active"); }); $(".skin-3").click(function () { $("#add_skin").remove(); $(".skin-mode li").removeClass("active"); $(this).addClass("active"); }); /* Dark mode */ $(".border-mode li").click(function () { $("li").removeClass("active-radius"); $(this).addClass("active-radius"); }); $(".radius-mode-none").click(function () { $("#add_radius_mode").remove(); $("head").append('<link rel="stylesheet" href="assets/css/box-radius.css" id="add_radius_mode">'); }); $(".radius-mode").click(function () { $("#add_radius_mode").remove(); }); /* Slider room details */ $('.slider-for').slick({ slidesToShow: 1, slidesToScroll: 1, arrows: false, fade: true, asNavFor: '.slider-nav' }); $('.slider-nav').slick({ slidesToShow: 4, slidesToScroll: 1, arrows: false, asNavFor: '.slider-for', focusOnSelect: true, responsive: [ { breakpoint: 575, settings: { slidesToShow: 3, } }, { breakpoint: 420, settings: { slidesToShow: 2, } } ] }); /* Input date */ $('#date_1').calendar({ type: 'date' }); $('#date_2').calendar({ type: 'date' }); /* Replace all SVG images with inline SVG */ $(document).ready(function () { $('img.svg-img[src$=".svg"]').each(function () { var $img = $(this); var imgURL = $img.attr('src'); var attributes = $img.prop("attributes"); $.get(imgURL, function (data) { // Get the SVG tag, ignore the rest var $svg = $(data).find('svg'); // Remove any invalid XML tags $svg = $svg.removeAttr('xmlns:a'); // Loop through IMG attributes and apply on SVG $.each(attributes, function () { $svg.attr(this.name, this.value); }); // Replace IMG with SVG $img.replaceWith($svg); }, 'xml'); }); }); /* Blog Sider */ $(".blog-slider").slick({ slidesToShow: 4, infinite: true, slidesToScroll: 1, autoplay: false, autoplaySpeed: 3000, dots: false, prevArrow: false, nextArrow: false, responsive: [ { breakpoint: 1400, settings: { slidesToShow: 3, } }, { breakpoint: 992, settings: { slidesToShow: 2, } }, { breakpoint: 768, settings: { slidesToShow: 1, } } ] }); /* For Directly Run */ $(window).on("load", function () { setTimeout(function () { switch (window.location.protocol) { case 'file:': console.log( '%c🚫 Please try to run using local server instead of Directly click or run for better experience. 🔥', 'font-size: 20px; background-color: black; color:white; margin-left: 15px; padding: 15px' ); break; default: } }, 100); }); /* Hoem 2 Hero Slider */ var lhMainSlider = new Swiper('.lh-main-slider.swiper-container', { loop: true, centeredSlides: true, speed: 2000, effect: 'slide', parallax: true, autoplay: { delay: 5000, }, pagination: { el: '.swiper-pagination', clickable: true, }, navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', }, breakpoints: { 1400: { slidesPerView: 1, }, 1920: { slidesPerView: 1, }, } }); /* Slider room */ $('.rooms-slider').slick({ slidesToShow: 4, slidesToScroll: 1, arrows: false, focusOnSelect: true, dots: true, responsive: [ { breakpoint: 1920, settings: { slidesToShow: 3, } }, { breakpoint: 992, settings: { slidesToShow: 2, } }, { breakpoint: 768, settings: { slidesToShow: 1, } } ] }); /* Password show */ $(".toggle-password").click(function () { $(this).toggleClass("ri-eye-line ri-eye-off-line"); var input = $($(this).attr("toggle")); if (input.attr("type") == "password") { input.attr("type", "text"); } else { input.attr("type", "password"); } }); /* Footer year */ var date = new Date().getFullYear(); document.getElementById("copyright_year").innerHTML = date; })(jQuery); // script.js document.addEventListener('DOMContentLoaded', function () { const contactForm = document.getElementById('contact-form'); contactForm.addEventListener('submit', function (event) { event.preventDefault(); // Handle form submission here (e.g., send data to server, display a message, etc.) console.log('Form submitted'); // Optionally close the modal after submission const modal = bootstrap.Modal.getInstance(document.getElementById('contactModal')); modal.hide(); }); }); function toggleDetails(id) { var details = document.getElementById(id); if (details.style.display === "none") { details.style.display = "block"; } else { details.style.display = "none"; } } // product Catalog $(document).ready(function () { // $('.owl-carousel').owlCarousel({ // autoplay: true, // autoplayTimeout: 5000, // autoplayHoverPause: true, // loop: true, // margin: 50, // responsiveClass: true, // nav: true, // loop: true, // stagePadding: 100, // responsive: { // 0: { // items: 1 // }, // 568: { // items: 1 // }, // 600: { // items: 3 // }, // 1000: { // items: 3 // } // } // }) $('.owl-carousel').slick({ speed: 5000, autoplay: true, autoplaySpeed: 0, centerMode: true, cssEase: 'linear', // pauseOnHover:true, slidesToShow: 1, slidesToScroll: 1, variableWidth: true, infinite: true, initialSlide: 1, arrows: false, buttons: false, // responsive: [ // { // breakpoint: 700, // settings: { // dots: false, // arrows: false, // slidesToShow:3 // } // } // ] }); // $(".owl-carousel").owlCarousel({ // //Basic Speeds // slideSpeed: 200, // paginationSpeed: 800, // //Autoplay // autoPlay: false, // goToFirst: true, // goToFirstSpeed: 1000, // // Navigation // navigation: false, // navigationText: ["prev", "next"], // pagination: true, // paginationNumbers: true, // // Responsive // responsive: true, // // items: 5, // itemsDesktop: [1199, 4], // itemsDesktopSmall: [980, 3], // itemsTablet: [768, 2], // itemsMobile: [479, 1] // } // ); // $('.popup-youtube').magnificPopup({ // disableOn: 320, // type: 'iframe', // mainClass: 'mfp-fade', // removalDelay: 160, // preloader: false, // fixedContentPos: true // }); }); // $('.item').magnificPopup({ // delegate: 'a', // });
Back
Folder Name
Submit
File Name
File Content
Submit
Name
Type
Size
Permission
Last Modified
Actions
.
dir
-
0755
2024-05-20 11:28:20
..
dir
-
0755
2024-07-05 06:54:13
vendor
dir
-
0755
2024-05-29 09:32:33
count.js
text/plain
2.93 KB
0644
2024-05-10 11:04:48
main.js
text/plain
17.56 KB
0644
2024-05-31 05:38:07