summaryrefslogtreecommitdiff
path: root/internal/ui/static/js/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'internal/ui/static/js/app.js')
-rw-r--r--internal/ui/static/js/app.js10
1 files changed, 3 insertions, 7 deletions
diff --git a/internal/ui/static/js/app.js b/internal/ui/static/js/app.js
index 2af87dcd..5ac29fa4 100644
--- a/internal/ui/static/js/app.js
+++ b/internal/ui/static/js/app.js
@@ -28,17 +28,13 @@ function onAuxClick(selector, callback, noPreventDefault) {
// Show and hide the main menu on mobile devices.
function toggleMainMenu() {
let menu = document.querySelector(".header nav ul");
+ let menuToggleButton = document.querySelector(".header .logo a");
if (DomHelper.isVisible(menu)) {
menu.style.display = "none";
+ menuToggleButton.setAttribute("aria-expanded", false)
} else {
menu.style.display = "block";
- }
-
- let searchElement = document.querySelector(".header .search");
- if (DomHelper.isVisible(searchElement)) {
- searchElement.style.display = "none";
- } else {
- searchElement.style.display = "block";
+ menuToggleButton.setAttribute("aria-expanded", true)
}
}
option value='feat/db-action'>feat/db-action Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/examples/with-markdown-plugins/src (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2021-08-27[ci] yarn formatGravatar matthewp 1-1/+4