Skip to content

Commit

Permalink
More tweaking navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
elizabethengelman committed Nov 22, 2022
1 parent 20f1707 commit 97a7c41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@

<!-- video -->
<div class="w-auto self-end justify-items-center mb-10">
<div id="p5sketch" class="rounded-md border-2"></div>
<div id="p5sketch" class="rounded-md "></div>
</div>
</main>
</body>
Expand Down
3 changes: 2 additions & 1 deletion public/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ const addNavigation = () => {

message12.addEventListener("click", () => {
message12.style.display = "none";
document.getElementById("p5sketch").classList.add("border-2");
let myp5 = new p5(
sketchBuilder("purple"),
document.getElementById("p5sketch")
Expand Down Expand Up @@ -121,6 +122,7 @@ const addNavigation = () => {
});

message15.addEventListener("click", () => {
document.getElementById("p5sketch").classList.remove("border-2");
document.getElementById("defaultCanvas2").classList.add("hidden"); //fixme: is there a way to set this?
message15.style.display = "none";
message16.style.display = "flex";
Expand Down Expand Up @@ -153,7 +155,6 @@ const addNavigation = () => {

message21.addEventListener("click", () => {
let title = document.getElementById("title");

document.querySelector("main").classList.add("bg-black");
backgroundAudio.pause();
backgroundVideo.pause();
Expand Down

0 comments on commit 97a7c41

Please sign in to comment.