Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/progrhyme/hugo-theme-bootie-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkey-amb <yasutake.kiyoshi@gmail.com>2016-05-06 07:14:44 +0300
committerkey-amb <yasutake.kiyoshi@gmail.com>2016-05-06 07:14:44 +0300
commitfaef4a7e80493ae20a6c6d37f83ddf9c85c9bf3e (patch)
treea02aa838c1509ca6983bdf6f9a6d6da31b74c73c
parent22423b24b4907083010430d87b135884a10bd8ef (diff)
Fix #11
-rw-r--r--layouts/partials/footer.html2
-rw-r--r--static/js/bootie-docs.js9
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