Reopen a closed vote until its results are shown; check mark in the center mark and on the phone; vote title during enrollment; projector opens in a window
This commit is contained in:
@@ -43,3 +43,10 @@ for (const [btn, input] of [["#copy-admin", "#admin-link"], ["#copy-screen", "#s
|
||||
catch { $(input).select(); }
|
||||
});
|
||||
}
|
||||
|
||||
// a real window, not a tab: it can be dragged onto the projected display and put full screen there
|
||||
$("#go-screen").addEventListener("click", (e) => {
|
||||
const w = window.open($("#go-screen").href, "_blank", "popup,width=1280,height=720");
|
||||
// blocked popup: the plain link still opens a tab
|
||||
if (w) { w.opener = null; e.preventDefault(); }
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user