Advertisement
rg443

ale_preview (258271)

May 5th, 2013
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var j= j||258271;
  2. function artleo_preview(start){
  3. if (!start) start=69373;
  4. /*
  5. for (var a=[],i=start;i>start-448;i--) {a.push('<img src="http://i'+ (i%3) + '.wp.com/www.artleo.com/mini/'+m(i)+'/'+i+'.jpg?resize=320,200" style="width:320px;height:200px" onerror="rem2(this)" />'); if (i==1) break;}
  6. */
  7. /*
  8. for (var a=[],i=start;i>start-450;i--) {a.push('<img src="https://images.weserv.nl/?url=www.artleo.com/mini/'+m(i)+'/'+i+'.jpg&w=320&h=200&t=square&trim" style="width:320px;height:200px" onerror="rem2(this)" />'); if (i==1) break;}
  9. */
  10.  
  11. for (var a=[],i=start;i>start-448;i--) {a.push('<img src="http://127.0.0.'+ (i%10+1) + '/wp1/www.artleo.com/mini/'+m(i)+'/'+i+'.jpg?resize=320,200" style="width:320px;height:200px" onerror="rem4(this)" />'); if (i==1) break;}
  12. window.stop();
  13. document.body.innerHTML='<div id="data1">'+shuffle(a).join("")+'</div>';
  14. document.body.insertAdjacentHTML("beforeEnd",'<br><a href="#" onclick="artleo_preview(j-=448);setTimeout(window.scroll,200,0,0);return false;" style="font:menu;font-size:14pt;color:black;text-decoration:none;">more</a>');
  15. document.body.insertAdjacentHTML("beforeEnd",'<a href="#" onclick="artleo_preview(j+=448);setTimeout(window.scroll,200,0,0);return false;" style="font:menu;font-size:9pt;color:black;text-decoration:none;margin-left:10px;" title="scroll back"> scroll back </a>');
  16. document.title="artleo - " +start;
  17. }
  18. document.onkeypress=function(e){if (e.keyCode==106){artleo_preview(j-=448);window.scroll(0,0);return false};if (e.keyCode==107){artleo_preview(j+=448);window.scroll(0,0);return false}};
  19.  
  20. function shuffle(array) {
  21.   for (var tmp, cur, top=array.length; top--;){
  22.     cur = (Math.random() * (top + 1)) << 0;
  23.     tmp = array[cur]; array[cur] = array[top]; array[top] = tmp;
  24.   }
  25.   return array;
  26. }
  27. function rem1(el){setTimeout(function(){el.parentElement.removeChild(el)},100);}
  28. function rem2(el){el.style.display="none";}
  29. function rem3(el){el.style.visibility="hidden";}
  30. function rem4(el){
  31. el.style.display="none";
  32. el.parentElement.removeChild(el);
  33. j-=1;
  34. data1.insertAdjacentHTML('beforeEnd',
  35. '<img src="http://127.0.0.'+ (j%10+1) + '/wp1/www.artleo.com/mini/'+m(j)+'/'+j+'.jpg?resize=320,200" style="width:320px;height:200px" onerror="rem4(this)" />');
  36.  
  37. }
  38. function m(b) {
  39.   var a = 201512;
  40.   254691 > b && (a=201511);
  41.   239498 > b && (a=201510);
  42.   230803 > b && (a=201509);
  43.   226867 > b && (a=201508);
  44.   212056> b && (a =201507)
  45.   189285> b && (a =201506);
  46.   165932> b && (a =201505);
  47.   157886> b && (a =201504);
  48.   138747> b && (a =201503);
  49.   121629> b && (a = 201502);
  50.   110664> b && (a = 201501);
  51.   103256> b && (a = 201412);
  52.   98447> b && (a = 201411);
  53.   92377> b && (a = 201410);
  54.   87182> b && (a = 201409);
  55.   83790 > b && (a = 201408);
  56.   81067 > b && (a = 201407);
  57.   78137 > b && (a = 201406);
  58.   75988 > b && (a = 201405);  
  59.   73758 > b && (a = 201404);
  60.   71600 > b && (a = 201403);
  61.   69358 > b && (a = 201402);
  62.   67008 > b && (a = 201401);
  63.   64055 > b && (a = 201312);
  64.   61048 > b && (a = 201311);
  65.   59169 > b && (a = 201310);
  66.   56400 > b && (a = 201309);
  67.   54114 > b && (a = 201308);
  68.   52324 > b && (a = 201307);
  69.   50274 > b && (a = 201306);
  70.   48127 > b && (a = 201305);
  71.   46044 > b && (a = 201304);
  72.   44085 > b && (a = 201303);
  73.   42142 > b && (a = 201302);
  74.   40183 > b && (a = 201301);
  75.   38579 > b && (a = 201212);
  76.   37318 > b && (a = 201211);
  77.   35692 > b && (a = 201210);
  78.   b < 34114 && (a = 201209);
  79.   b < 32439 && (a = 201208);
  80.   b < 30144 && (a = 201207);
  81.   b < 28274 && (a = 201206);
  82.   b < 26001 && (a = 201205);
  83.   b < 23536 && (a = 201204);
  84.   b < 20910 && (a = 201203);
  85.   b < 19312 && (a = 201202);
  86.   b < 17044 && (a = 201201);
  87.   b < 16039 && (a = 201112);
  88.   b < 14714 && (a = 201111);
  89.   b < 12742 && (a = 201110);
  90.   b < 11505 && (a = 201109);
  91.   b <  8939 && (a = 201108);
  92.   b <  4497 && (a = 201107);
  93.   b <  4332 && (a = 201106);
  94.   b <  1412 && (a = 201105);
  95.   b <     6 && (a = 201104);
  96.   // 201104
  97.   return a
  98. }
  99. artleo_preview(j);
  100.  
  101. /*
  102. for (var i=0,l=document.images;i<l.length;i++) {var im=l[i]; if (im.width==0)im.parentNode.removeChild(im)}
  103. var a=document.body.innerHTML.match(/(\d+)\/(\d+)/g).join("\n").replace(/(\d+)\/(\d+)/g,'http://www.artleo.com/images/$1/artleo.com_$2.jpg').split("\n");
  104. post_imgur(a,function(){console.log(this.toString())});
  105. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement