-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
55 lines (49 loc) · 2.58 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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>STREEEEETCH</title>
<script>
function displayRandomItems(listLeg, listArm) {
var randomIndex1 = Math.floor(Math.random() * listLeg.length);
var randomItem1 = listLeg[randomIndex1];
document.getElementById("outputLeg").textContent = randomItem1;
var randomIndex2 = Math.floor(Math.random() * listArm.length);
var randomItem2 = listArm[randomIndex2];
document.getElementById("outputArm").textContent = randomItem2;
}
// Call the function on page load
window.onload = function() {
var listLeg = ['90/90', 'Down Dog', 'Knee to Chest', 'Lie Down / knee to chest, extend one leg', 'pigeon', 'knee over toe lunge', 'extended lunge', 'toe touch pulse and hold', 'couch stretch', 'cossack squats', 'pancake good morning', 'good morning', 'straight leg march/swing', 'hip CARs'];
var listArm = ['Crab Hold / Rock', 'Down Dog', 'Atranik band exercises', 'kettlebell passaround', 'kettlebell plank passthru', 'prayer stretch', 'Scorpions', 'IYT/IWT', 'shoulder CARs', '45deg band stretch, slow release'];
displayRandomItems(listLeg, listArm);
};
</script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap" rel="stylesheet">
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
<link rel="manifest" href="site.webmanifest">
<link rel="mask-icon" href="safari-pinned-tab.svg" color="#5bbad5">
<meta name="theme-color" content="#151515">
<style>
body {font-family: "Figtree", sans-serif; max-width: 600px; margin: 0 auto; padding: 60px 20px; background: #151515; color: #ededed;}
h1, h2 {font-weight: 500; text-transform: lowercase; margin-top: 0.25em;}
hr {opacity: 0.3;}
p {margin-top: 2em; margin-bottom: 0.5em;}
a.button {text-decoration: none; font-size: 60px; color: #999;}
</style>
</head>
<body>
<h2>Streeeeeetch!</h2>
<hr/>
<p>Legs & Hips</p>
<h1 id="outputLeg"></h1>
<p>Shoulders</p>
<h1 id="outputArm"></h1>
<a class="button" href="javascript: location. reload();">↺</a>
</body>
</html>