+ thread: meow
+
+
+
+
diff --git a/client/app.js b/client/app.js index 5943c18..21fa4fc 100644 --- a/client/app.js +++ b/client/app.js @@ -18,8 +18,6 @@ function chooseThread() { else document.getElementById('msginput').classList.add('hidden'); switchTab(document.getElementById(this.tab)); - if (this.tab === 'spacetab') - loadSpace(); } function switchTab(tab) { @@ -39,13 +37,13 @@ function addMember() { const name = document.getElementById('membername').value; window.threadmembers.push(name); document - .getElementById('memberlist') + .getElementById('newmembers') .appendChild(html.node`
${name}
`); document.getElementById('membername').value = ''; } -async function createThread(e) { - e.preventDefault(); +async function createThread(event) { + event.preventDefault(); let name = document.getElementById('newthreadname').value; if (!name) { document.getElementById('nameempty').classList.remove('hidden'); @@ -112,42 +110,46 @@ function newThread() { let form = document.getElementById('createthread'); if (form) { form.remove(); + document.getElementById('createseparator').remove(); document.getElementById('newthread').textContent = 'create'; } else { window.threadmembers = [window.name]; - document.getElementById('home').insertAdjacentElement('afterend', html.node` - - `); + document.getElementById('home') + .insertAdjacentElement('afterend', html.node` +