You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by ki...@apache.org on 2018/04/21 21:51:34 UTC
svn commit: r1829755 - in /jena/site/trunk: content/download/index.mdtext
content/help_and_support/index.mdtext content/index.mdtext
templates/skeleton.html
Author: kinow
Date: Sat Apr 21 21:51:34 2018
New Revision: 1829755
URL: http://svn.apache.org/viewvc?rev=1829755&view=rev
Log:
Mark menu links as active automatically, without having to add JS to markdown pages
Modified:
jena/site/trunk/content/download/index.mdtext
jena/site/trunk/content/help_and_support/index.mdtext
jena/site/trunk/content/index.mdtext
jena/site/trunk/templates/skeleton.html
Modified: jena/site/trunk/content/download/index.mdtext
URL: http://svn.apache.org/viewvc/jena/site/trunk/content/download/index.mdtext?rev=1829755&r1=1829754&r2=1829755&view=diff
==============================================================================
--- jena/site/trunk/content/download/index.mdtext (original)
+++ jena/site/trunk/content/download/index.mdtext Sat Apr 21 21:51:34 2018
@@ -103,7 +103,3 @@ preference to using any older versions o
Previous Apache Jena releases can be found in the Apache archive area
at [http://archive.apache.org/dist/jena](http://archive.apache.org/dist/jena/)
-
-<script type="text/javascript">
- document.getElementById("download").setAttribute("class", "active");
-</script>
Modified: jena/site/trunk/content/help_and_support/index.mdtext
URL: http://svn.apache.org/viewvc/jena/site/trunk/content/help_and_support/index.mdtext?rev=1829755&r1=1829754&r2=1829755&view=diff
==============================================================================
--- jena/site/trunk/content/help_and_support/index.mdtext (original)
+++ jena/site/trunk/content/help_and_support/index.mdtext Sat Apr 21 21:51:34 2018
@@ -59,7 +59,3 @@ Asking good questions is **the best way
- Ask questions **on the list, rather than emailing the developers directly**. This gives us the chance to share the
load of answering questions, and also ensures that answers are archived in case they're of use to others in the future.
-
-<script type="text/javascript">
- document.getElementById("ask").setAttribute("class", "active");
-</script>
Modified: jena/site/trunk/content/index.mdtext
URL: http://svn.apache.org/viewvc/jena/site/trunk/content/index.mdtext?rev=1829755&r1=1829754&r2=1829755&view=diff
==============================================================================
--- jena/site/trunk/content/index.mdtext (original)
+++ jena/site/trunk/content/index.mdtext Sat Apr 21 21:51:34 2018
@@ -40,7 +40,3 @@
</div>
</div>
-<script type="text/javascript">
- document.getElementById("homepage").setAttribute("class", "active");
- document.title = "Apache Jena - Home"
-</script>
Modified: jena/site/trunk/templates/skeleton.html
URL: http://svn.apache.org/viewvc/jena/site/trunk/templates/skeleton.html?rev=1829755&r1=1829754&r2=1829755&view=diff
==============================================================================
--- jena/site/trunk/templates/skeleton.html (original)
+++ jena/site/trunk/templates/skeleton.html Sat Apr 21 21:51:34 2018
@@ -165,7 +165,13 @@
</p>
</div>
</footer>
-
+
+ <!-- for marking links as active in the navbar-menu -->
+ <script type="text/javascript">
+ var link = $('a[href="' + this.location.pathname + '"]');
+ if (link != undefined)
+ link.parents('li,ul').addClass('active');
+ </script>
</body>
</html>