mirror of
https://github.com/ascribe/wp-theme
synced 2025-01-03 18:35:08 +01:00
4 lines
1.6 KiB
JavaScript
4 lines
1.6 KiB
JavaScript
/*! ascribe - v0.0.1
|
|
* http://wordpress.org/themes
|
|
* Copyright (c) 2015; * Licensed GPLv2+ */
|
|
$(document).ready(function(){function a(){$("body").hasClass("page-template-template-tour")&&$(".tour-switcher .menu").prepend($(".tour-switcher .current-menu-item")),$(".current-menu-item a").click(function(a){a.preventDefault(),$("#menu-landing-page-menu").toggleClass("active")})}function b(){$(".case-study:gt(0)").addClass("hidden"),$(".slider-action").click(function(){var a=$(this).attr("id");"back"===a?($(".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 c(){$(".featured-faqs dt").click(function(){$(this).next("dd").toggleClass("open")})}function d(){$(".top-tab").click(function(){$(".top-tab").removeClass("active"),$(this).addClass("active");var a=$(this).data("tab");$(".marketplace-info").removeClass("active"),$("#"+a).addClass("active")})}function e(){$(".hamburger").click(function(){console.log("hi"),$(".mobile-nav").toggleClass("active")})}function f(){var a=!1,b=$(".sticky");$(window).scroll(function(){a=!0}),setInterval(function(){a&&(a=!1,$(window).scrollTop()>100?b.addClass("stuck"):b.removeClass("stuck"))},250)}function g(){$(".team-member img").hover(function(){var a=$(this).data("hover");$(this).attr("src",a)},function(){var a=$(this).data("regular");$(this).attr("src",a)})}function h(){$("img").each(function(){$(this).removeAttr("width"),$(this).removeAttr("height")})}h(),b(),c(),d(),a(),e(),f(),g()}); |