Added footer, added radio buttons for single option polls, fixed voting bug

This commit is contained in:
2021-04-04 12:04:00 +02:00
parent 50750c6808
commit 44d0940e23
7 changed files with 61 additions and 16 deletions

View File

@ -3,7 +3,10 @@ window.addEventListener('DOMContentLoaded', () => {
for (const el of document.querySelectorAll('.option input[type=checkbox]')) {
el.onclick = updateVotesRemaining;
}
document.querySelector('.success-banner').onclick = hideBanner;
const banner = document.querySelector('.success-banner');
if (banner) {
banner.onclick = hideBanner;
}
});
function displayLocalTimestamps() {