BigW Consortium Gitlab

Commit 55947add by Dmitriy Zaporozhets

Revert "When anchor is clicked set the correct condition."

This reverts commit 5140bd88.
parent 3bf9b660
......@@ -21,12 +21,10 @@ $(document).ready ->
$("html, body").animate
scrollTop: $(".navbar").offset().top - $(".navbar").height()
, 200
false
$("a").click (event) ->
link = event.target
isAnchor = link instanceof HTMLAnchorElement
if (location.hash != "" || isAnchor)
$("a").click (e) ->
unless location.hash is ""
$("html,body").animate
scrollTop: $(this).offset().top - $(".navbar").height() - 3
, 200
......@@ -5,12 +5,10 @@ $(document).ready ->
$("html, body").animate
scrollTop: $(".navbar").offset().top - $(".navbar").height()
, 200
false
$("a").click (event) ->
link = event.target
isAnchor = link instanceof HTMLAnchorElement
if (location.hash != "" || isAnchor)
$("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