SHOW:
|
|
- or go back to the newest paste.
| 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=50&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:0.25em" src="'+data.list[i].url+'=s280-c"/>');
| |
| 11 | document.body.innerHTML=a.join("");
| |
| 12 | console.log(this.t,data.list.length); | |
| 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=50&mature=true");
| |
| 17 | setTimeout(function(){r.send()},2000);
| |
| 18 | } | |
| 19 | r.send(); |