function createDiv(className){
var div = document.createElement('div');
div.className = className;
return div;
}
var inrow = Math.floor(window.innerWidth / 50) - 1;
for (var i = 0; i < inrow; i++) {
$(".grid-container").append(createDiv('grid-row-1'));
$(".grid-container").append(createDiv('grid-row-2'));
}
for (var i = 0; i < inrow; i++) {
$(".grid-row-1").append(createDiv('hexagon'));
$(".grid-row-2").append(createDiv('hexagon'));
}