Skip to content

Commit

Permalink
πŸ“ load more images sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
desandro committed Apr 21, 2016
1 parent 59489d2 commit 114ce5d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sandbox/load-more-images.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,8 @@ <h1>load more images</h1>
function makeItem() {
var item = document.createElement('div');
item.classList.add('grid-item');
var width = Math.floor( Math.random() * 300 + 100 );
var height = Math.floor( Math.random() * 300 + 100 );
item.innerHTML = '<img src="http://lorempixel.com/' + width + '/' + height + '" />';
var height = Math.floor( Math.random() * 400 + 200 );
item.innerHTML = '<img src="http://lorempixel.com/400/' + height + '" />';
return item;
}

Expand Down

0 comments on commit 114ce5d

Please sign in to comment.