Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with OpenNav/CloseNav #34

Open
gbowne1 opened this issue Oct 5, 2022 · 0 comments
Open

Problems with OpenNav/CloseNav #34

gbowne1 opened this issue Oct 5, 2022 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@gbowne1
Copy link
Member

gbowne1 commented Oct 5, 2022

In the Firefox v105 (x64) console in Debian Linux

This script:

<script>
      function openNav() {
        document.getElementById("TAOTSideNav").style.width = "250px";
        document.getElementById("main").style.left = "250px";
        document.getElementById("main").style.opacity = "0.8";
      }

      function closeNav() {
        document.getElementById("TAOTSideNav").style.width = "0";
        document.getElementById("main").style.left = "0";
        document.getElementById("main").style.opacity = "0.8";
      }
      var max_width = window.matchMedia("(max-width: 768)");
</script>

says:

Uncaught TypeError: document.getElementById(...) is null for both openNav() and closeNav()

@gbowne1 gbowne1 added bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed labels Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
Status: Todo
Development

No branches or pull requests

1 participant