taotnpwaft / website

The TAOTNPWAFT organization's Website repository.
GNU General Public License v3.0
6 stars 5 forks source link

Problems with OpenNav/CloseNav #34

Open gbowne1 opened 1 year ago

gbowne1 commented 1 year ago

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()