Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // thumbgrid1, version 1
- document.body.insertAdjacentHTML("beforeEnd", "<div id=\"thumbgrid1\" style=\"width:1160px;margin-left:80px\">"+hl.match(/^\w+/gim).map(function(v,i){return '<img src="http://i0.wp.com/i.imgur.com/'+v+'.jpg?resize=240,320" alt="" style="padding:25px"/>'}).join("")+"</div>"); var g=document.getElementById("thumbgrid1");setTimeout(g.scrollIntoView(),1000);
- // thumbgrid1, version 2
- function thumbgrid1(){var a=hl.match(/^\w+/gim).map(function(v,i){return "<a href=\"http://i.imgur.com/"+v+".jpg\" target=\"_blank\"><img src=\"http://i0.wp.com/i.imgur.com/"+v+".jpg?resize=240,320\" alt=\"\" style=\"margin:25px\" width=\"240\" height=\"320\"/></a>"});
- document.body.insertAdjacentHTML("beforeEnd","<div id=\"thumbgrid1\" style=\"margin-top:50px\">"+ a.join("") +"</div>");}
- hl&& setTimeout(function(){thumbgrid1();document.getElementById("thumbgrid1").scrollIntoView(true);},200);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement