-
Notifications
You must be signed in to change notification settings - Fork 1
/
taiko.html
127 lines (114 loc) · 4.62 KB
/
taiko.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>WorldViews Flower Garden</title>
<link rel="stylesheet" type="text/css" href="css/garden.css">
<style>
#taikoDiv {
top: 10px;
left: 10px;
right: 10px;
position: absolute
}
#midiControl {
border-style: none;
border-width: 2px;
border-color: red;
xwidth: 90%;
height: 200px;
}
</style>
</head>
<body>
<div id="gardenDiv" style="width: 100%; height: 100%">
<div id="gardenPanel" style="width: 100%; height: 100%; float: left; background: green; position: relative">
<canvas id="flowerCanvas" style="height:100%"></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 id="taikoDiv">
Kuchi Shoga: <input style="width: 95%" id="kuchiShoga" type="text" value="don don doko don"><br>
<button id="ff1">Fast and Furious 1</button>
<button id="ff2">Fast and Furious 2</button>
<button id="matsuri">Matsuri</button>
<div id="midiControl">
</div>
</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>
<!-- Beginning of midi scripts -->
<!-- shims -->
<script src="/rhythm/wmb/Base64.js"></script>
<script src="/rhythm/wmb/Base64binary.js"></script>
<script src="/rhythm/wmb/WebAudioAPI.js"></script>
<!-- midi.js package -->
<script src="/rhythm/wmb/audioDetect.js"></script>
<script src="/rhythm/wmb/gm.js"></script>
<script src="/rhythm/wmb/loader.js"></script>
<script src="/rhythm/wmb/plugin.audiotag.js"></script>
<script src="/rhythm/wmb/plugin.webaudio.js"></script>
<script src="/rhythm/wmb/plugin.webmidi.js"></script>
<script src="/rhythm/wmb/player.js"></script>
<!-- utils -->
<script src="/rhythm/wmb/dom_request_xhr.js"></script>
<script src="/rhythm/wmb/dom_request_script.js"></script>
<!-- includes -->
<script src="/rhythm/wmb/timer.js"></script>
<!-- End of midi scripts -->
<script src="/rhythm/js/RhythmTool.js"></script>
<script src="/rhythm/js/DynObj/DynamicObject.js"></script>
<script src="/rhythm/js/DynObj/DynamicObjectDB.js"></script>
<script src="/rhythm/js/MidiTool.js"></script>
<script src="/rhythm/js/SoundPlayer.js"></script>
<script src="/rhythm/js/RhythmScorer.js"></script>
<!--
<script src="rhythm/js/CanvasTool.js"></script>
-->
<script src="/rhythm/js/RhythmCanvasGUI.js"></script>
<script src="/rhythm/js/GamePad.js"></script>
<script src="js/MidiBox.js"></script>
<script src="/rhythm/js/MidiPlayTool.js"></script>
<script src="https://unpkg.com/@tonejs/midi"></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", "taikogarden");
var gardenURL = sprintf("gardens/%s.json", gardenName)
garden = gtool.loadGardenFile(gardenURL);
});
</script>
</body>
</html>