-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
87 lines (71 loc) · 2.7 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<!-- This is my favourite font. See http://www.opensans.com -->
<link
href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,400italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/workout.css">
<!-- Lodash is a handy little utility library. See https://lodash.com -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.8.0/lodash.min.js"></script>
<!-- The core React library -->
<script src="https://fb.me/react-0.13.2.js"></script>
<!-- In-browser JSX transformer, remove when pre-compiling JSX. -->
<script src="https://fb.me/JSXTransformer-0.13.2.js"></script>
<script type="text/jsx" src="src/workout-helper.js"></script>
<!-- This is for icons. See http://fortawesome.github.io/Font-Awesome/ -->
<link rel="stylesheet"
href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
</head>
<body>
<h1>Workouts, Yeah!</h1>
<p>These are some workouts I like to do. Give them a try, or change them to
suit yourself.</p>
<h2>Easy Mode</h2>
<p>This workout is for when I just do not feel like doing anything. It is so
easy that I have no excuse not to do it.</p>
<workout id="easy-mode">
Easy Mode
</workout>
<h2>Warm Up</h2>
<p>This is a quick warmup to do before a heavier workout, or when I only have
a few minutes to spare.</p>
<workout id="warm-up">
Warm Up
</workout>
<h2>Extreme</h2>
<p>This workout really gets my heart working.</p>
<workout id="extreme">
Extreme
</workout>
<script type="text/jsx">
var easyModeIntervals = [
{ exercise: "Walk on the spot", time: 7 },
{ exercise: "Clap your hands", time: 4 }
];
React.render(
<WorkoutHelper name="Easy Mode" intervals={easyModeIntervals}></WorkoutHelper>,
document.getElementById('easy-mode')
);
var warmUpIntervals = [
{ exercise: "Jog on the spot", time: 20 },
{ exercise: "Fast punches", time: 10 },
{ exercise: "Star jumps", time: 15 }
];
React.render(
<WorkoutHelper name="Warm Up" intervals={warmUpIntervals}></WorkoutHelper>,
document.getElementById('warm-up')
);
var extremeIntervals = [
{ exercise: "High knees", time: 90 },
{ exercise: "Burpees", time: 30 },
{ exercise: "Mountain climbers", time: 45 },
{ exercise: "Lunges", time: 25 }
];
React.render(
<WorkoutHelper name="Extreme" intervals={extremeIntervals}></WorkoutHelper>,
document.getElementById('extreme')
);
</script>
</body>
</html>