highlight nav links on left side of page
authorAndrew Engelbrecht <andrew@fsf.org>
Tue, 13 Mar 2018 17:37:48 +0000 (13:37 -0400)
committerAndrew Engelbrecht <andrew@fsf.org>
Tue, 13 Mar 2018 17:37:48 +0000 (13:37 -0400)
(according to which page the user is viewing)

2018/includes/nav-list-2.html
2018/includes/safe_space_js.html [new file with mode: 0644]
2018/safe-space-policy/index.html

index 0d47cecd4cb4fa9db4123cd492e0ecc8a778b88e..02d6762f8b5af7a658744827bc31d0f8a562cc81 100644 (file)
@@ -1,9 +1,9 @@
 <!-- to make a button green on some pages, add class="ahp-link" to an <li> tag. -->
-<li><a href="/2018/speakers/">Speakers</a></li>
-<li><a href="/2018/program/">Program</a></li>
-<li><a href="/2018/social/">Events</a></li>
+<li class="speakers-link"><a href="/2018/speakers/">Speakers</a></li>
+<li class="program-link"><a href="/2018/program/">Program</a></li>
+<li class="social-events-link"><a href="/2018/social/">Events</a></li>
 <li class="getting-around-link"><a href="/2018/getting-around">Travel, Food & Lodging</a></li>
-<li><a href="/2018/safe-space-policy/">Safe Space Policy</a></li>
+<li class="safe-space-policy-link"><a href="/2018/safe-space-policy/">Safe Space Policy</a></li>
 <!-- <li><a href="https://my.fsf.org/civicrm/contribute/transact?reset=1&id=60">Build the scholarship fund</a></li> -->
 <li class="mailing-list-link"><a href="https://lists.gnu.org/mailman/listinfo/libreplanet-discuss">Join the discussion list</a></li>
 <li><a href="https://media.libreplanet.org/u/libreplanet/tag/libreplanet-2017-video/">Session videos from last year</a></li>
diff --git a/2018/includes/safe_space_js.html b/2018/includes/safe_space_js.html
new file mode 100644 (file)
index 0000000..98cc3a5
--- /dev/null
@@ -0,0 +1,3 @@
+<script type="text/javascript">
+ $(".safe-space-policy-link").addClass("active");
+</script>
index 3f2a54f88d5a98f364bf1387775ed384096c88d5..494867268833f98701a2f964f8752bde14111c86 100755 (executable)
@@ -32,5 +32,6 @@
 </p>
 <!--#include virtual="/2018/includes/footer.html"-->
 <!--#include virtual="/2018/includes/common_js.html"-->
+<!--#include virtual="/2018/includes/safe_space_js.html"-->
 <!--#include virtual="/2018/includes/ahp_js.html"-->
 <!--#include virtual="/2018/includes/close.html" -->