-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathexample.html
29 lines (23 loc) · 1002 Bytes
/
example.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!DOCTYPE html>
<html lang='en' class=''>
<head>
<meta charset='UTF-8'>
<title>Multiplayer demo</title>
<meta name="robots" content="noindex">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.17.2/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.17.2/firebase-firestore.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.17.2/firebase-database.js"></script>
<script src="multiplayer.js"></script>
</head>
<body>
<center>
<h1>This is a simple demo, once page is loaded you should see a random name being added to the bottom right side of your screen, this is you, once people join the same page you will see more names being added and cursors appearing on page as a random colored circle.</h1>
</center>
<script>
$(document).ready(function() {
multiplayerjs.play();
});
</script>
</body>
</html>