-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html.cpp
97 lines (81 loc) · 1.71 KB
/
index.html.cpp
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
#include <pgmspace.h>
char index_html[] PROGMEM = R"=====(
<!DOCTYPE html>
<html lang='en'>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
<meta name='viewport' content='width=device-width' />
<title>WS2812FX Ctrl</title>
<script type='text/javascript' src='main.js'></script>
<style>
* {
font-family:sans-serif;
margin:0;
padding:0;
}
body {
width:100%;
max-width:675px;
background-color:#202020;
}
h1 {
width:65%;
margin:25px 0 25px 25%;
color:#454545;
text-align:center;
}
#colorbar {
float:left;
}
#controls {
width:65%;
display:inline-block;
padding-left:5px;
}
ul {
text-align:center;
}
ul#mode li {
display:block;
}
ul#brightness li, ul#speed li, ul#auto li {
display:inline-block;
width:30%;
}
ul li a {
display:block;
margin:3px;
padding:10px 5px;
border:2px solid #454545;
border-radius:5px;
color:#454545;
font-weight:bold;
text-decoration:none;
}
ul li a.active {
border:2px solid #909090;
color:#909090;
}
</style>
</head>
<body>
<h1>WS2812FX Control</h1>
<canvas id='colorbar' width='75' height='1080'></canvas>
<div id='controls'>
<ul id='mode'></ul>
<ul id='brightness'>
<li><a href='#' class='b' id='-'>☼</a></li>
<li><a href='#' class='b' id='+'>☀</a></li>
</ul>
<ul id='speed'>
<li><a href='#' class='s' id='-'>−</a></li>
<li><a href='#' class='s' id='+'>+</a></li>
</ul>
<ul id='auto'>
<li><a href='#' class='a' id='-'>■</a></li>
<li><a href='#' class='a' id='+'>►</a></li>
</ul>
</div>
</body>
</html>
)=====";