diff --git a/index.html b/index.html index d2009ff81ffa7c690ca55c13a007f5921c1fdd7a..cca0fa6ff82d80db5508718558a1e4dfa8656add 100644 --- a/index.html +++ b/index.html @@ -62,5 +62,14 @@ Created by Gabriele Cirulli. Based on 1024 by Veewo Studio.

+ diff --git a/js/html_actuator.js b/js/html_actuator.js index a73fdb1db63db3e19d6157e1bf98135a6cdfc27e..7f47788cfbdcdbc76c69b9d465dcc380e35df989 100644 --- a/js/html_actuator.js +++ b/js/html_actuator.js @@ -89,4 +89,5 @@ HTMLActuator.prototype.updateScore = function (score) { HTMLActuator.prototype.message = function (won) { var type = won ? "game-won" : "game-over"; this.gameContainer.classList.add(type); + if (ga) ga("send", "event", "game", "end", type, this.score); }; diff --git a/style/main.css b/style/main.css index b7d96218c98ce29af45e208e24eff9c0c5122abb..1a1b8f714704d053054250d6cac348649ad4a0ac 100644 --- a/style/main.css +++ b/style/main.css @@ -53,7 +53,7 @@ h1.title { position: relative; float: right; background: #bbada0; - padding: 15px 20px; + padding: 15px 25px; font-size: 25px; height: 25px; line-height: 47px; diff --git a/style/main.scss b/style/main.scss index 3d81a13cdb3bcefb26622746f8216cf526464910..a224dccb2341fa7964ec1909ee9ffc925a252223 100644 --- a/style/main.scss +++ b/style/main.scss @@ -64,7 +64,7 @@ h1.title { position: relative; float: right; background: $game-container-background; - padding: 15px 20px; + padding: 15px 25px; font-size: $height; height: $height; line-height: $height + 22px;