We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a47ae0a commit 5f2806eCopy full SHA for 5f2806e
1 file changed
js/secrets.js
@@ -39,6 +39,13 @@ for (var f in flowers) {
39
.click(function(e) {
40
flower.fill = "blue";
41
})
42
+function offsetEvenRows(size) {
43
+ $(".row").each(function (index, object) {
44
+ if (index % 2) {
45
+ $(object).css("position", "relative");
46
+ $(object).css("left", size / 2 * -1 + "px");
47
+ }
48
+ });
49
}
50
51
function makeGrid(rows, cols) {
0 commit comments