-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
219 lines (211 loc) · 7.69 KB
/
index.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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Daily Log</title>
<style>
/*
* { outline: solid 0.10rem rgba(255, 113, 113, 0.5); }
*:hover {
outline: solid 0.10rem rgba(166, 255, 57, 0.5);
}
*/
:root {
/* CSS - Color */
--t-bg: #d3d3d3; /* Tasks */
--m-bg: #a9a9a9; /* Menu */
--mb-bg: #d3d3d3; /* Menu Button*/
--p-bg: #0008; /* Background Popup (Alpha: 50%) */
--p-box: #ffffff; /* Popup Box (alpha: 100%) */
--p-ob: #4873ff; /* Popup Ok button */
--p-cb: #9fb1ee; /* Popup Cancel button */
--r-p: #3bd1ff; /* Run-button Primary */
--r-p2: #05c5ff; /* Run-button Primary hover */
--r-s: #ffffff; /* Run-button Secondary*/
--s-p: #ffb5b5; /* Stop-button Primary */
--s-p2: #ff7c7c; /* Stop-button Primary hover */
--s-s: #ffffff; /* Stop-button Secondary*/
}
* {
font-family: 'consolas';
}
.list > div {
display: block;
width: calc(100% - (2 * 10px));
border: 0px transparent;
border-radius: 10px;
/* padding: 10px; */
background: var(--t-bg);
margin: 5px 10px;
overflow:hidden;
}
.list > div > span {
width: 50%;
display: inline-block;
margin: 10px 10px;
}
.list > div > button {
border: 0px solid transparent;
/* border: 1px solid lightgrey; */
/* border-radius: 10px; */
font-size: 15px;
width: 100px;
/* background: transparent; */
/* margin-right: 20px; */
height: 40px;
}
/* .list > div > button:hover {
border: 1px solid black;
} */
.button-run:hover {
--light: var(--r-p2);
}
.button-run {
animation: progress 1s linear;
animation-iteration-count: infinite;
--light: var(--r-p);
--white: var(--r-s);
background: repeating-linear-gradient(
45deg,
var(--light),
var(--light) 10px,
var(--white) 10px,
var(--white) 20px
);
background-size: 28px 28px;
}
.button-stop:hover{
--light: var(--s-p2);
}
.button-stop {
/* animation: progress 1s linear; */
/* animation-iteration-count: infinite; */
/* gray */
/* --light: rgb(189, 189, 189); */
/* red */
--light: var(--s-p);
--white: var(--s-s);
background: repeating-linear-gradient(
45deg,
var(--light),
var(--light) 10px,
var(--white) 10px,
var(--white) 20px
);
background-size: 28px 28px;
}
@keyframes progress {
from {background-position-x: 0px;}
to {background-position-x: 28px;}
}
div.menu {
display: inline-flex;
width: calc(100% - (2 * 10px));
border: 0px transparent;
border-radius: 10px;
background: var(--m-bg);
margin: 5px 10px;
overflow: hidden;
}
div.menu > button {
border-top: 0px transparent;
border-right: 0px transparent;
border-bottom: 0px transparent;
border-left-color: black;
border-left-style: outset;
border-left-width: 1px;
background: var(--mb-bg);
font-size: 18px;
/* height:40px; */
padding:10px;
min-width: 100px;
}
div.menu > button:first-child {
border-top-left-radius: 10px;
border-bottom-left-radius: 10px;
border-left: 0px transparent;
}
/* #region Popup */
div.popup {
position: fixed;
top:0px;
left:0px;
width:100%;
height: 100%;
background: var(--p-bg);
}
div.popup > .box {
/* --height: 20%; */
--width: max(80%,400px);
display: inline-block;
/* height: var(--height); */
width: var(--width);
background: var(--p-box);
/* margin:auto; */
position: relative;
/* top: calc(50% - (var(--height) / 2) - 20px); */
top: 50%;
left: calc(50% - (var(--width) / 2) - 20px);
padding: 20px;
border-radius: 20px;
transform: translateY(-50%);
}
div.popup > .box > .title {
text-align: center;
}
div.popup > .box > .text {
text-align: center;
width: calc(100% - (2 * 7px));
padding: 2px 5px;
font-size: 16px;
}
div.popup > .box > .ok_button {
--color: var(--p-ob);
border: 0px transparent;
background: var(--color);
float:right;
margin:5px;
border-radius: 10px;
font-size: 18px;
}
div.popup > .box > .cancel_button {
--color: var(--p-cb);
border: 0px transparent;
background: var(--color);
float:right;
margin:5px;
border-radius: 10px;
font-size: 18px;
}
/* #endregion Popup */
body {
margin: 0px;
background: #222;
}
</style>
</head>
<body>
<div class="popup" style="visibility: hidden;" id="popup">
<div class="box">
<h3 class="title">Titel</h3>
<input type="text" class="text" value="value"><br>
<input type="button" class="cancel_button" value="Cancel">
<input type="button" class="ok_button" value="Apply">
</div>
</div>
<div class="menu">
<button onclick="Add()">Add</button>
<button onclick="RemoveAll()">Remove All</button>
</div>
<div class="list">
<!-- <div class="noDelete"> --> <!-- = baseElement -->
<!-- <span>Pause</span>
<input type="hidden" value="0">
<button class="time">00:00:00</button>
</div> -->
</div>
<script src="./script.js" type="text/javascript"></script>
</body>
</html>