-
Notifications
You must be signed in to change notification settings - Fork 1
/
garden.html
75 lines (68 loc) · 2.78 KB
/
garden.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
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>WorldViews Flower Garden</title>
<link rel="stylesheet" type="text/css" href="css/garden.css">
</head>
<body>
<div id="gardenDiv" style="width: 100%; height: 100%">
<div id="gardenPanel"
style="width: 50%; height: 100%; float: left; background: green; position: relative">
<canvas id="flowerCanvas"></canvas>
<div id="controls">
<span id="buttons" class="buttons">
<button id="login">login</button>
<button id="save">save</button>
<button id="jitsi">jitsi</button>
<span id="userInfo">null</span>
</span>
<span id="canvasStat" class="stats">stats</span>
</div>
</div>
<div id="rightPanel" style="margin-left: 50%; height: 100%; " class="rightPanel">
<div id="projectView" class="projectView" style="width: 100%;">
</div>
<div id="instagramView" class="instagramView" style="width: 100%; height: 100%">
</div>
</div>
</div>
<script src="js/libs/jquery-3.1.0.min.js"></script>
<script src="js/libs/socket.io-1.4.5.js"></script>
<script src="js/libs/sprintf.js"></script>
<script src="js/CanvasTool.js"></script>
<script src="js/GardenTool.js"></script>
<script src="js/Garden.js">d</script>
<script src="js/Flower.js"></script>
<script src="js/util.js"></script>
<script src="js/QuireClient.js"></script>
<script src="js/libs/jquery.instagramFeed.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.15.5/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.15.5/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.15.5/firebase-database.js"></script>
<script src="js/libs/paho-mqtt.js"></script>
<script src="js/GardenMQTT.js"></script>
<script src='https://meet.jit.si/external_api.js'></script>
<script src="js/GardenJitsi.js"></script>
<script src="js/MUSEControl.js"></script>
<script src="js/Display.js"></script>
<script>
var gtool;
var garden;
$(document).ready(function () {
gtool = new GardenTool("flowerCanvas", { numStartupFlowers: 0, maxNumFlowers: 200 });
gtool.initFirebase();
gtool.start();
gtool.setView(0, 0, 800);
var gardenName = getParameterByName("garden");
if (gardenName) {
var gardenURL = sprintf("gardens/%s.json", gardenName)
garden = gtool.loadGardenFile(gardenURL);
}
else {
garden = gtool.loadFromFirebase();
}
});
</script>
</body>
</html>