aboutsummaryrefslogtreecommitdiff
path: root/book/theme/book.js
diff options
context:
space:
mode:
Diffstat (limited to 'book/theme/book.js')
-rw-r--r--book/theme/book.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/book/theme/book.js b/book/theme/book.js
index 5e386369..40736183 100644
--- a/book/theme/book.js
+++ b/book/theme/book.js
@@ -601,10 +601,10 @@ function playground_text(playground) {
});
})();
-(function controllMenu() {
+(function controlMenu() {
var menu = document.getElementById('menu-bar');
- (function controllPosition() {
+ (function controlPosition() {
var scrollTop = document.scrollingElement.scrollTop;
var prevScrollTop = scrollTop;
var minMenuY = -menu.clientHeight - 50;
@@ -647,7 +647,7 @@ function playground_text(playground) {
prevScrollTop = scrollTop;
}, { passive: true });
})();
- (function controllBorder() {
+ (function controlBorder() {
menu.classList.remove('bordered');
document.addEventListener('scroll', function () {
if (menu.offsetTop === 0) {