Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var r=new XMLHttpRequest(),s,d,data;
- d=new Date();
- s=d.toISOString().replace(/^(\d{4})-(\d{2})-(\d{2})(.*)/,"$2-$3-$1");
- r.t=s;
- r.open("GET","http://www.pixoto.com/images-photography/all/all/leading/on-"+s+"?json=true&offset=0&limit=50&mature=true");
- r.onload=function(){
- data=JSON.parse(this.responseText);
- window.stop();
- document.title=this.t;
- for(var i=0,a=[];i<data.list.length;i++) a.push('<img style="width:280px;height:280px;margin:0.25em" src="'+data.list[i].url+'=s280-c"/>');
- document.body.innerHTML=a.join("");
- console.log(this.t,data.list.length);
- d=new Date(d.setDate(d.getDate()-1));
- s=d.toISOString().replace(/^(\d{4})-(\d{2})-(\d{2})(.*)/,"$2-$3-$1");
- this.t=s;
- this.open("GET","http://www.pixoto.com/images-photography/all/all/leading/on-"+s+"?json=true&offset=0&limit=50&mature=true");
- setTimeout(function(){r.send()},2000);
- }
- r.send();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement