mirror of
https://github.com/ascribe/wp-theme
synced 2024-12-23 01:30:09 +01:00
13 lines
9.1 KiB
JavaScript
13 lines
9.1 KiB
JavaScript
/**
|
|
** ascribe v0.0.1
|
|
** The best WordPress theme ever made!
|
|
** http://ascribe.io
|
|
**
|
|
** Territorial <us@territorial.ca>
|
|
**
|
|
**
|
|
** https://github.com/ascribe/wp-theme.git
|
|
**/
|
|
$(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()});
|
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9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JlbW92ZUNsYXNzKCdhY3RpdmUnKTtcbiAgICAgICAgICAgICQoJyMnK2NvbnRlbnRUb1Nob3cpLmFkZENsYXNzKCdhY3RpdmUnKTtcblxuICAgICAgICB9KTtcbiAgICB9XG4gICAgZnVuY3Rpb24gbW9iaWxlTmF2KCkge1xuICAgICAgICAkKCcuaGFtYnVyZ2VyJykuY2xpY2soZnVuY3Rpb24oKXtcbiAgICAgICAgICAgIGNvbnNvbGUubG9nKCdoaScpO1xuICAgICAgICAgICAgICQoJy5tb2JpbGUtbmF2JykudG9nZ2xlQ2xhc3MoJ2FjdGl2ZScpO1xuICAgICAgICB9KTtcbiAgICB9XG4gICAgZnVuY3Rpb24gc3RpY2t5TmF2KCkge1xuICAgICAgICB2YXIgZGlkU2Nyb2xsID0gZmFsc2U7XG4gICAgICAgIHZhciBzdGlja3kgPSAkKCcuc3RpY2t5Jyk7XG5cbiAgICAgICAgJCh3aW5kb3cpLnNjcm9sbChmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICBkaWRTY3JvbGwgPSB0cnVlO1xuICAgICAgICB9KTtcblxuICAgICAgICBzZXRJbnRlcnZhbChmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICBpZiAoZGlkU2Nyb2xsKSB7XG4gICAgICAgICAgICAgICAgZGlkU2Nyb2xsID0gZmFsc2U7XG5cbiAgICAgICAgICAgICAgICBpZiAoJCh3aW5kb3cpLnNjcm9sbFRvcCgpID4gMTAwKSB7XG4gICAgICAgICAgICAgICAgICAgIHN0aWNreS5hZGRDbGFzcygnc3R1Y2snKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIHN0aWNreS5yZW1vdmVDbGFzcygnc3R1Y2snKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH0sIDI1MCk7XG4gICAgfVxuICAgIGZ1bmN0aW9uIGNvbG91ckhvdmVyKCkge1xuICAgICAgICAkKCcudGVhbS1tZW1iZXIgaW1nJykuaG92ZXIoXG4gICAgICAgICAgICBmdW5jdGlvbigpe1xuICAgICAgICAgICAgICAgIHZhciBob3ZlciA9ICQodGhpcykuZGF0YSgnaG92ZXInKTtcbiAgICAgICAgICAgICAgICAkKHRoaXMpLmF0dHIoJ3NyYycsaG92ZXIpO1xuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIGZ1bmN0aW9uKCl7XG4gICAgICAgICAgICAgICAgdmFyIG5vcm1hbCA9ICQodGhpcykuZGF0YSgncmVndWxhcicpO1xuICAgICAgICAgICAgICAgICQodGhpcykuYXR0cignc3JjJyxub3JtYWwpO1xuICAgICAgICAgICAgfSk7XG4gICAgfVxuICAgIGZ1bmN0aW9uIGltZ0F0dHJSZW1vdmVyKCkge1xuICAgICAgICAkKCdpbWcnKS5lYWNoKGZ1bmN0aW9uKCl7XG4gICAgICAgICAgICAkKHRoaXMpLnJlbW92ZUF0dHIoJ3dpZHRoJyk7XG4gICAgICAgICAgICAkKHRoaXMpLnJlbW92ZUF0dHIoJ2hlaWdodCcpO1xuICAgICAgICB9KTtcbiAgICB9XG5cbn0pO1xuIl0sInNvdXJjZVJvb3QiOiIvc291cmNlLyJ9
|