-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFigit-Spinner Webpage.html
60 lines (54 loc) Β· 3.94 KB
/
Figit-Spinner Webpage.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
ο»Ώ<!--
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-->
<html>
<head>
<script src="https://www.gstatic.com/firebasejs/3.1.0/firebase.js"></script>
</head>
<script src="applicationForFigitSpinnerServer.js"></script>
<center>
<input type="button" onclick="button()" value="Begin Feed" />
<h1>The current speed is: <span id="myText"></span> cycles per second.</h1>
<h1>The max speed is: <span id="maxS"></span> cycles per second.</h1>
<h1>The max acceleration is: <span id="maxA"></span> cycles per second per second.</h1>
<input type="button" onclick="on()" value="On" />
<input type="button" onclick="off()" value="Off" />
<h3> All software and hardware designed and created by Liam Price 2019 </h3>
<h3> LinkedIn: www.linkedin.com/in/liamisprice/</h3>
<h3> FaceBook: www.facebook.com/liamisprice </h3>
<h3> Youtube: www.youtube.com/channel/UCiBew_QQnG5jUlY5C1-NCqw</h3>
<h3> GitHub: https://github.com/LeehamElectronics</h3>
</center>
</body>
<script>
<!--
var testvar
var maxSVar
var maxAVar
function button() {
movement.on('value', snap => testvar = (snap.val()));
document.getElementById("myText").innerHTML = testvar;
maxSpeed.on('value', snap => maxSVar = (snap.val()));
document.getElementById("maxS").innerHTML = maxSVar;
maxAcceleration.on('value', snap => maxAVar = (snap.val()));
document.getElementById("maxA").innerHTML = maxAVar;
setTimeout(function () { button(); }, 800);
}
function on() {
FS.set({
"firebaseActivationVar": 3,
});
}
function off() {
FS.set({
"firebaseActivationVar": 1,
});
}
//-->
</script>
</html>