Compare commits

..

1 Commits
v0.0.0 ... main

Author SHA1 Message Date
Bel LaPointe 4663960d9d update updating options 2024-02-21 12:23:58 -07:00
2 changed files with 5 additions and 2 deletions

View File

@ -53,8 +53,11 @@
<label for="${i}">${i}</label> <label for="${i}">${i}</label>
</div>` </div>`
if (document.getElementById("question-text").value != g_live_question.Text) { if (document.getElementById("question-text").value != g_live_question.Text) {
document.getElementById("question-text").innerHTML = `<h1>${g_live_question.Text}</h1>`;
document.getElementById("question-text").value = g_live_question.Text; document.getElementById("question-text").value = g_live_question.Text;
document.getElementById("question-text").innerHTML = `<h1>${g_live_question.Text}</h1>`;
}
if (document.getElementById("question-options").value != options) {
document.getElementById("question-options").value = options;
document.getElementById("question-options").innerHTML = options; document.getElementById("question-options").innerHTML = options;
} }
} else { } else {

View File

@ -109,7 +109,7 @@ func runHTTP(ctx context.Context, cfg Config) error {
<-ctx.Done() <-ctx.Done()
server.Close() server.Close()
}() }()
log.Println("listening on", cfg.Addr) log.Println("listening on", cfg.Addr, "w", string(cfg.fsDB))
if err := server.ListenAndServe(); err != nil && ctx.Err() == nil { if err := server.ListenAndServe(); err != nil && ctx.Err() == nil {
return err return err
} }