("hidden");
    document.getElementById("right-sidebar-button").onclick = closeNavRight;
  }

  function closeNavRight() {
    document.getElementById("right-sidebar").classList.add("hidden");
    document.getElementById("right-sidebar-button").onclick = openNavRight;
  }

  var modal = document.getElementById("pn-Modal");
  var span = document.getElementById("pn-closeModal");

  span.onclick = function() {
    modal.style.display = "none";
  }

  window.onclick = function(event) {
    if (event.target == m