(event)
| 1036 | } |
| 1037 | |
| 1038 | function toggleModelDropdown(event) { |
| 1039 | event.stopPropagation(); |
| 1040 | const dropdown = document.getElementById("model-filter-options"); |
| 1041 | const button = document.getElementById("model-filter-button"); |
| 1042 | const isVisible = dropdown.style.display !== "none"; |
| 1043 | |
| 1044 | if (isVisible) { |
| 1045 | dropdown.style.display = "none"; |
| 1046 | } else { |
| 1047 | // Calculate position based on button location |
| 1048 | const buttonRect = button.getBoundingClientRect(); |
| 1049 | dropdown.style.left = buttonRect.left + "px"; |
| 1050 | dropdown.style.top = buttonRect.bottom + 4 + "px"; |
| 1051 | dropdown.style.width = buttonRect.width + "px"; |
| 1052 | dropdown.style.display = "block"; |
| 1053 | } |
| 1054 | } |
| 1055 | |
| 1056 | function handleGameNameClick(event, gameName) { |
| 1057 | event.stopPropagation(); |
nothing calls this directly
no outgoing calls
no test coverage detected