From 7c5a0dfdb8bb05cee2785a314684a8b31d2d7a4d Mon Sep 17 00:00:00 2001 From: Andy McFadden Date: Tue, 8 Jun 2021 13:56:29 -0700 Subject: [PATCH] Fix web site menu button A bit of Javascript was used to remove the hamburger icon when a page doesn't have a #sidenav. This worked when sidenav-incl was being loaded with jQuery load(), because that mechanism works asynchronously, and #sidenav was part of the DOM before it ran. Once we started merging HTML fragments directly into the pages, the script got called before #sidenav was defined, so the icon was always being removed. One solution would be to move the script to footer-incl.html, to follow the preferred practice of placing scripts at the bottom of the . The better solution was to move the "no-sidenav" class from #main to , so that all components can see it. This lets us use CSS rules to hide the icon. --- docs/index.html | 9 ++------- docs/main.css | 12 +++++++++--- docs/sgtutorial/about-disasm.html | 5 ----- docs/sgtutorial/address-tables.html | 5 ----- docs/sgtutorial/advanced-topics.html | 5 ----- docs/sgtutorial/digging-deeper.html | 5 ----- docs/sgtutorial/editing-data.html | 5 ----- docs/sgtutorial/extension-scripts.html | 5 ----- docs/sgtutorial/generating-code.html | 5 ----- docs/sgtutorial/index.html | 5 ----- docs/sgtutorial/inline-data.html | 5 ----- docs/sgtutorial/labels-symbols.html | 5 ----- docs/sgtutorial/local-variables.html | 5 ----- docs/sgtutorial/moving-around.html | 5 ----- docs/sgtutorial/odds-ends.html | 5 ----- docs/sgtutorial/simple-edits.html | 5 ----- docs/sgtutorial/string-formatting.html | 5 ----- docs/sgtutorial/using-sourcegen.html | 5 ----- docs/sgtutorial/visualizations.html | 5 ----- docs/topnav-incl.html | 5 ----- 20 files changed, 11 insertions(+), 100 deletions(-) diff --git a/docs/index.html b/docs/index.html index 2846ee8..ad65e0b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -19,7 +19,7 @@ 6502bench Tools - +
@@ -41,11 +41,6 @@