getImageList, setTimeout

getImageList(0);
document.body.innerHTML="loading ...";
var a=il.match(/\w+/gim);a.forEach(function(v,i,a){a[i]='<img src="http://i'+(i%3)+'.wp.com/i.imgur.com/'+v+'.jpg?resize=240,240" alt="" class="c240" />'});window.stop();
setTimeout(function(){document.body.innerHTML="".concat("<style>img.c240{width:240px;height:240px;}</style>",a.join("\n"));},100);


Array.prototype.shuffle = function () {
  var tmp, current, top = this.length;
  if (top) {
    while(--top) {
      current = Math.floor(Math.random() * (top + 1));
      tmp = this[current];
      this[current] = this[top];
      this[top] = tmp;
    }
  }
  return this;
};
This entry was posted in Uncategorized and tagged , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s