commit 6af59f4605ce79a4305802ebf7bfce31f5a9f76f Author: Arlo Breault arlolra@gmail.com Date: Tue Dec 3 11:34:04 2013 -0800
Link to JS FAQ --- public/index.html | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/public/index.html b/public/index.html index d21744c..763a6eb 100644 --- a/public/index.html +++ b/public/index.html @@ -50,12 +50,18 @@ {{ end }} {{ define "foot" }} <p id="js"> - <script>document.getElementById("js").textContent = "{{ GetText .Lang "JavaScript is enabled." }}";</script> + <script> + // javascript enabled? + var a = document.createElement("a"); + a.href = "https://www.torproject.org/docs/faq#TBBJavaScriptEnabled"; + var c = document.createTextNode("{{ GetText .Lang "JavaScript is enabled." }}"); + a.appendChild(c); + document.getElementById("js").appendChild(a); + // change language + document.getElementById("cl").addEventListener("change", function () { + document.getElementById("lang").submit(); + }); + </script> <noscript>{{ GetText .Lang "JavaScript is disabled." }}</noscript> </p> -<script> - document.getElementById("cl").addEventListener("change", function () { - document.getElementById("lang").submit(); - }); -</script> {{ end }} \ No newline at end of file
tor-commits@lists.torproject.org