Compare commits
No commits in common. "a166eecd60c72265bc4d4a00ab42a666afab102c" and "022186964d1194f765865bede7c282d47db71c46" have entirely different histories.
a166eecd60
...
022186964d
@ -524,9 +524,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (localStorage.getItem('last-name') && localStorage.getItem('last-room')) {
|
if (localStorage.getItem('last-name') && localStorage.getItem('last-room')) {
|
||||||
document.getElementById('name').value = localStorage.getItem('last-name');
|
let rejoin = document.createElement('button');
|
||||||
document.getElementById('room').value = localStorage.getItem('last-room');
|
rejoin.id = 'rejoin';
|
||||||
document.getElementById('gm').checked = localStorage.getItem('last-gm') === 'true';
|
rejoin.style.alignSelf = 'center';
|
||||||
|
rejoin.style.marginTop = '20px';
|
||||||
|
rejoin.style.marginRight = '20px';
|
||||||
|
rejoin.innerHTML = 'Rejoin as <strong>' + (localStorage.getItem('last-gm') === 'true' ? 'GM ' : '') + localStorage.getItem('last-name') + '</strong> in <strong>' + localStorage.getItem('last-room') + '</strong> <i class="fa-solid fa-right-to-bracket"></i>'
|
||||||
|
rejoin.onclick = () => {
|
||||||
|
document.getElementById('name').value = localStorage.getItem('last-name');
|
||||||
|
document.getElementById('room').value = localStorage.getItem('last-room');
|
||||||
|
document.getElementById('gm').checked = localStorage.getItem('last-gm') === 'true';
|
||||||
|
start();
|
||||||
|
}
|
||||||
|
document.getElementById('start-container').appendChild(rejoin)
|
||||||
}
|
}
|
||||||
|
|
||||||
function configurePopover() {
|
function configurePopover() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user