Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
iguannalin committed Aug 1, 2023
1 parent dc20f1f commit 5a8e8e6
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ window.addEventListener("load", () => {
const codeProjects = ["eeg cloud", "ai loves horror", "text me smth nice", "baby killer", "spotify recently added"];
const printProjects = ["tableware", "filmotography", "generative riso poster"];

function getRandomInt(min, max) {
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min) + min); // The maximum is exclusive and the minimum is inclusive
}

const titles = ["yosemite", "alaska", "eastcoast", "tableware"];
function switchFilmView(e = {target:{title:""}}) {
let switches = [1,0,0,0];
Expand Down Expand Up @@ -73,7 +67,8 @@ window.addEventListener("load", () => {
previousElement = currentElement;
}
greeting.style.display = currentElement == center ? "flex" : "none";
if (titles.includes(currentElement.id)) switchFilmView({target:{title:currentElement.id}});
if (currentElement.id == "filmotography") switchFilmView({target:{title:"yosemite"}});
if (currentElement.id == "tableware") switchFilmView({target:{title:"tableware"}});
if (currentElement == center) select.value = "center";
}

Expand Down

0 comments on commit 5a8e8e6

Please sign in to comment.