~avery/steam-deck-verified

9b9c0b3f1699f5c97c860043aaf5d8e2b964e2c0 — Avery 2 years ago 2f540a3 main
Debounced search
2 files changed, 15 insertions(+), 2 deletions(-)

M main.go
M template.html
M main.go => main.go +1 -0
@@ 99,6 99,7 @@ var testStrings = map[string]string{
	"#SteamDeckVerified_TestResult_AuxFunctionalityNotAccessible_MapEditor":              "Some auxilliary functionality is not accessible on Steam Deck: map editor",
	"#SteamDeckVerified_TestResult_UnsupportedAntiCheat_Other":                           "This game is unsupported on Steam Deck due to use of an unsupported anti-cheat",
	"#SteamDeckVerified_TestResult_VideoPlaybackHasNonblockingIssues":                    "Some in-game movie content may be missing",
	"#SteamDeckVerified_TestResult_UnsupportedGraphicsPerformance":                       "This game's graphics settings cannot be configured to run well on Steam Deck",
}

func getTestDisplay(token string, score int) string {

M template.html => template.html +14 -2
@@ 287,7 287,7 @@
			</p>

			<p class="info">
				This data was last fetched from SteamDB on Monday, February 28th. To check if there have been more recent updates, you can <a href="https://steamdb.info/search/?a=app_keynames&type=-1&keyname=530&operator=1&keyvalue=">access SteamDB directly</a>.
				This data was last fetched from SteamDB on Tuesday, March 15th. To check if there have been more recent updates, you can <a href="https://steamdb.info/search/?a=app_keynames&type=-1&keyname=530&operator=1&keyvalue=">access SteamDB directly</a>.
			</p>

			<details>


@@ 470,12 470,24 @@
			};

			[
				inputSearch,
				inputVerified,
				inputPlayable,
				inputUnsupported,
			].forEach((input) => input.addEventListener('input', filter))

			let searchDebounce;
			inputSearch.addEventListener('input', () => {
				if (inputSearch.value) {
					filterIndicator.classList.remove('hidden');
					filterIndicatorText.innerHTML = 'searching...';
				} else {
					filterIndicator.classList.add('hidden');
				}

				clearTimeout(searchDebounce);
				searchDebounce = setTimeout(filter, 250);
			});

			const clearFilters =() => {
				inputSearch.value = '';
				inputVerified.checked = true;