Cleator
Anonymous
88 x views • 4 years ago
"use strict";
function removeHtmlTag(n,e){if(-1!=n.indexOf("<")){var t=n.split("<");for(e=0;e<t.length;e++)-1!=t[e].indexOf(">")&&(t[e]=t[e].substring(t[e].indexOf(">")+1,t[e].length));n=t.join("")}for(e=e<n.length-1?e:n.length-2;" "!=n.charAt(e-1)&&-1!=n.indexOf(" ",e);)e++;return n=n.substring(0,e-1),n+"..."}function createSnippet(n){var e=document.getElementById(n),t=snippet_count,i='<div class="snippets">'+removeHtmlTag(e.innerHTML,t)+"</div>";e.innerHTML=i}$(document).ready(function(){$(".block-image .thumb img").attr("src",function(n,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})});