-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
157 lines (149 loc) · 3.2 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
<!DOCTYPE html>
<html>
<head>
<title>Ripcord WOD</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="refresh" content="300">
<style>
* {
box-sizing: border-box;
}
:root {
--color-blue: #1376bc;
--color-accent: var(--color-blue);
--columns: 2;
--gap: 2vw;
}
html[style] body {
visibility: visible;
}
body {
background-color: black;
color: white;
display: flex;
flex-direction: column;
flex-wrap: wrap;
font-family: system-ui, sans-serif;
font-size: calc(10vw * var(--scale, 1));
gap: 1em var(--gap);
margin: 0;
max-height: calc(100vh - var(--gap));
padding: var(--gap);
visibility: hidden;
}
section {
width: calc((100vw - var(--gap) * (1 + var(--columns))) / var(--columns));
}
h2 {
color: var(--color-accent);
font-size: 0.75em;
font-weight: bold;
margin: 0;
}
ul {
list-style: none;
margin: 0 0 0 1em;
padding: 0;
}
li {
margin-top: 0.25em;
text-indent: -1em;
}
li:empty {
font-size: 0.4em;
}
</style>
<script>
const root = document.documentElement;
const prop = '--scale';
function isOverflown (element) {
return element.scrollHeight > element.clientHeight || element.scrollWidth > element.clientWidth;
}
function scalePage () {
if (!isOverflown(document.body)) {
return;
}
const scale = (root.style.getPropertyValue(prop) || 1) - 0.01;
root.style.setProperty(prop, scale);
scalePage()
}
function resize () {
root.style.removeProperty(prop);
scalePage();
}
function debounce (mainFunction, delay) {
let timer;
return function (...args) {
clearTimeout(timer);
timer = setTimeout(() => {
mainFunction(...args);
}, delay);
};
};
const debouncedResize = debounce(resize, 500);
window.addEventListener('load', scalePage);
window.addEventListener('resize', debouncedResize);
</script>
</head>
<body>
<section>
<h2>White Board (00-04)</h2>
<ul>
<li>Announcements</li>
<li>Workout brief</li>
</ul>
</section>
<section>
<h2>General Warm-up (04-08)</h2>
<ul>
<li>DYNAMIC WARM-UP | 4:00</li>
<li>2 sets:</li>
<li>:20 jumping jacks</li>
<li>:20 mountain climbers</li>
<li>:20 hollow rocks</li>
<li>:20 up-downs</li>
<li>:20 jumping squats</li>
</ul>
</section>
<section>
<h2>Specific Warm-up (08-29)</h2>
<ul>
<li>Rope Climbs 8:00</li>
<li></li>
<li>DEVILS PRESS | 10:00</li>
<li></li>
<li>MINI ROUND | 3:00</li>
<li>1 round:</li>
<li>1 rope climb</li>
<li>3 devils presses</li>
<li>– Use workout variations.</li>
</ul>
</section>
<section>
<h2>Bathroom break (29-32)</h2>
<ul>
<li>Break</li>
</ul>
</section>
<section>
<h2>WOD: WOD (32-55)</h2>
<ul>
<li>5 rounds for time:</li>
<li>2 rope climbs (15 ft)</li>
<li>10 devils presses (20/35 lb)</li>
<li>2 rope climbs</li>
<li>– Rest 2:00 between rounds.</li>
<li>– Use two DBs</li>
</ul>
</section>
<section>
<h2>Mobility (55-60)</h2>
<ul>
<li>STRETCHING | 3:00</li>
<li>1 set:</li>
<li>1:00 double-forearm stretch</li>
<li>1:00 seated hamstring stretch</li>
</ul>
</section>
</body>
</html>