-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
275 lines (254 loc) · 7.26 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
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
<!doctype html>
<html lang="de" data-bs-theme="light">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Pizza Teigrechner</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/lux/bootstrap.min.css"
rel="stylesheet">
<link rel="icon"
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🍕</text></svg>">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"></script>
<script src="./theme.js"></script>
<script src="./main.js"></script>
</head>
<body onload="init()">
<div id="pizza-container"></div>
<div class="container-md my-5">
<div class="header-container">
<div class="header-title">
<h1>Pizza Teigrechner</h1>
</div>
<div id="toggle-rain-button" class="header-navElement toggle-rain-button">
<span class="toggle-rain-button-label--disable">Pizzaregen stoppen</span>
<span class="toggle-rain-button-label--enable">Pizzaregen starten</span>
</div>
<div class="header-navElement color-mode-button">
<button title="Toggle Light / Dark Mode" onclick="toggleColorScheme()" class="pizza-button">
<img id="pizza-image" src="images/pizza_toggle_color_scheme.png"
alt="Pizza icon for button Toggle Light / Dark Mode"/>
</button>
</div>
</div>
<table class="col-sm-8 col-sm-4 px-0 my-2">
<tr>
<td>
<label for="pizza-diameter" class="form-label">Durchmesser der Pizza (cm)</label>
</td>
<td>
<div class="input-group input-group-sm">
<button class="btn" type="button"
onclick="changeInputValue('pizza-diameter', -1)"
>-
</button>
<input type="text" min="10" max="100" id="pizza-diameter" class="form-control">
<button class="btn" type="button"
onclick="changeInputValue('pizza-diameter', 1)"
>+
</button>
</div>
</td>
</tr>
<tr>
<td>
<label for="pizza-amount" class="form-label">Anzahl der Pizzen</label>
</td>
<td>
<div class="input-group input-group-sm">
<button class="btn" type="button"
onclick="changeInputValue('pizza-amount', -1)"
>-
</button>
<input type="text" min="1" max="100" id="pizza-amount" class="form-control">
<button class="btn" type="button"
onclick="changeInputValue('pizza-amount', 1)"
>+
</button>
</div>
</td>
</tr>
<tr>
<td>
<label for="flour" class="form-label">Mehl Typo 00 (g)</label>
</td>
<td>
<input id="flour" class="form-control" readonly>
</td>
</tr>
<tr>
<td>
<label for="water" class="form-label">Wasser (ml)</label>
</td>
<td>
<input id="water" class="form-control" readonly>
</td>
</tr>
<tr>
<td>
<label for="yeast" class="form-label">Hefe (g)</label>
</td>
<td>
<input id="yeast" class="form-control" readonly>
</td>
</tr>
<tr>
<td>
<label for="salt" class="form-label">Salz (g)</label>
</td>
<td>
<input id="salt" class="form-control" readonly>
</td>
</tr>
<tr>
<td>
<label for="oil" class="form-label">Olivenöl (EL)</label>
</td>
<td>
<input id="oil" class="form-control" readonly>
</td>
</tr>
</table>
<div class="my-2">
<h5>Tipps:</h5>
<ul>
<li>Ein Hefewürfel hat 42g</li>
<li>Ein gehäufter TL Salz hat 6g</li>
<li>Den Teig kann man über dem Backofen gehen lassen, wenn dieser vorwärmt</li>
<li><span id="beer"></span> kaltstellen nicht vergessen</li>
</ul>
</div>
<div class="my-2">
<h5>Zubereitung:</h5>
<p>
Die Hefe und eine Prise Zucker in Wasser auflösen und 5min gehen lassen. Das Mehl in eine
Schüssel geben und eine Kuhle in die Mitte drücken. Nun das Öl in die Kuhle gießen und das
Salz dazu geben. Anschließend das Hefe-Wasser-Gemisch dazugeben.
Jetzt muss alles gut durch von Hand geknetet werden. Am besten beginnt man mit den Fingern das
Salz aufzulösen und schrittweise das Mehl in die Flüssigkeit zu rühren.
Am Ende eine Stunde gehen lassen und vor dem Backen am besten schon in <span
id="dough"></span> schwere Teiglinge formen. Bei maximaler Temperatur auf einem heißen Pizzastein ca. 7min backen.
</p>
</div>
</div>
</body>
</html>
<style>
.pizza {
position: fixed;
top: -100px; /* Start above the screen */
animation: fall linear infinite;
user-select: none; /* Disable text selection */
transition: 1.5s cubic-bezier(.17, .67, 0, 1.34); /* Smooth explosion */
}
.pizza--disabled {
animation-iteration-count: 1;
}
#pizza-container {
z-index: 1;
}
.explode {
transform: scale(2); /* Scale the pizza up to simulate explosion */
opacity: 0; /* Fade the pizza out */
transition: transform 0.5s ease-out, opacity 0.5s ease-out; /* Smooth transition */
}
/* Keyframes to animate the falling pizzas */
@keyframes fall {
0% {
transform: translateY(-100px) rotate(0deg);
opacity: 1;
}
90% {
opacity: 1;
}
100% {
transform: translateY(100vh) rotate(360deg);
opacity: 0;
}
}
* {
cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='48' viewport='0 0 100 100' style='fill:black;font-size:24px;'><text y='50%'>🍺</text></svg>") 16 0, auto;
}
body {
position: relative;
z-index: 10;
}
.explosion {
position: absolute;
width: 75%;
height: 75%;
pointer-events: none;
.particle {
position: absolute;
width: 5px;
height: 5px;
border-radius: 25%;
animation: pop 1s reverse forwards;
}
}
.pizza-button {
background-color: transparent;
background-repeat: no-repeat;
border: none;
overflow: hidden;
outline: none;
}
#pizza-image {
height: 2em;
width: auto;
margin-right: 20px;
}
.flip-x {
transform: scaleX(-1);
}
@keyframes pop {
from {
opacity: 0;
}
to {
top: 50%;
left: 50%;
opacity: 1;
}
}
.header-container {
width: 100%;
display: flex;
flex-flow: row wrap;
justify-content: end;
align-items: baseline;
}
.header-title {
flex: 1 1 auto;
}
.header-navElement {
flex: 0 0 min-content;
position: relative;
margin-right: 10px;
}
.header-navElement:not(:last-child)::after {
content: "|";
display: block;
position: absolute;
right: -5px;
bottom: 0;
}
.toggle-rain-button {
flex: 0 0 min-content;
font-size: 60%;
border-bottom: 1px solid;
}
.toggle-rain-button {
display: block;
}
.toggle-rain-button-label--enable {
display: none;
}
.toggle-rain-button.active .toggle-rain-button-label--disable {
display: none;
}
.toggle-rain-button.active .toggle-rain-button-label--enable {
display: block;
}
</style>