You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2014/02/19 16:19:51 UTC

svn commit: r1569782 - in /isis/site/trunk: content/documentation.md templates/isis-template.html

Author: danhaywood
Date: Wed Feb 19 15:19:50 2014
New Revision: 1569782

URL: http://svn.apache.org/r1569782
Log:
anchor offset

Modified:
    isis/site/trunk/content/documentation.md
    isis/site/trunk/templates/isis-template.html

Modified: isis/site/trunk/content/documentation.md
URL: http://svn.apache.org/viewvc/isis/site/trunk/content/documentation.md?rev=1569782&r1=1569781&r2=1569782&view=diff
==============================================================================
--- isis/site/trunk/content/documentation.md (original)
+++ isis/site/trunk/content/documentation.md Wed Feb 19 15:19:50 2014
@@ -442,7 +442,9 @@ For both:
 {row
 
 {col-md-12
-## <a name="restfulobjects-viewer">RestfulObjects Viewer</a> [2.1.0](components/viewers/restfulobjects/release-notes/about.html)
+<a name="restfulobjects-viewer">
+## RestfulObjects Viewer [2.1.0](components/viewers/restfulobjects/release-notes/about.html)
+</a>
 }
 
 

Modified: isis/site/trunk/templates/isis-template.html
URL: http://svn.apache.org/viewvc/isis/site/trunk/templates/isis-template.html?rev=1569782&r1=1569781&r2=1569782&view=diff
==============================================================================
--- isis/site/trunk/templates/isis-template.html (original)
+++ isis/site/trunk/templates/isis-template.html Wed Feb 19 15:19:50 2014
@@ -226,47 +226,6 @@
     $().dropdown()
     </script>
 
-    <script type="text/javascript">
-    
-    // http://stackoverflow.com/questions/9047703/fixed-position-navbar-obscures-anchors
-    /**
-      * Check an href for an anchor. If exists, and in document, scroll to it.
-      * If href argument omitted, assumes context (this) is HTML Element,
-      * which will be the case when invoked by jQuery after an event
-      */
-    function scroll_if_anchor(href) {
-        href = typeof(href) == "string" ? href : $(this).attr("href");
-
-        // If href missing, ignore
-        if(!href) return false;
-
-        // You could easily calculate this dynamically if you prefer
-        var fromTop = 50;
-
-        // If our Href points to a valid, non-empty anchor, and is on the same page (e.g. #foo)
-        // Legacy jQuery and IE7 may have issues: http://stackoverflow.com/q/1593174
-        if(href.charAt(0) == "#") {
-            var $target = $(href);
-
-            // Older browsers without pushState might flicker here, as they momentarily
-            // jump to the wrong position (IE < 10)
-            if($target.length) {
-                $('html, body').animate({ scrollTop: $target.offset().top - fromTop });
-                if(history && "pushState" in history) {
-                    history.pushState({}, document.title, window.location.pathname + href);
-                    return false;
-                }
-            }
-        }
-    }    
-
-    // When our page loads, check to see if it contains and anchor
-    scroll_if_anchor(window.location.hash);
-
-    // Intercept all anchor clicks
-    $("body").on("click", "a", scroll_if_anchor);
-    </script>
-
     
   </head>