W8 done
This commit is contained in:
parent
f662d9933f
commit
cb0a0dee2b
11 changed files with 116895 additions and 0 deletions
31
w7/templates/mainPage.html
Normal file
31
w7/templates/mainPage.html
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Main page</title>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Smooch+Sans:wght@300;400;700&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="/css/styles.css">
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<section class="roomsSection">
|
||||
<h3>Available {{db.roomsCount}} rooms:</h3>
|
||||
<div class="rooms">
|
||||
{{#db.rooms}}
|
||||
<a class="roomItem" href="/room/{{id}}">
|
||||
Room {{id}}
|
||||
</a>
|
||||
{{/db.rooms}}
|
||||
{{^db.rooms}}
|
||||
<p><b>No rooms available!</b></p>
|
||||
{{/db.rooms}}
|
||||
</div>
|
||||
<button onclick="javascript:location = `/createRoom`">Create new room</button>
|
||||
</section>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
18
w7/templates/roomPage.html
Normal file
18
w7/templates/roomPage.html
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Room {{room.id}}</title>
|
||||
<link rel="stylesheet" href="/css/styles.css">
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
<script>
|
||||
const roomId = parseInt("{{room.id}}");
|
||||
</script>
|
||||
<script src="/js/socket.io.js"></script>
|
||||
<script src="/js/p5.js"></script>
|
||||
<script src="/js/app.js"></script>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue