diff options
author | key-amb <yasutake.kiyoshi@gmail.com> | 2016-05-06 07:14:44 +0300 |
---|---|---|
committer | key-amb <yasutake.kiyoshi@gmail.com> | 2016-05-06 07:14:44 +0300 |
commit | faef4a7e80493ae20a6c6d37f83ddf9c85c9bf3e (patch) | |
tree | a02aa838c1509ca6983bdf6f9a6d6da31b74c73c | |
parent | 22423b24b4907083010430d87b135884a10bd8ef (diff) |
Fix #11
-rw-r--r-- | layouts/partials/footer.html | 2 | ||||
-rw-r--r-- | static/js/bootie-docs.js | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index a1e5f67..b2dedaa 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -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> diff --git a/static/js/bootie-docs.js b/static/js/bootie-docs.js index bea33ae..22ede36 100644 --- a/static/js/bootie-docs.js +++ b/static/js/bootie-docs.js @@ -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 |