From: Joachim Breitner
Date: Tue, 1 Mar 2011 14:02:08 +0000 (+0000)
Subject: Use window.location.hash for the permanent link
X-Git-Tag: 0_20-1~23
X-Git-Url: http://git.nomeata.de/?p=darcs-mirror-screen-message.debian.git;a=commitdiff_plain;h=8091298eb5da5198156dff4c220680a919354e22
Use window.location.hash for the permanent link
---
diff --git a/sm.html b/sm.html
index a27327b..66e731d 100644
--- a/sm.html
+++ b/sm.html
@@ -66,9 +66,7 @@ function adjust() {
//test.innerHTML = newHeight + " " + window.innerHeight + " " + fontSize;
- link = document.getElementById("permlink");
- href = window.location.href.replace(/\#.*/,"");
- link.href = href + "#t=" + encodeURIComponent(ta.value);
+ href = window.location.hash = "#t=" + encodeURIComponent(ta.value);
}
function showBox() {
@@ -122,9 +120,6 @@ For more information about the original program, see what Joachim Breitner.
-
-Use this link to share your current text.
-