// JavaScript Document /* Offer Menu Filter START */ if (jQuery(".offer-menu-wrapper").length > 0) { jQuery(window).load(function(){ "use strict"; jQuery(function() { var container = jQuery(".offer-menu-items"); container.isotope({ itemSelector : ".isotope-item", layoutMode: "fitRows", transitionDuration: "0.7s", filter: ".cat7" }); var optionSets = jQuery(".option-set"), optionLinks = optionSets.find("a"); optionLinks.click(function(){ var $this = jQuery(this); if ( $this.hasClass("selected") ) { return false; } var optionSet = $this.parents(".option-set"); optionSet.find(".selected").removeClass("selected"); $this.addClass("selected"); var options = {}, key = optionSet.attr("data-option-key"), value = $this.attr("data-option-value"); value = value === "false" ? false : value; options[ key ] = value; if ( key === "layoutMode" && typeof changeLayoutMode === "function" ) { changeLayoutMode( $this, options ) } else { // otherwise, apply new options container.isotope( options ); } return false; }); }); }); } /* Offer Menu Filter END */ // JavaScript Document /* beergarden Filter START */ if (jQuery(".beer-garden-wrapper").length > 0) { jQuery(window).load(function(){ "use strict"; jQuery(function() { var container = jQuery(".beer-garden-items"); container.isotope({ itemSelector : ".isotope-item", layoutMode: "fitRows", transitionDuration: "0.7s", filter: ".cat7" }); var optionSets = jQuery(".option-set"), optionLinks = optionSets.find("a"); optionLinks.click(function(){ var $this = jQuery(this); if ( $this.hasClass("selected") ) { return false; } var optionSet = $this.parents(".option-set"); optionSet.find(".selected").removeClass("selected"); $this.addClass("selected"); var options = {}, key = optionSet.attr("data-option-key"), value = $this.attr("data-option-value"); value = value === "false" ? false : value; options[ key ] = value; if ( key === "layoutMode" && typeof changeLayoutMode === "function" ) { changeLayoutMode( $this, options ) } else { // otherwise, apply new options container.isotope( options ); } return false; }); }); }); } /* Offer Menu Filter END */