diff --git a/index.html b/index.html index 3fb403eb11cd1c7787a837f2c407ab7ffc2c7b55..f9fb3145e654af75f58d05feb97f841aac1ff1c1 100644 --- a/index.html +++ b/index.html @@ -83,7 +83,7 @@ Created by Gabriele Cirulli. Based on 1024 by Veewo Studio and conceptually similar to Threes by Asher Vollmer.

- Tweet + Tweet
diff --git a/js/html_actuator.js b/js/html_actuator.js index 81359a7685c4bdc8ce1babc76ba9e25d4a27f316..8f7e779e98c61536aef1fb55c8a70dd366a1f0cf 100644 --- a/js/html_actuator.js +++ b/js/html_actuator.js @@ -156,6 +156,8 @@ HTMLActuator.prototype.scoreTweetButton = function () { tweet.classList.add("twitter-share-button"); tweet.setAttribute("href", "https://twitter.com/share"); tweet.setAttribute("data-via", "gabrielecirulli"); + tweet.setAttribute("data-url", "http://git.io/2048"); + tweet.setAttribute("data-counturl", "http://gabrielecirulli.github.io/2048/"); tweet.textContent = "Tweet"; var text = "I scored " + this.score + " points at 2048, a game where you " +