Commit b1792d9e authored by Marin Jankovski's avatar Marin Jankovski

Scroll the readme anchors below the navbar.

parent 90e4b400
......@@ -13,3 +13,18 @@ class @ProjectShow
$("a[href=" + defaultView + "]").tab "show"
else
$("a[data-toggle='tab']:first").tab "show"
$(document).ready ->
$(window).load (e) ->
e.preventDefault()
unless location.hash is ""
$("html, body").animate
scrollTop: $(".navbar").offset().top - $(".navbar").height()
, 200
false
$("a").click (e) ->
unless location.hash is ""
$("html,body").animate
scrollTop: $(this).offset().top - $(".navbar").height() - 3
, 200
$(document).ready ->
$(window).load (e) ->
e.preventDefault()
unless location.hash is ""
$("html, body").animate
scrollTop: $(".navbar").offset().top - $(".navbar").height()
, 200
false
$("a").click (e) ->
unless location.hash is ""
$("html,body").animate
scrollTop: $(this).offset().top - $(".navbar").height() - 3
, 200
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment