Gymster
Anonymous
91 x views • 4 years ago
"use strict";
$(document).ready(function(){$("#nav-mobile").html($(".tm-menu").html()),$("#nav-trigger span").click(function(){$("nav#nav-mobile ul").hasClass("expanded")?($("nav#nav-mobile ul.expanded").removeClass("expanded").slideUp(250),$(this).removeClass("open")):($("nav#nav-mobile ul").addClass("expanded").slideDown(250),$(this).addClass("open"))})}),$(document).ready(function(t){t(".post .post-summary").each(function(){var e=t(this),n=e.attr("data:post.snippet");t.get(n,function(n){var a=t(n).find(".post-body").text().substr(0,300);e.html("<p>"+a+"...</p>")},"html")})}),$(document).ready(function(){$(".block-image .thumb img").attr("src",function(t,e){return e.match("s72-c")?e.replace("/s72-c","/s1600"):e.match("w72-h72-p-nu")?e.replace("/w72-h72-p-nu","/s1600"):void 0})}),$(document).ready(function(){$(".PopularPosts ul li img").attr("src",function(t,e){return e.replace("/default.jpg","/mqdefault.jpg")}),$(".PopularPosts ul li img").attr("src",function(t,e){return e.replace("s72-c","s1600-c")}),$(".PopularPosts ul li img").attr("src",function(t,e){return e.replace("w72-h72-p-nu","s1600-c")}),$(".PopularPosts ul li img").attr("src",function(t,e){return e.replace("w72-h72-p-k-nu","s1600-c")})}),$(document).ready(function(){$(".sidebar-1 .PopularPosts .item-snippet").each(function(){var t=$(this).text().substr(0,80),e=t.lastIndexOf(" ");e>8&&$(this).text(t.substr(0,e).replace(/[?,!\.-:;]*$/,"..."))})});