commit b0f90133753d12250b4714caf807798fc0eec10f Author: Arlo Breault arlolra@gmail.com Date: Mon Dec 2 23:25:26 2013 -0800
Indicate whether JavaScript is enabled
trac #9397 --- check.pot | 6 ++++++ public/base.html | 5 ++++- public/index.html | 4 ++++ 3 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/check.pot b/check.pot index 6bb9e11..d44533e 100644 --- a/check.pot +++ b/check.pot @@ -80,3 +80,9 @@ msgstr ""
msgid "Questions and answers site for researchers, developers, and users of Tor. Hosted on StackExchange. Currently only available in English." msgstr "" + +msgid "JavaScript is enabled." +msgstr "" + +msgid "JavaScript is disabled." +msgstr "" diff --git a/public/base.html b/public/base.html index f4dc22a..8414023 100644 --- a/public/base.html +++ b/public/base.html @@ -78,6 +78,9 @@ display: block; margin-bottom: 0.4em; } + #js { + font-size: 0.8em; + } </style> </head> <body> @@ -88,8 +91,8 @@ {{ template "body" . }} </div> <div class="foot"> - {{ template "foot" . }} <p class="project">{{ GetText .Lang "The Tor Project is a US 501(c)(3) non-profit dedicated to the research, development, and education of online anonymity and privacy." }} <a href="https://www.torproject.org/about/overview.html.en">{{ GetText .Lang "Learn More »" | UnEscaped }}</a></p> + {{ template "foot" . }} </div> </body> </html> \ No newline at end of file diff --git a/public/index.html b/public/index.html index 9477480..7441f94 100644 --- a/public/index.html +++ b/public/index.html @@ -50,6 +50,10 @@ </div> {{ end }} {{ define "foot" }} +<p id="js"> + <script>document.getElementById("js").textContent = "JavaScript is enabled.";</script> + <noscript>JavaScript is disabled.</noscript> +</p> <script> document.getElementById("cl").addEventListener("change", function () { document.getElementById("lang").submit();