-
Notifications
You must be signed in to change notification settings - Fork 2
/
dramabarsite.html
200 lines (188 loc) · 6.15 KB
/
dramabarsite.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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<!DOCTYPE html>
<html>
<head>
<title>Dramabar Settings</title>
<style>
:root{
font-size:20px;
font-family:Arial;
}
#nav li {
list-style: none;
float: left;
margin: 1rem 2.5rem;
flex: 1 1 auto;
}
#nav {
display: flex;
flex-wrap: wrap;
margin: 0 auto;
width: 80%;
background: #000000;
box-shadow: 0px 0px 4px rgba(0,0,0,0.55);
border-radius: 3px;
padding: 0;
}
#menu {
float: right;
margin-right: 12.5%;
margin-top: 2em;
}
#content {
margin-left: auto;
margin-right: auto;
width: 75%;
display: flex;
flex-wrap: wrap;
}
.subcontent {
position: relative;
flex: 1 1 15rem;
display: flex;
flex-direction: column;
padding-left: 3%;
padding-right: 3%;
}
.row {
flex: 1 1 auto;
justify-content: space-between;
display: flex;
}
.nav_text {
text-decoration: none;
color: #ffffff;
font-size: 1.5rem;
transition: all 0.25s;
}
.nav_text:hover {
transform: translate(1px,2px);
transition: all 0.15s;
display: inline-block;
color: #98C8FA;
}
label {
position: relative;
display: inline-block;
}
.row .tooltiptext {
visibility: hidden;
opacity: 0;
width: 10rem;
font-size: 0.9rem;
font-weight: normal;
transition: all 0.35s;
background-color: rgba(0, 0, 0, 0.85);
color: #ffffff;
text-align: center;
padding: 5px 4px;
border-radius: 3px;
position: absolute;
z-index: 1;
margin-top: -4px;
right: 110%;
}
.row:hover .tooltiptext {
visibility: visible;
opacity: 1;
transition-delay: 1s;
}
</style>
<script>
</script>
</head>
<body>
<ul id="nav">
<li><a class="nav_text" href="/home">Dramabar</a></li>
<li><a class="nav_text" href="https://metalab.at/wiki/Dramabar">Wikipage</a></li>
<li><a class="nav_text" href="https://github.com/Metalab/dramabar">Source on GitHub</a></li>
<li><a class="nav_text" href="/credits">Credits</a></li>
</ul>
<form action="/" method="POST" id="content">
<div class="subcontent">
<h2 style="text-align: center;">Colors:</h2>
<div class="row">
<label for="c_Happy">Happy Color:<span class="tooltiptext">Color for happy mood</span></label>
<input type="color" id="c_Happy" name="cH" value="#00FF00">
</div>
<div class="row">
<label for="c_Sad">Sad Color:<span class="tooltiptext">Color for sad mood</span></label>
<input type="color" id="c_Sad" name="cS" value="#FF0000">
</div>
<div class="row">
<label for="c_Cursor">Cursor Color:<span class="tooltiptext">Cursor color</span></label>
<input type="color" id="c_Cursor" name="cC" value="#FFFFFF">
</div>
</div>
<div class="subcontent">
<h2 style="text-align: center;">Speeds:</h2>
<div class="row">
<label for="s_Redfade">Redfade:<span class="tooltiptext">[ms]; Speed of Doomsday-red animation</span></label>
<input type="number" id="s_Redfade" name="sRf" value="10" max="60000" min="0">
</div>
<div class="row">
<label for="s_Rainbow">Rainbow:<span class="tooltiptext">[ms]; Speed of Rainbow animation</span></label>
<input type="number" id="s_Rainbow" name="sRb" value="15" max="60000" min="0">
</div>
<div class="row">
<label for="s_Button">Button Fading:<span class="tooltiptext">[ms]; Speed of Button Fading animation</span></label>
<input type="number" id="s_Button" name="sB" value="30" max="60000" min="0">
</div>
</div>
<div class="subcontent">
<h2 style="text-align: center;">Lightlevels:</h2>
<div class="row">
<label for="l_Redfade_UP">Redfade UP:<span class="tooltiptext">[PWM]; Upper border for Redfade brightness</span></label>
<input type="number" id="l_Redfade_UP" name="lRU" value="255" max="255" min="30">
</div>
<div class="row">
<label for="l_Redfade_LOW">Redfade LOW:<span class="tooltiptext">[PWM]; Lower border for Redfade brightness</span></label>
<input type="number" id="l_Redfade_LOW" name="lRL" value="30" max="255" min="0">
</div>
<div class="row">
<label for="l_Button_UP">Button UP:<span class="tooltiptext">[PWM]; Upper border for Button brightness</span></label>
<input type="number" id="l_Button_UP" name="lBU" value="255" max="255" min="0">
</div>
<div class="row">
<label for="l_Button_LOW">Button LOW:<span class="tooltiptext">[PWM]; Lower border for Button brightness</span></label>
<input type="number" id="l_Button_LOW" name="lBL" value="30" max="255" min="0">
</div>
</div>
<div class="subcontent">
<h2 style="text-align: center;">Button Logic:</h2>
<div class="row">
<label for="b_Button">Animate Buttons:<span class="tooltiptext">Turn button animations completely on or off</span></label>
<input type="checkbox" id="b_Button" name="bB" value="true">
</div>
<div class="row">
<label for="b_StopButton">Stop Button Animation:<span class="tooltiptext">Stop button animations during inactivity</span></label>
<input type="checkbox" id="b_StopButton" name="bSB" value="true" checked>
</div>
<div class="row">
<label for="b_ButtonInact">Inactivity Off:<span class="tooltiptext">Turns buttons off during inactivity</span></label>
<input type="checkbox" id="b_ButtonInact" name="bBIn" value="true" checked>
</div>
</div>
<div class="subcontent">
<h2 style="text-align: center;">Logic:</h2>
<div class="row">
<label for="t_Exp">Mood Expiration Time:<span class="tooltiptext">[min]; Time until mood gets reset one point</span></label>
<input type="number" id="t_Exp" name="tExp" value="60" max="70000" min="0">
</div>
<div class="row">
<label for="t_ButtonExp">Button Expiration Time:<span class="tooltiptext">[s]; How long buttons are inactive</span></label>
<input type="number" id="t_ButtonExp" name="tBExp" value="10" max="4000000" min="0">
</div>
<div class="row">
<label for="b_Debug">Debug Mode:<span class="tooltiptext">If debug mode should be turned on (Reduced cooldowns)</span></label>
<input type="checkbox" id="b_Debug" name="bDe" value="true">
</div>
</div>
<div class="subcontent" style="flex-basis: 100%; flex-flow: row; justify-content: flex-end; padding-top: 1.5rem; margin-top: 1.5rem; border-top: solid 2px black;">
<input style="width:130px;" type="submit" name="save" value="Save Settings">
</div>
</form>
<div class=subcontent" style="width:75%;margin:0.2em auto;">
<input style="width:130px;float:right;margin-right:3%;" type="button" onclick="location.href='/defaults';" value="Load Defaults"/>
</div>
</body>
</html>