Server IP : 162.214.80.37 / Your IP : 216.73.216.83 Web Server : Apache System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : imyrqtmy ( 2189) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home2/imyrqtmy/public_html/tourdepart/yatram/temp/js/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
(function($){"use strict";$(document).ready(function(){var jPanelMenu=$.jPanelMenu({menu:'#responsive',animated:false,duration:200,keyboardShortcuts:false,closeOnContentClick:true});$('.menu-trigger').on('click',function(){var jpm=$(this);if(jpm.hasClass('active')) {jPanelMenu.off();jpm.removeClass('active');} else {jPanelMenu.on();jPanelMenu.open();jpm.addClass('active');$('#jPanelMenu-menu').removeClass('menu');$('ul#jPanelMenu-menu li').removeClass('dropdown');$('ul#jPanelMenu-menu li ul').removeAttr('style');$('ul#jPanelMenu-menu li div').removeClass('mega').removeAttr('style');$('ul#jPanelMenu-menu li div div').removeClass('mega-container');} return false;});$(window).resize(function(){var winWidth=$(window).width();if(winWidth>992){jPanelMenu.close();}});$('.user-menu').on('click',function(){$(this).toggleClass('active');});$("#header").not("#header.not-sticky").clone(true).addClass('cloned unsticky').insertAfter("#header");$("#navigation.style-2").clone(true).addClass('cloned unsticky').insertAfter("#navigation.style-2");$("#logo .sticky-logo").clone(true).prependTo("#navigation.style-2.cloned ul#responsive");var headerOffset=$("#header-container").height()*2;$(window).scroll(function(){if($(window).scrollTop()>=headerOffset){$("#header.cloned").addClass('sticky').removeClass("unsticky");$("#navigation.style-2.cloned").addClass('sticky').removeClass("unsticky");}else{$("#header.cloned").addClass('unsticky').removeClass("sticky");$("#navigation.style-2.cloned").addClass('unsticky').removeClass("sticky");}});var pxShow=600;var scrollSpeed=500;$(window).scroll(function(){if($(window).scrollTop()>=pxShow){$("#backtotop").addClass('visible');}else{$("#backtotop").removeClass('visible');}});$('#backtotop a').on('click',function(){$('html, body').animate({scrollTop:0},scrollSpeed);return false;});function inlineCSS(){$(".main-search-container, section.fullwidth, .listing-slider .item, .address-container, .img-box-background, .image-edge, .edge-bg").each(function(){var attrImageBG=$(this).attr('data-background-image');var attrColorBG=$(this).attr('data-background-color');if(attrImageBG!==undefined){$(this).css('background-image','url('+attrImageBG+')');} if(attrColorBG!==undefined){$(this).css('background',''+attrColorBG+'');}});} inlineCSS();function parallaxBG(){$('.parallax').prepend('<div class="parallax-overlay"></div>');$(".parallax").each(function(){var attrImage=$(this).attr('data-background');var attrColor=$(this).attr('data-color');var attrOpacity=$(this).attr('data-color-opacity');if(attrImage!==undefined){$(this).css('background-image','url('+attrImage+')');} if(attrColor!==undefined){$(this).find(".parallax-overlay").css('background-color',''+attrColor+'');} if(attrOpacity!==undefined){$(this).find(".parallax-overlay").css('opacity',''+attrOpacity+'');}});} parallaxBG();$('.category-box').each(function(){$(this).append('<div class="category-box-background"></div>');$(this).children('.category-box-background').css({'background-image':'url('+$(this).attr('data-background-image')+')'});});$('.img-box').each(function(){$(this).append('<div class="img-box-background"></div>');$(this).children('.img-box-background').css({'background-image':'url('+$(this).attr('data-background-image')+')'});});$(".toggle-container").hide();$('.trigger, .trigger.opened').on('click',function(a){$(this).toggleClass('active');a.preventDefault();});$(".trigger").on('click',function(){$(this).next(".toggle-container").slideToggle(300);});$(".trigger.opened").addClass("active").next(".toggle-container").show();$('.like-icon, .widget-button, .like-button').on('click',function(e){e.preventDefault();$(this).toggleClass('liked');$(this).children('.like-icon').toggleClass('liked');});$('.more-search-options-trigger').on('click',function(e){e.preventDefault();$('.more-search-options, .more-search-options-trigger').toggleClass('active');$('.more-search-options.relative').animate({height:'toggle',opacity:'toggle'},300);});$(window).on('load resize',function(){$('.dashboard-stat-content h4').counterUp({delay:100,time:800});});$('.leave-rating input').change(function(){var $radio=$(this);$('.leave-rating .selected').removeClass('selected');$radio.closest('label').addClass('selected');});$('.dashboard-nav ul li a').on('click',function(){if($(this).closest('li').has('ul').length){$(this).parent('li').toggleClass('active');}});$(window).on('load resize',function(){var wrapperHeight=window.innerHeight;var headerHeight=$("#header-container").height();var winWidth=$(window).width();if(winWidth>992){$(".dashboard-nav-inner").css('max-height',wrapperHeight-headerHeight-180);}else{$(".dashboard-nav-inner").css('max-height','');}});$(".tip").each(function(){var tipContent=$(this).attr('data-tip-content');$(this).append('<div class="tip-content">'+tipContent+'</div>');});$(".add-listing-section").each(function(){var switcherSection=$(this);var switcherInput=$(this).find('.switch input');if(switcherInput.is(':checked')){$(switcherSection).addClass('switcher-on');} switcherInput.change(function(){if(this.checked===true){$(switcherSection).addClass('switcher-on');}else{$(switcherSection).removeClass('switcher-on');}});});$('.dashboard-responsive-nav-trigger').on('click',function(e){e.preventDefault();$(this).toggleClass('active');var dashboardNavContainer=$('body').find(".dashboard-nav");if($(this).hasClass('active')){$(dashboardNavContainer).addClass('active');}else{$(dashboardNavContainer).removeClass('active');}});$(window).on('load resize',function(){var msgContentHeight=$(".message-content").outerHeight();var msgInboxHeight=$(".messages-inbox ul").height();if(msgContentHeight>msgInboxHeight){$(".messages-container-inner .messages-inbox ul").css('max-height',msgContentHeight)}});$(window).on('load resize',function(){var containerWidth=$(".container").width();$('.listing-nav-container.cloned .listing-nav').css('width',containerWidth);});if(document.getElementById("listing-nav")!==null){$(window).scroll(function(){var window_top=$(window).scrollTop();var div_top=$('.listing-nav').not('.listing-nav-container.cloned .listing-nav').offset().top+90;if(window_top>div_top){$('.listing-nav-container.cloned').addClass('stick');}else{$('.listing-nav-container.cloned').removeClass('stick');}});} $(".listing-nav-container").clone(true).addClass('cloned').prependTo("body");$('.listing-nav a, a.listing-address, .star-rating a').on('click',function(e){e.preventDefault();$('html,body').scrollTo(this.hash,this.hash,{gap:{y:-20}});});$(".listing-nav li:first-child a, a.add-review-btn, a[href='#add-review']").on('click',function(e){e.preventDefault();$('html,body').scrollTo(this.hash,this.hash,{gap:{y:-100}});});$(window).on('load resize',function(){var aChildren=$(".listing-nav li").children();var aArray=[];for(var i=0;i<aChildren.length;i++){var aChild=aChildren[i];var ahref=$(aChild).attr('href');aArray.push(ahref);} $(window).scroll(function(){var windowPos=$(window).scrollTop();for(var i=0;i<aArray.length;i++){var theID=aArray[i];var divPos=$(theID).offset().top-150;var divHeight=$(theID).height();if(windowPos>=divPos&&windowPos<(divPos+divHeight)){$("a[href='"+theID+"']").addClass("active");}else{$("a[href='"+theID+"']").removeClass("active");}}});});});})(this.jQuery);/*! * jquery.scrollto.js 0.0.1 - https://github.com/yckart/jquery.scrollto.js * Copyright (c) 2012 Yannick Albert (http://yckart.com) * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php). **/$.scrollTo=$.fn.scrollTo=function(x,y,options){if(!(this instanceof $))return $.fn.scrollTo.apply($('html, body'),arguments);options=$.extend({},{gap:{x:0,y:0},animation:{easing:'swing',duration:600,complete:$.noop,step:$.noop}},options);return this.each(function(){var elem=$(this);elem.stop().animate({scrollLeft:!isNaN(Number(x))?x:$(y).offset().left+options.gap.x,scrollTop:!isNaN(Number(y))?y:$(y).offset().top+options.gap.y},options.animation);});};function numericalRating(ratingElem){$(ratingElem).each(function(){var dataRating=$(this).attr('data-rating');if(dataRating>=4.0){$(this).addClass('high');}else if(dataRating>=3.0){$(this).addClass('mid');}else if(dataRating<3.0){$(this).addClass('low');}});}numericalRating('.numerical-rating');