SHARE
TWEET

Untitled

a guest Jul 19th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. !function(e){"use strict";e.fn.reverse=[].reverse,e.fn.redraw=function(){return e(this).each(function(){this.clientHeight})},e(function(){function t(){var t=e(".site").outerHeight(),n=e(".nav-inner").outerHeight();n>t&&e(".site").hasClass("nav-open")?e(".site-pusher").css({minHeight:n}):e(".site-pusher").css({minHeight:s.height()})}function n(t){var n=t+95;e(".has-post-thumbnail.single-format-standard, .has-post-thumbnail.single-format-link, .has-post-thumbnail.single-format-quote, .has-post-thumbnail.page").length&&e(".post-inner, .page-inner").css({marginTop:-n,paddingTop:n}),e(".single-format-standard, .single-format-link, .single-format-quote").find(".entry-thumbnail").css({maxHeight:function(){return e(".format-standard, .format-link, .format-quote").length?s.height()-61:s.height()}}),e(".single-post .entry-thumbnail, .page .entry-thumbnail").addClass("fade-in")}function i(){e().fitVids&&e("#content").fitVids()}function a(){e(".read-time").each(function(){var t=e(this).find(".time").data("word-count"),n=Math.round(t/250);1>n&&(n=1),e(this).find(".time").text(n)})}function o(){e(".featured-post-secondary").each(function(){var t=e(this),n=t.height()-t.find(".entry-header").outerHeight();t.find(".entry-thumbnail").height(n)})}var s=e(window),r=s.width(),l=s.height(),c=e(".post-inner .entry-title, .page-inner .entry-title").outerHeight();(s.resize(function(){r=s.width(),l=s.height()}),function(){var n=e("#container");e(".site-pusher").on("click",function(){n.hasClass("nav-open")&&(n.removeClass("nav-open"),e(".site-navigation").find(".site-name, .container-menu, .site-meta").removeClass("animate-in"))}),e(".nav-toggle").on("click",function(){n.toggleClass("nav-open"),t(),e(".site-navigation").find(".site-name, .container-menu, .site-meta").toggleClass("animate-in")})}(),t(),s.resize(function(){t()}),e(".no-touch").length&&function(){var t=e(".nav-inner"),n=0;s.on("scroll.navMenu",function(){var i,a=e(this).height(),o=t.height(),s=o-a,r=e(this).scrollTop(),l=e(this).scrollTop();o>a&&e(".site").hasClass("nav-open")&&(l=n-l,t.css({top:"+="+l}),-s>(i=parseInt(t.css("top")))||r+a>=e(".site").outerHeight()?t.css({top:-s+"px"}):(i>0||0>=r)&&t.css({top:0})),n=r})}(),e(".nav-bar ul .menu-item-has-children, .nav-bar ul .page_item_has_children").on("mouseenter",function(){var t=e(this),n=t.children(".sub-menu, .children").children("li").length;t.children(".sub-menu, .children").slideDown(50*n).children("li").each(function(t){var n=e(this);setTimeout(function(){n.addClass("animate-in")},100*(t+1))})}).on("mouseleave",function(){var t=e(this),n=t.children(".sub-menu, children").children("li").length;setTimeout(function(){t.children(".sub-menu, .children").slideUp(50*n)},100),t.children(".sub-menu, .children").children("li").reverse().each(function(t){var n=e(this);setTimeout(function(){n.removeClass("animate-in")},100*t)})}),function(){var t=e(".site-header"),n=t.outerHeight(),i=e(".admin-bar").length&&r>768?"32px":0;(function(t){var n=0;s.scroll(function(){var i=e(this).scrollTop();Math.abs(n-i)<=5||(i>n?t.down():t.up(),n=i)})})({down:function(){t.removeClass("fixed").css({top:-n}),s.scrollTop()<=0&&t.removeClass("fixed").css({top:i})},up:function(){t.addClass("fixed").css({top:i}),s.scrollTop()<n&&t.removeClass("fixed").attr("style","")}}),s.scrollTop()>n&&t.addClass("fixed").css({top:i})}(),e(".single-post .site-main .entry-header").waypoint(function(t){"down"===t&&e(".footer-bar").addClass("show")}),e(".single-post .site-main .entry-header").waypoint(function(t){"up"===t&&e(".footer-bar").removeClass("show")}),s.scroll(function(){var t=e(this).scrollTop(),n=e(".site-pusher").height(),i=e(".site-footer").outerHeight();t>n-l+i?e(".footer-bar").css("bottom",i+"px"):e(".footer-bar").attr("style","")}),e(".btn-scroll").on("click",function(t){t.preventDefault(),function(t){t=e("#"===t?"body":t),e("html, body").animate({scrollTop:t.offset().top},"slow")}(e(this).attr("href"))}),n(c),s.resize(function(){n(c=e(".post-inner .entry-title, .page-inner .entry-title").outerHeight())}),e().cycle&&e(".zilla-gallery-container .zilla-gallery, .modal .zilla-gallery").each(function(){var t=e(this),n=t.data("gallery-timeout"),i=t.data("gallery-fx");t.cycle({autoHeight:0,slides:"> picture",swipe:!0,next:e(this).find(".gallery-controls .cycle-next"),prev:e(this).find(".gallery-controls .cycle-prev"),pager:e(this).find(".gallery-controls .cycle-pager"),timeout:n,fx:i}).on("cycle-update-view",function(n,i,a,o){var s=e(o).find("img").data("title"),r=e(o).find("img").data("desc");t.next(".zilla-gallery-caption").find(".title").text(s).next(".description").text(r),""===s&&""===r?t.next(".zilla-gallery-caption").hide():t.next(".zilla-gallery-caption").show(),""===r||""===s?t.next(".zilla-gallery-caption").find(".description:before").hide():t.next(".zilla-gallery-caption").find(".description:before").show()}).on("cycle-before",function(){t.next(".zilla-gallery-caption").addClass("fade-out")}).on("cycle-after",function(){t.next(".zilla-gallery-caption").removeClass("fade-out")}),e(document.documentElement).keyup(function(e){37===e.keyCode?t.cycle("prev"):39===e.keyCode&&t.cycle("next")})}),e(".zilla-gallery-container").each(function(){var t=e(this),n=t.find("img"),i=n.length;n.load(function(){--i||t.find(".zilla-gallery").addClass("fade-in")}).filter(function(){return this.complete}).load()}),e(".comment-form-comment").on("click",function(){e(this).addClass("form-open").next().slideDown(300)}).prependTo(e(".comment-form")).siblings().wrapAll('<div class="comment-form-inner"/>'),e(".comment-form-inner").hide(),e("#cancel-comment").on("click",function(t){t.preventDefault(),e(".comment-form-inner").slideUp(300).prev().removeClass("form-open")}).prependTo(".form-submit"),e().jPlayer)&&e(".jp-jplayer").each(function(){var t=e(this),n=t.data("player-type"),i=t.data("media-info");"video"===n?(t.jPlayer({ready:function(){e(this).jPlayer("setMedia",{poster:i.p,m4v:i.m,ogv:i.o})},size:{width:"100%",height:"auto"},play:function(){e(this).jPlayer("pauseOthers")},swfPath:zillaVersed.vendorFolder,cssSelectorAncestor:i.ancestor,supplied:"m4v, ogv"}),t.bind(e.jPlayer.event.playing,function(){var t=e(this).next(".jp-video").find(".jp-interface");e(this).add(t).hover(function(){e(t).stop().animate({opacity:1},300)},function(){e(t).stop().animate({opacity:0},300)})}),t.bind(e.jPlayer.event.pause,function(){var t=e(this).next(".jp-video").find(".jp-interface");e(this).add(t).unbind("hover"),e(t).stop().animate({opacity:1},300)})):t.jPlayer({ready:function(){e(this).jPlayer("setMedia",{poster:i.p,mp3:i.m,oga:i.o})},size:{width:"100%",height:"auto"},play:function(){e(this).jPlayer("pauseOthers")},preload:"auto",swfPath:zillaVersed.vendorFolder,cssSelectorAncestor:i.ancestor,supplied:"mp3, ogg"})});i(),e(document.body).on("post-load",function(){i()}),e("pre code").html(function(e,t){return t.replace(/^(.*)$/gm,'<span class="line">$1</span>')}),a(),e(".site-meta .menu li").each(function(){var t=e(this).find("a").text();t=t.toLowerCase(),e(this).find("a").text("").addClass("fa "+t)}),e(".page-template-template-home .recent.grid .format-link").each(function(){e(this).find(".entry-link").prependTo(e(this).find(".entry-header"))}),e(".site-logo .retina-img").load(function(){var t=e(this).width();e(this).css("width",t/2).addClass("loaded")}),o(),s.resize(function(){o()}),e(".page-template-template-home .post").each(function(){e(this).addClass("animate-in")}),e(document).on("click",".btn-load-more",function(){var t=e(this),n=t.data("nextpage");t.append('<i class="fa fa-spinner fa-spin" />'),e.ajax({url:zillaVersed.ajaxurl,type:"post",data:{action:"zilla_home_load_more",page:n},success:function(n){t.remove(),e(".recent").append(n).find(".post").redraw().addClass("animate-in"),a()}})})})}(window.jQuery);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top