Commit faef4a7e authored by key-amb's avatar key-amb
Browse files

Fix #11

parent 22423b24
......@@ -3,7 +3,7 @@
<div class="row">
<div class="col-sm-8">
<p class="doc-footer-em"><a href="#">Back to TOP</a></p>
<p class="doc-footer-em"><a href="#" onclick="resetSidebarPos()">Back to TOP</a></p>
</div>
</div>
......
......@@ -29,5 +29,12 @@ window.onload = function() {
});
}
});
}
}
}
function resetSidebarPos() {
var sideNode = $("#sidebar");
if ( $(window).width() > $("main").width() + $("#sidebar").width() ) {
sideNode.css({"position": "fixed", "top": "", "bottom": ""});
}
}
\ No newline at end of file
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