From 8091298eb5da5198156dff4c220680a919354e22 Mon Sep 17 00:00:00 2001 From: Joachim Breitner Date: Tue, 1 Mar 2011 14:02:08 +0000 Subject: [PATCH] Use window.location.hash for the permanent link --- sm.html | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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. -

-- 2.20.1