Skip to content

Commit

Permalink
quick fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
twhlynch committed May 4, 2024
1 parent 99002ed commit 760d3ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion game.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ async function loadSearch() {
const query = document.getElementById("search").value;
document.getElementById("cards").innerHTML = "";
verifiedLevels.then(levels => {
let results = levels.filter(l => l.title.toLowerCase().includes(query.toLowerCase()));
let results = levels.filter(l => l.title.toLowerCase().replace(" ", "").includes(query.toLowerCase().replace(" ", "")));
if (results.length > 0) {
for (let i = 0; i < Math.min(results.length, 100); i++) {
let card = document.createElement("div");
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
</menu>
<section id="guessing">
<div id="search-menu">
<input type="text" name="" id="search">
<input type="text" name="" id="search" autocapitalize="off" autocomplete="off" autocorrect="off" spellcheck="false" placeholder="Search for a location...">
<div id="search-type">
<button id="search-submit">Search</button>
</div>
Expand Down

0 comments on commit 760d3ed

Please sign in to comment.