Compare commits

..

2 Commits

Author SHA1 Message Date
zbyv
6516e6caf4 Disable 0k button until downloaded 2026-03-23 21:22:37 +01:00
zbyv
a712fd1fcd Add EMSCRIPTEN explicitly becaause emscripten 2026-03-23 21:22:02 +01:00
2 changed files with 7 additions and 1 deletions

View File

@ -217,6 +217,8 @@ if (CMAKE_SYSTEM_NAME STREQUAL Emscripten)
"-sNO_DISABLE_EXCEPTION_CATCHING=1"
)
target_compile_definitions(${MAIN_NAME} PRIVATE EMSCRIPTEN)
target_link_options(${MAIN_NAME} PRIVATE
"-lwebsocket.js"
"-lopenal"

View File

@ -60,7 +60,7 @@
<p id="vyplnitmeno" style="display:none">^ vyplnit</p>
kam <input type="text" name="url" id="url" value="ws://deadfish.cz:11200/ws"><br>
<input id="okbut" type="button" value="0k" onclick="ok()">
<input id="okbut" type="button" value="probíhá získávání" onclick="ok()" disabled>
</form>
</div>
@ -75,6 +75,9 @@
})(),
onRuntimeInitialized: function() {
inited = true;
const okbut = document.getElementById("okbut");
okbut.value = "0k";
okbut.disabled = false;
}
};
@ -130,6 +133,7 @@
}
loadConfig();
document.getElementById("okbut").disabled = true;
</script>
{{{ SCRIPT }}}