-
Notifications
You must be signed in to change notification settings - Fork 1
/
jgarden.html
97 lines (87 loc) · 3.13 KB
/
jgarden.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
95
96
97
<!DOCTYPE HTML>
<html>
<!--
This code was taken from
https://www.html5canvastutorials.com/advanced/html5-canvas-blooming-flowers-effect/
-->
<head>
<meta charset="UTF-8">
<title>WorldViews Flower Garden</title>
<link rel="stylesheet" type="text/css" href="css/garden.css">
<style type="text/css">
.webView {
width: 100%;
height: 500px;
}
.projectView {
padding: 10px;
width: 100%;
xheight: 500px;
}
.instagramView {
width: 240px;
height: 240px;
}
.rightPanel {
height: 640px;
overflow-y: auto;
overflow-x: hidden;
}
</style>
<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>
<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>
</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;
var gjitsi;
$(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();
};
jgarden = new GardenJitsi(gtool);
});
</script>
</body>