Skip to content

Commit 56c0b72

Browse files
authored
Update UFOAdmin.html
1 parent 7285aa9 commit 56c0b72

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

ufocontrol/resources/UFOAdmin.html

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
<button id="Reset">Reset UFO</button>
1919
<button id="SetTop">Set TOP</button>
2020
<button id="SetBottom">Set Bottom</button>
21+
<br>
22+
<button id="KnightRider">Knight Rider</button>
23+
<button id="Steps">Steps</button>
24+
2125

2226
<script>
2327
function getUFOURL() {
@@ -38,16 +42,23 @@
3842
callUFO("/api?top_init=0&bottom_init=0");
3943
});
4044

41-
$("#SetTop").click(function () {
45+
$("#SetTop").click(function () {
4246
var color = $('#TopColor').val();
4347
callUFO("/api?top_init=1&top_bg=" + color);
4448
});
4549

46-
$("#SetBottom").click(function () {
50+
$("#SetBottom").click(function () {
4751
var color = $('#BottomColor').val();
4852
callUFO("/api?bottom_init=0&bottom_bg=" + color);
4953
});
50-
</script>
54+
55+
$("#Steps").click(function () {
56+
// Visualizing Steps Statistics from Andi (Blue) and his girlfriend (Yellow)
57+
// Top ROW: How far away are both of us on our daily goal. Daily goal is 10000. All of us have 7 LEDs to visualize. We keep LED 0 black
58+
// Bottom ROW: Who is currently winning the Average Day Challenge. Visualizing current status of each and morphing to current lead
59+
callUFO("/api?top_init=1&top_bg=000000&top=1|1|0000FF|7|3|FFFF00&bottom_init=1&bottom=0|8|0000FF|8|7|FFFF00&bottom_whirl=100&bottom_bg=0000FF&bottom_morph=1000|5" + color);
60+
});
61+
</script>
5162

5263
</body>
53-
</html>
64+
</html>

0 commit comments

Comments
 (0)