[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [nyx/master] Hide FAQ if JS is disabled



commit 702387272beb23250ed2b404f8cd610786f7527f
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date:   Tue Aug 1 14:27:19 2017 -0700

    Hide FAQ if JS is disabled
    
    Our FAQ's how/hide functionality doesn't work without JS but otherwise our page
    still functions surprisingly well. We show both the home and download sections,
    with the nav links going to those anchors.
---
 web/index.html | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/web/index.html b/web/index.html
index 7b0e034..021a074 100644
--- a/web/index.html
+++ b/web/index.html
@@ -9,6 +9,19 @@
 
     <!-- jQueryTools 1.2.6 (https://jquerytools.github.io/download/), copied July 24, 2017 -->
     <script src="jquery.tools.min.js"></script>
+
+    <!-- hide faq since it doesn't work without JS -->
+    <noscript>
+      <style>
+#t2 {
+  display: none;
+}
+
+#faq {
+  display: none;
+}
+      </style>
+    </noscript>
   </head>
 
   <body>
@@ -17,8 +30,8 @@
         <span id="logo"></span>
         <div class="nav">
           <ul class="tabs nav">
-            <li><a id="t1" href="#what_is_it">What Is It?</a></li>
-            <li><a id="t3" href="#faq">FAQ</a></li>
+            <li><a id="t1" href="#home">What Is It?</a></li>
+            <li><a id="t2" href="#faq">FAQ</a></li>
             <li><a id="t3" href="#download">Download</a></li>
           </ul>
         </div>



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits