forked from capnmidnight/Calla
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
94 lines (86 loc) · 3.22 KB
/
index.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, shrink-to-fit=0, initial-scale=1.0">
<meta name="keywords" content="peer-to-peer, networking, Web applications, WebRTC">
<title>Lozya: telebazar</title>
<script id="lozya-settings">
const JITSI_HOST = "lozyafun.jvns.ca",
MOVE_REPEAT = 0.125,
MOVE_TRANSITION_TIME = 0;
// TODO: These need to be user-configurable settings
let AUDIO_DISTANCE_MIN = 2,
AUDIO_DISTANCE_MAX = 10;
</script>
<link type="text/css" rel="stylesheet" href="stylesheets/general.css" />
<link type="text/css" rel="stylesheet" href="stylesheets/icons.css" />
<link type="text/css" rel="stylesheet" href="stylesheets/menu.css" />
<link type="text/css" rel="stylesheet" href="stylesheets/gui.css" />
</head>
<body>
<section id="main">
<div id="jitsi"></div>
<canvas id="frontBuffer"></canvas>
<div id="demo"><video src="videos/demo.webm" autoplay loop></video></div>
<div id="loginView">
<section id="intro">
<h1>Lozya</h1>
<form>
<label for="room" style="
grid-column: 1;
grid-row: 1">
Room name:
</label>
<input type="text" id="room" placeholder="(Required)" style="
grid-column: 2 / 4;
grid-row: 1" />
<label for="user" style="
grid-column: 1;
grid-row: 2">
User name:
</label>
<input type="text" id="user" placeholder="(Required)" style="
grid-column: 2 / 4;
grid-row: 2" />
<button type="button" id="connect" style="
grid-column: 3;
grid-row: 4">
Connect
</button>
</form>
<p>
Lozya gives you an avatar to walk around the room. Users very
close to you are set to full volume. Users a little far away
have their volume scaled down. Users too far away to care about
are rendered with zero volume.
</p>
</section>
</div>
</section>
<section id="menu" class="menu-open">
<ul>
<li>
<a id="menuControl">
<span class="icon icon-shrink">
<span class="accessibility-text">Toggle menu visibility.</span>
</span>
</a>
</li>
<li>
<a href="https://github.com/capnmidnight/lozya" target="_blank" rel="noopener">
<span class="icon icon-github" title="Follow Lozya on Github">
<span class="accessibility-text">Follow Lozya on Github</span>
</span>
</a>
</li>
</ul>
</section>
<script src="scripts/jitsi-meet-external-api.js"></script>
<script type="module">
import { jitsiClient } from "./scripts/jitsihax-client.js";
import { Game } from "./scripts/game.js";
const game = new Game(jitsiClient);
</script>
</body>
</html>