Skip to content

Commit

Permalink
Sorted websites, added a few games n crosswords, and allowing access …
Browse files Browse the repository at this point in the history
…to daily category
  • Loading branch information
Ethan Hirschowitz committed Apr 16, 2024
1 parent 520dabb commit 9ae9e43
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<a href="pages/games.html">Games</a>
<a href="pages/utilities.html">Utilities</a>
<a href="pages/interesting.html">Interesting</a>
<a href="pages/daily.html">Daily</a>
</p>
</nav>
</body>
Expand Down
20 changes: 19 additions & 1 deletion js/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,28 @@ const websites = [
url: "https://www.rottentomatoes.com/movie-trivia/",
category: ["games", "daily"],
brief: "Daily rotten-tomatoes provided movie guessing game. Not tooooooo hard."
},
{
name: "Box Office Game",
url: "https://boxofficega.me/",
category: ["games", "daily"],
brief: "Daily game where you have to guess the top 5 highest grossing movies from a particular week in time using various clues."
},
{
name: "Universal Crossword",
url: "http://syndication.andrewsmcmeel.com/puzzles/crosswords",
category: "games",
brief: "Really good crossword website, with clues that border on cryptic and regular (they are not cryptic, rather creative)."
},
{
name: "Simple Daily Puzzles",
url: "https://simplydailypuzzles.com/index.html",
category: ["games", "daily"],
brief: "Mainly like this for the daily cryptic, but has a variety of puzzles (crossword, sudoku, etc.) that are updated...daily."
}





// {
Expand Down
1 change: 1 addition & 0 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ function displayWebsites(category) {
category === 'all' ? true : Array.isArray(website.category) ? website.category.includes(category) : website.category === category
);

filteredWebsites.sort((a, b) => a.name.localeCompare(b.name));

filteredWebsites.forEach(website => {
const item = document.createElement('div');
Expand Down
2 changes: 1 addition & 1 deletion pages/interesting.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
document.addEventListener('DOMContentLoaded', () => displayWebsites('interesting'));
</script>
</body>
</h
</html>

0 comments on commit 9ae9e43

Please sign in to comment.