2015-12-17 15:21:52 +01:00
|
|
|
$(document).ready(function(){$("#more-articles").click(function(t){t.preventDefault(),$.ajax({url:ajaxpagination.ajaxurl,type:"post",data:{action:"ajax_pagination"},success:function(t){alert(t)}})})}),$(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 n(){$(".top-tab").click(function(){$(".top-tab").removeClass("active"),$(this).addClass("active");var t=$(this).data("tab");$(".marketplace-info").removeClass("active"),$("#"+t).addClass("active")})}function i(){$(".hamburger").click(function(){console.log("hi"),$(".mobile-nav").toggleClass("active")})}function s(){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 o(){$("img").each(function(){$(this).removeAttr("width"),$(this).removeAttr("height")})}o(),e(),a(),n(),t(),i(),s(),c()});
|