[docs] Fix switch cases of website

Don't forget about your break's in your switch cases kids! 😉
This commit is contained in:
Crementif 2021-04-30 14:50:28 +02:00 committed by GitHub
parent 253f4fbf23
commit cec7baadba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,12 +60,14 @@ async function searchSupportedGames(searchString) {
document.getElementsByClassName("navbar-brand")[0].innerText="CEMU Hacks";
document.getElementsByClassName("display-4")[0].innerText="CEMU Hacks";
document.getElementsByClassName("lead")[0].innerText = "Get your online CEMU hax here!!";
break;
}
case "ign": {
// IGN based for calling it community built presets & plugins instead of hacks
document.title = "Home - Cemu Plugins";
document.getElementsByClassName("navbar-brand")[0].innerText="Cemu Plugins";
document.getElementsByClassName("display-4")[0].innerText="Cemu Plugins";
break;
}
}
if (searchString != "*") resultsHintSearch = supportedGamesSearchSet.get(searchString);
@ -179,4 +181,4 @@ function hideAllGames() {
// searchSupportedGames(document.querySelector("#supported-games-search input.form-control").value); // If a user loads the page, execute the search inmediately. Initially meant so that if you'd return to the page and still had a search term, it would look correct.
document.querySelector("#supported-games-search input.form-control").value = ""; // Don't fetch stuff automatically when the user doesn't want to search. Considered better since it's an optional feature.
timeago().render(document.querySelectorAll('.commit-time'));
document.getElementById("viewAllGames").onclick=viewAllGames;
document.getElementById("viewAllGames").onclick=viewAllGames;