Добавил функцию удаления

This commit is contained in:
2020-09-23 02:35:12 +03:00
parent c0e3742fe4
commit fdd01fd7a8
7 changed files with 167 additions and 16 deletions

View File

@@ -8,17 +8,20 @@
window.location.href = url;
}
let id;
function connect() {
const url=`http://localhost:3000/room/?id=${id}`;
window.location.href = url;
}
</script>
<svelte:head>
<title>Varian.cc</title>
<title>Варианты</title>
</svelte:head>
<greeting>
<h1>varian.cc</h1>
<h1>Варианты</h1>
<div class="startbtns">
<div>
<h2>Создать работу</h2>
@@ -47,7 +50,7 @@
<div class="inputs">
<div>
Код подключения:<br>
<input type="text" size="45" placeholder="43d0505c-d695-4323-9140-5d7744ec95e7">
<input type="text" size="45" placeholder="43d0505c-d695-4323-9140-5d7744ec95e7" bind:value={id}>
</div>
<input type="button" value="Подключиться" on:click={connect}>
</div>