Free javascript Hosting


phorto.js

Uploaded on Nov 13 2021 14:53 by p03n6

function _0x1324x17(e,t){for(var a=0;a<e[t].link.length;a++)if("alternate"==e[t].link[a].rel){var s=e[t].link[a].href;break}return s}function _0x1324x1b(e,t){return e[t].title.$t}function _0x1324x1d(e,t){var a=e[t].published.$t,s=a.substring(0,4),n=a.substring(5,7),i=a.substring(8,10);return"<span class='post-date'>"+(monthFormat[parseInt(n,10)-1]+" "+i+", "+s)+"</span>"}function _0x1324x24(e,t){var a=e[t].title.$t,s=e[t].content.$t;if("media$thumbnail"in e[t]){var n=e[t].media$thumbnail.url,i=n.replace("/s72-c","/w380");s.indexOf("youtube.com/embed")>-1&&(i=n.replace("/default.","/mqdefault."))}else i=noThumbnail.replace("/s1600","/w380");return"<img class'post-thumb' alt='"+a+"' src='"+i+"'/>"}function _0x1324x28(e,t,a,s){if(t.match("related")){var n="";n="recent"==s?"/feeds/posts/default?alt=json-in-script&max-results="+a:"/feeds/posts/default/-/"+s+"?alt=json-in-script&max-results="+a,$.ajax({url:n,type:"get",dataType:"jsonp",success:function(a){if(t.match("related"))var s="<ul class='related-posts'>";for(var n=0,i=a.feed.entry;n<i.length;n++){var l=_0x1324x17(i,n),o=_0x1324x1b(i,n),r=_0x1324x24(i,n),c=_0x1324x1d(i,n),u="";t.match("related")&&(u+="<li class='related-item'><div class='related-item-inner'><div class='post-image-wrap'><a class='post-image-link' href='"+l+"'>"+r+"<div class='post-info'><div class='post-info-inner'><h2 class='post-title'>"+o+"</h2>"+c+"</div></div></a></div></div></li>"),s+=u}s+="</ul>",e.html(s)}})}}$(function(){for(var e=0;e<_0x1324x3;e++){var t=_0x1324x2.eq(e),a=t.text();if("_"!==a.charAt(0))if("_"===_0x1324x2.eq(e+1).text().charAt(0)){var s=t.parent();s.append("<ul class='sub-menu2 m-sub'/>")}"_"===a.charAt(0)&&(t.text(a.replace("_","")),t.parent().appendTo(s.children(".sub-menu2")))}$("#main-menu ul li ul").parent("li").addClass("has-sub"),$("#main-menu .widget").addClass("show-menu")}),$("#main-menu-nav").clone().appendTo(".mobile-menu"),$(".mobile-menu .has-sub").append("<div class='submenu-toggle'/>"),$(".mobile-menu-toggle").on("click",function(){$("body").toggleClass("nav-active"),$(".overlay").fadeToggle(170)}),$(".mobile-menu ul li .submenu-toggle").on("click",function(e){$(this).parent().hasClass("has-sub")&&(e.preventDefault(),$(this).parent().hasClass("show")?$(this).parent().removeClass("show").find("> .m-sub").slideToggle(170):$(this).parent().addClass("show").children(".m-sub").slideToggle(170))}),$(".show-search").on("click",function(){$("#nav-search, .mobile-search-form").fadeIn(250).find("input").focus()}),$(".hide-search").on("click",function(){$("#nav-search, .mobile-search-form").fadeOut(250).find("input").blur()}),$(".Label a").attr("href",function(e,t){return t.replace(t,t+"?&max-results="+postPerPage)}),$(".avatar-image-container img").attr("src",function(e,t){return t=(t=t.replace("/s35-c/","/s45-c/")).replace("//img1.blogblog.com/img/blank.gif","//4.bp.blogspot.com/-uCjYgVFIh70/VuOLn-mL7PI/AAAAAAAADUs/Kcu9wJbv790hIo83rI_s7lLW3zkLY01EA/s55-r/avatar.png")}),$(".author-description a").each(function(){$(this).attr("target","_blank")}),$(".post-nav").each(function(){var e=$("a.prev-post-link").attr("href"),t=$("a.next-post-link").attr("href");$.ajax({url:e,type:"get",success:function(e){var t=$(e).find(".blog-post h1.post-title").text();$(".post-prev a .post-nav-inner p").text(t)}}),$.ajax({url:t,type:"get",success:function(e){var t=$(e).find(".blog-post h1.post-title").text();$(".post-next a .post-nav-inner p").text(t)}})}),$(".back-top").each(function(){var e=$(this);$(window).on("scroll",function(){$(this).scrollTop()>=100?e.fadeIn(250):e.fadeOut(250)}),e.click(function(){$("html, body").animate({scrollTop:0},500)})}),$(".related-ready").each(function(){var e=$(this),t=e.find(".related-tag").data("label");_0x1324x28(e,"related",3,t)}),$(".blog-post-comments").each(function(){var e,t=commentsSystem,a=(disqus_blogger_current_url,"<div class='fb-comments' data-width='100%' data-href='"+$(location).attr("href")+"' data-numposts='5'></div>"),s="comments-system-"+t;"blogger"==t?$(this).addClass(s).show():"disqus"==t?((e=document.createElement("script")).type="text/javascript",e.async=!0,e.src="//"+disqusShortname+".disqus.com/embed.js",(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(e),$("#comments, #gpluscomments").remove(),$(this).append("<div id='disqus_thread'/>").addClass(s).show()):"facebook"==t?($("#comments, #gpluscomments").remove(),$(this).append(a).addClass(s).show()):"hide"==t?$(this).hide():$(this).addClass("comments-system-blogger").show()});

Back to list