$(document).ready(function () { //Scrolling nav $(".arrow_btm").ScrollNav({ addActiveClass: "current-menu-item", watchScroll: true, watchUrlChange: true }); //Off canvas menu $(".open-panel").click(function () { $("html").addClass("openNav"); }); $(".close-panel, #content").click(function () { $("html").removeClass("openNav"); }); //Hide-show info $(".hide_show").click(function () { $($(this).attr("data-open-selector")).slideToggle("fast").toggleClass("active"); $(this).toggleClass("active"); return false; }); //Hide-show $(".toggle_form").click(function () { $(".hidden_form").slideToggle(500).toggleClass("active"); $(".toggle_form").toggleClass("active"); return false; }); //Sticky $(".stickthis").sticky({ topSpacing: 0, center: true, className: "hey" }); //Slides $('#slides').superslides( { animation: 'fade', slide_speed: 1000, pagination: true, hashchange: false, scrollable: true, play: false, inherit_width_from: '.layout4', inherit_height_from: '.layout4' }); //Booking //Dropdown language $('.lang_menu').dropit(); //Fancy $(".fancybox").fancybox(); //Accordion jQuery(".accordion h3:first").addClass("active"); jQuery(".accordion div:not(:first)").hide(); jQuery(".accordion h3").click(function () { jQuery(this).next("div").slideToggle("slow").siblings("div:visible").slideUp("slow"); jQuery(this).toggleClass("active"); jQuery(this).siblings("h3").removeClass("active"); }); }); $(window).load(function () { var $isotope = $('#isotopeOffers'); $isotope.find(".brick").matchHeight(); $isotope.find(".brick .box_text").matchHeight(); $isotope.isotope({ $isotope: '.brick' }); $isotope.isotope('layout') var $optionSets = $('.offer_tabs'); var $clickedFilterItem = false; $optionSets.find("a").click(function () { var $this = $(this); $clickedFilterItem = $this; // don't proceed if already selected if ($this.hasClass('active')) { return false; } $optionSets.find('.active').removeClass('active'); $this.addClass('active'); //$.fn.matchHeight._update(); $isotope.isotope({filter: $this.attr('data-option-value')}); return false; }); $isotope.isotope('on', 'arrangeComplete', function (filteredItems) { var filter = $clickedFilterItem.attr('data-option-value'); if (filter != "*") { $isotope.find(".brick" + filter + " .box_text").matchHeight(); } else { $isotope.find(".brick .box_text").matchHeight(); } }); });


https://www.iVisa.com