Advertisement
rg443

pixoto - by day

Oct 4th, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var r=new XMLHttpRequest(),s,d,data;
  2. d=new Date();
  3. s=d.toISOString().replace(/^(\d{4})-(\d{2})-(\d{2})(.*)/,"$2-$3-$1");
  4. r.t=s;
  5. r.open("GET","http://www.pixoto.com/images-photography/all/all/leading/on-"+s+"?json=true&offset=0&limit=48&mature=true");
  6. r.onload=function(){
  7. data=JSON.parse(this.responseText);
  8. window.stop();
  9. document.title=this.t;
  10. for(var i=0,a=[];i<data.list.length;i++) a.push('<img style="width:280px;height:280px;margin:0px;padding:0px;zoom:0.68" src="'+data.list[i].url.replace(/^http:\/\//,"http://127.0.0." +(i%10+1)+ "/wp1/")+'=s280-c"/>');
  11. document.body.innerHTML="<div style=\"line-height:100%\">"+a.join("")+"</div>";
  12. console.log(this.t,new Date().toLocaleTimeString("de-at"));
  13. d=new Date(d.setDate(d.getDate()-1));
  14. s=d.toISOString().replace(/^(\d{4})-(\d{2})-(\d{2})(.*)/,"$2-$3-$1");
  15. this.t=s;
  16. this.open("GET","http://www.pixoto.com/images-photography/all/all/leading/on-"+s+"?json=true&offset=0&limit=100&mature=true");
  17. setTimeout(function(){r.send()},7500);
  18. }
  19. r.send();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement