Last active
March 10, 2017 05:35
-
-
Save fenric/d4f5023100701acf2e2660020011e3ac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var column = 1, gridSize = 12, dump = ''; | |
for (; column <= gridSize; column++) | |
{ | |
dump += "\n.grid .column-" + column + " {\n\twidth: " + parseFloat(column / gridSize * 100).toFixed(5) + "%;\n}"; | |
} | |
console.log(dump); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment