Modified: websites/staging/marmotta/trunk/content/download.html
==============================================================================
--- websites/staging/marmotta/trunk/content/download.html (original)
+++ websites/staging/marmotta/trunk/content/download.html Thu Mar 28 10:52:20
2013
@@ -324,9 +324,9 @@
<h1>Download Marmotta</h1><p>Besides getting Marmotta from the <a
href="source-repository.html">source code repository</a>, from here you can get
any of the versions already published:</p>
<ul>
- <li><a href="#a3.0.0-incubating">3.0.0-incubating</a></li>
+ <li><a href="#a3-0-0-incubating">3.0.0-incubating</a></li>
</ul>
-<div class="section" id="3.0.0-incubating"><h2
id="3.0.0-incubating">3.0.0-incubating</h2><p>The first incubating release has
been published in April ?th of 2013, and can be found at the <a
class="externalLink"
href="http://www.apache.org/dist/incubator/marmotta/3.0.0-incubating/">ASF
Distribution Directory</a>:</p>
+<div class="section" id="a3-0-0-incubating"><h2
id="a3-0-0-incubating">3.0.0-incubating</h2><p>The first incubating release has
been published in April ??th of 2013, and can be found at the <a
class="externalLink"
href="http://www.apache.org/dist/incubator/marmotta/3.0.0-incubating/">ASF
Distribution Directory</a>:</p>
<ul>
<li>Source
<ul>
Modified: websites/staging/marmotta/trunk/content/js/marmotta.js
==============================================================================
--- websites/staging/marmotta/trunk/content/js/marmotta.js (original)
+++ websites/staging/marmotta/trunk/content/js/marmotta.js Thu Mar 28 10:52:20
2013
@@ -59,5 +59,22 @@ $(document).ready(function() {
showHideChangelogs();
}
+ //fix anchors' behavior overlapped by our top menu
+ $("a").each(function() {
+ var href = $(this).attr("href");
+ if (href && href.startsWith("#")) {
+ $(this).click(function() {
+ var target = $(href) ? $(href) :
$('a[name*="'+href.substring(1)+'"]');
+ if (target && target.offset()) {
+ window.history.pushState({}, "", url + href);
+ $(document).scrollTop( target.offset().top - 50 );
+ return false;
+ } else {
+ return true;
+ }
+ });
+ }
+ });
+
});