|
|
|
$(document).ready(function(){function t(){$("body").hasClass("page-template-template-tour")&&$(".tour-switcher .menu").prepend($(".tour-switcher .current-menu-item")),$(".current-menu-item a").click(function(t){t.preventDefault(),$("#menu-landing-page-menu").toggleClass("active")})}function e(){$(".case-study:gt(0)").addClass("hidden"),$(".slider-action").click(function(){var t=$(this).attr("id");"back"===t?($(".case-study").addClass("hidden"),$(".case-study").last().prependTo(".slide-container").removeClass("hidden")):(displayed=$(".case-study").first(),displayed.addClass("hidden"),$(".case-study").eq(1).removeClass("hidden"),displayed.appendTo(".slide-container"))})}function a(){$(".featured-faqs dt").click(function(){$(this).next("dd").toggleClass("open")})}function i(){$(".top-tab").click(function(){$(".top-tab").removeClass("active"),$(this).addClass("active");var t=$(this).data("tab");$(".marketplace-info").removeClass("active"),$("#"+t).addClass("active")})}function s(){$(".hamburger").click(function(){console.log("hi"),$(".mobile-nav").toggleClass("active")})}function n(){var t=!1,e=$(".sticky");$(window).scroll(function(){t=!0}),setInterval(function(){t&&(t=!1,$(window).scrollTop()>100?e.addClass("stuck"):e.removeClass("stuck"))},250)}function c(){$(".team-member img").hover(function(){var t=$(this).data("hover");$(this).attr("src",t)},function(){var t=$(this).data("regular");$(this).attr("src",t)})}function d(){$("img").each(function(){$(this).removeAttr("width"),$(this).removeAttr("height")})}d(),e(),a(),i(),t(),s(),n(),c()});
|