From 887c6b4cfe1f8e04dcb7ffdd495231a60df9c271 Mon Sep 17 00:00:00 2001 From: Cotton Hou Date: Sat, 15 Mar 2014 01:13:21 +0800 Subject: [PATCH] shorten links while tweeting, ref #34 --- index.html | 2 +- js/html_actuator.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 3fb403e..4396090 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.

- +
diff --git a/js/html_actuator.js b/js/html_actuator.js index 81359a7..015d47b 100644 --- a/js/html_actuator.js +++ b/js/html_actuator.js @@ -156,6 +156,7 @@ 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.textContent = "Tweet"; var text = "I scored " + this.score + " points at 2048, a game where you " + -- GitLab