MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / toggleGameSelection

Function toggleGameSelection

codeclash/viewer/static/js/picker.js:51–61  ·  view source on GitHub ↗
(gameName, forceState = null)

Source from the content-addressed store, hash-verified

49}
50
51function toggleGameSelection(gameName, forceState = null) {
52 // Toggle the checkbox for this game
53 const checkbox = document.querySelector(`input[data-path="${gameName}"]`);
54 if (checkbox) {
55 if (forceState !== null) {
56 checkbox.checked = forceState;
57 } else {
58 checkbox.checked = !checkbox.checked;
59 }
60 }
61}
62
63function handleRowClick(event, gameName) {
64 // Check if click is on checkbox or in checkbox area

Callers 1

handleRowClickFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected