forked from hmqcnoesy/zwofactory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
192 lines (184 loc) · 12.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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>zwofactory.com - an offline Zwift workout editor</title>
<link rel="stylesheet" href="/site.css" /><link rel="apple-touch-icon-precomposed" sizes="57x57" href="/img/apple-touch-icon-57x57.png" />
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/img/apple-touch-icon-114x114.png" />
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="/img/apple-touch-icon-72x72.png" />
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/img/apple-touch-icon-144x144.png" />
<link rel="apple-touch-icon-precomposed" sizes="60x60" href="/img/apple-touch-icon-60x60.png" />
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="/img/apple-touch-icon-120x120.png" />
<link rel="apple-touch-icon-precomposed" sizes="76x76" href="/img/apple-touch-icon-76x76.png" />
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="/img/apple-touch-icon-152x152.png" />
<link rel="icon" type="image/png" href="/img/favicon-196x196.png" sizes="196x196" />
<link rel="icon" type="image/png" href="/img/favicon-96x96.png" sizes="96x96" />
<link rel="icon" type="image/png" href="/img/favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="/img/favicon-16x16.png" sizes="16x16" />
<link rel="icon" type="image/png" href="/img/favicon-128.png" sizes="128x128" />
<link rel="icon" href="/img/favicon.ico?v=1" />
<meta name="application-name" content="zwofactory"/>
<meta name="msapplication-TileColor" content="#FFFFFF" />
<meta name="msapplication-TileImage" content="/img/mstile-144x144.png" />
<meta name="msapplication-square70x70logo" content="/img/mstile-70x70.png" />
<meta name="msapplication-square150x150logo" content="/img/mstile-150x150.png" />
<meta name="msapplication-wide310x150logo" content="/img/mstile-310x150.png" />
<meta name="msapplication-square310x310logo" content="/img/mstile-310x310.png" />
</head>
<body>
<header>
<h1><a href="/">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg" width="40.000000pt" height="20.700000pt" viewBox="0 0 300.000000 167.000000" preserveAspectRatio="xMidYMid meet">
<g transform="translate(0.000000,167.000000) scale(0.100000,-0.100000)" fill="#000000" stroke="none"><path d="M1638 1100 l3 -310 -170 0 -171 0 3 195 2 194 -30 -28 c-26 -25 -671 -611 -1073 -975 -78 -71 -142 -131 -142 -133 0 -2 653 -3 1450 -3 l1450 0 0 375 0 375 -165 0 -165 0 0 310 0 310 -115 0 -115 0 0 -310 0 -310 -80 0 -81 0 3 310 3 310 -112 0 -113 0 0 -310 0 -310 -80 0 -80 0 0 310 0 310 -112 0 -113 0 3 -310z m180 -20 c2 -275 3 -285 24 -307 19 -20 31 -23 98 -23 120 0 114 -16 120 329 l5 286 65 0 65 0 5 -286 c6 -345 0 -329 120 -329 120 0 114 -16 120 329 l5 286 58 3 c35 2 64 -2 73 -9 11 -9 14 -62 14 -287 0 -346 -12 -322 166 -322 67 0 129 -3 138 -6 14 -5 16 -44 16 -329 0 -285 -2 -324 -16 -329 -26 -10 -2714 -7 -2714 3 0 12 109 113 644 600 231 209 423 381 428 381 4 0 8 -54 8 -120 0 -135 13 -186 52 -195 13 -3 93 -4 178 -3 l155 3 17 35 c16 31 18 68 18 301 0 146 3 269 7 273 4 4 34 6 68 4 l60 -3 3 -285z"/></g>
</svg>
zwofactory.com
</a></h1>
</header>
<main>
<div id="divWorkoutInfo">
<div class="grid">
<div class="u-1">
<label for="txtName">Name</label>
<input type="text" id="txtName" autofocus maxlength="30" />
</div>
</div>
<div class="grid">
<div class="u-1-2">
<label for="txtDescription">Description</label>
<textarea id="txtDescription" rows="4"></textarea>
</div>
<div class="u-1-2">
<label for="txtAuthor">Author</label>
<input type="text" id="txtAuthor" />
<label for="txtTags">Tags</label>
<input type="text" id="txtTags" />
</div>
</div>
</div>
<div class="grid" style="-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;">
<div class="u-1-2 u-sm-1" id="divSegmentButtons">
<svg data-t="s" data-p-1="50" data-d-1="300" width="30" height="30"><path class="z1" d="M1,1 L30,1 L30,30 L1,30 Z"></path></svg><!--
--><svg data-t="s" data-p-1="65" data-d-1="300" width="30" height="30"><path d="M1,1 L30,1 L30,30 L1,30 Z" class="z2"></path></svg><!--
--><svg data-t="s" data-p-1="80" data-d-1="300" width="30" height="30"><path d="M1,1 L30,1 L30,30 L1,30 Z" class="z3"></path></svg><!--
--><svg data-t="s" data-p-1="95" data-d-1="300" width="30" height="30"><path d="M1,1 L30,1 L30,30 L1,30 Z" class="z4"></path></svg><!--
--><svg data-t="s" data-p-1="110" data-d-1="300" width="30" height="30"><path d="M1,1 L30,1 L30,30 L1,30 Z" class="z5"></path></svg><!--
--><svg data-t="s" data-p-1="125" data-d-1="60" width="30" height="30"><path d="M1,1 L30,1 L30,30 L1,30 Z" class="z6"></path></svg><!--
--><svg data-t="r" data-p-1="25" data-d-1="600" data-p-2="75" width="30" height="30"><path d="M1,20 L30,1 L30,30 L1,30 Z" class="wu"></path></svg><!--
--><svg data-t="r" data-p-1="75" data-d-1="600" data-p-2="25" width="30" height="30"><path d="M1,1 L30,20 L30,30 L1,30 Z" class="cd"></path></svg><!--
--><svg data-t="f" data-d-1="600" width="30" height="30"><path class="fr" d="M 1 15 C 9 2, 20 18, 29 10 H 30 V 30 H 1 Z"></path></svg><!--
--><svg data-t="i" data-p-1="75" data-d-1="60" data-p-2="50" data-d-2="300" data-r="3" width="30" height="30"><path class="z2" d="M1,1 h5 v30 h-5 Z"></path><path class="z1" d="M5,10 h10 v20 h-10 Z"></path><path class="z2" d="M15,1 h5 v30 h-5 Z"></path><path class="z1" d="M20,10 h10 v20 h-10 Z"></path></svg>
</div>
<div class="u-1-2 u-sm-1" style="text-align: right;">
<svg width="30" height="30" id="btnSelectPrevious">
<path d="M5,1 h8 v20 h-8 z" class="z0"></path>
<path d="M15,1 h8 v20 h-8 z" class="z0"></path>
<path d="M15,23 h8 v3 h-8 z"></path>
<path stroke="black" stroke-width="1" d="M9,30 v-10"></path>
<path stroke="black" stroke-width="1" d="M6,23 l3,-3"></path>
<path stroke="black" stroke-width="1" d="M9,20 l3,3"></path>
</svg>
<svg width="30" height="30" id="btnSelectNext">
<path d="M5,1 h8 v20 h-8 z" class="z0"></path>
<path d="M15,1 h8 v20 h-8 z" class="z0"></path>
<path d="M5,23 h8 v3 h-8 z"></path>
<path stroke="black" stroke-width="1" d="M19,30 v-10"></path>
<path stroke="black" stroke-width="1" d="M16,23 l3,-3"></path>
<path stroke="black" stroke-width="1" d="M19,20 l3,3"></path>
</svg>
<svg width="30" height="30" id="btnMoveLeft">
<path d="M5,1 h8 v20 h-8 z" class="z0"></path>
<path d="M15,1 h8 v20 h-8 z" class="z0"></path>
<path d="M15,23 h8 v3 h-8 z"></path>
<path stroke="black" stroke-width="1" d="M19,12 h-18"></path>
<path stroke="black" stroke-width="1" d="M1,12 l3,-3"></path>
<path stroke="black" stroke-width="1" d="M1,12 l3,3"></path>
</svg>
<svg width="30" height="30" id="btnMoveRight">
<path d="M5,1 h8 v20 h-8 z" class="z0"></path>
<path d="M15,1 h8 v20 h-8 z" class="z0"></path>
<path d="M5,23 h8 v3 h-8 z"></path>
<path stroke="black" stroke-width="1" d="M8,12 h18"></path>
<path stroke="black" stroke-width="1" d="M26,12 l-3,-3"></path>
<path stroke="black" stroke-width="1" d="M26,12 l-3,3"></path>
</svg>
<svg width="30" height="30" id="btnDuplicate">
<path d="M5,1 h8 v20 h-8 z" class="z0"></path>
<path d="M15,1 h8 v20 h-8 z" style="fill:white;stroke:#555;stroke-width:1px"></path>
<path d="M5,23 h8 v3 h-8 z"></path>
<circle cx="10" cy="12" r="4" style="fill:none;stroke:black;stroke-width:1px"></circle>
<line x1="8" y1="12" x2="12" y2="12" stroke="black" stroke-width="1px"></line>
<line x1="10" y1="10" x2="10" y2="14" stroke="black" stroke-width="1px"></line>
<line x1="15" y1="12" x2="21" y2="12" stroke="black" stroke-width="1px"></line>
<line x1="21" y1="12" x2="18" y2="10" stroke="black" stroke-width="1px"></line>
<line x1="21" y1="12" x2="18" y2="14" stroke="black" stroke-width="1px"></line>
</svg>
<svg width="30" height="30" id="btnDelete">
<path d="M10,1 h10 v20 h-10 z" class="z0"></path>
<path d="M10,23 h10 v3 h-10 z"></path>
<path stroke="red" stroke-width="1" d="M8,6 l14,10 M8,16 l14,-10"></path>
<!--<path stroke="gray" stroke-width="1" d="M5,8 l2,20 h12 l2,-20 z M8,10 l2,16 M13,10 v16 M18,10 l-2,16 M5,8 h-1 v-2 h18 v2 h-2 z M11,6 v-3 h4 v3 z" class="z0"></path>-->
</svg>
</div>
</div>
<div id="divWorkoutDuration"></div>
<div id="divSegmentChart"></div>
<div id="divSegmentInputs" class="grid">
<div class="u-1-6 u-sm-1-5"><input disabled type="number" id="txtP1" min="5" step="5" data-target="p1" /><label for="txtP1">P<span class="sm-hidden">o</span>w<span class="sm-hidden">e</span>r 1 (%FTP)</label></div>
<div class="u-1-6 u-sm-1-5"><input disabled type="number" id="txtD1" min="5" step="5" data-target="d1" /><label for="txtD1">Dur<span class="sm-hidden">ation</span> 1 (s)</label></div>
<div class="u-1-6 u-sm-1-5"><input disabled type="number" id="txtP2" min="5" step="5" data-target="p2" /><label for="txtP2">P<span class="sm-hidden">o</span>w<span class="sm-hidden">e</span>r 2 (%FTP)</label></div>
<div class="u-1-6 u-sm-1-5"><input disabled type="number" id="txtD2" min="5" step="5" data-target="d2" /><label for="txtD2">Dur<span class="sm-hidden">ation</span> 2 (s)</label></div>
<div class="u-1-6 u-sm-1-5"><input disabled type="number" id="txtR" min="1" max="20" data-target="r" /><label for="txtR">R<span class="sm-hidden">e</span>p<span class="sm-hidden">ea</span>t</label></div>
<div class="u-1-12 u-sm-1-2"><button id="btnShowCadence"><svg height="12" width="16"><path style="fill:none;" stroke="black" stroke-width="1" d="M8,6 m-5,0 a 5,5 0 1,1 10,0 a 5,5 0 1,1 -10,0 M8,6 l-5.5,-5.5 M11.5,9.5 l1.75,1.75"></path></svg></button></div>
<div class="u-1-12 u-sm-1-2"><button id="btnShowTextEvents"><span style="font-family:'Times New Roman',Times,serif;font-weight:bold">T</span></button></div>
<div class="modal" id="divModalCadence">
<label for="chkCadence"><input type="checkbox" id="chkCadence" />Set cadence on selected segment</label>
<hr />
<div><input type="number" id="txtC1" min="10" max="200" data-target="c1" /><label for="txtC1">Cadence 1 (RPM)</label></div>
<div><input type="number" id="txtC2" min="10" max="200" data-target="c2" /><label for="txtC2">Cadence 2 (RPM)</label></div>
<hr />
<button id="btnDimissCadence">Close</button>
</div>
<div class="modal" id="divModalTextEvents">
<button id="btnAddTextEvent">+ Text Event</button>
<div class="grid">
<div class="u-3-5">Text</div>
<div class="u-2-5">Offset (s)</div>
</div>
<div id="divTextEventToClone" class="invisible grid"><div class="u-3-5">
<input type="text" value="Text" /></div><div class="u-1-5">
<input type="number" value="0" min="0" step="10" name="offset" /></div><div class="u-1-5">
<button>⌫</button></div>
</div>
<div id="divTextEvents">
</div>
<hr />
<button id="btnDimissTextEvents">Close</button>
</div>
</div>
<hr />
<div class="grid">
<div class="u-1-2"><button class="save" id="btnSaveToMyWorkouts">Save to My Workouts</button><div class="saved" style="text-align: center">Saved!</div></div>
<div class="u-1-2"><button class="save" id="btnDownloadZwoFile">Download .zwo file</button></div>
</div>
<div class="grid">
<div class="u-1" id="divLinks"></div>
</div>
</main>
<footer>
<div class="grid">
<div class="u-1-5 u-sm-1"><a href="/">zwofactory.com</a></div>
<div class="u-1-5 u-sm-1"><a href="/myworkouts/">My Workouts</a></div>
<div class="u-1-5 u-sm-1"><a href="/info/">Info</a></div>
<div class="u-1-5 u-sm-1"><a href="/settings/">Settings</a></div>
<div class="u-1-5 u-sm-1"><a href="/templates/">Workout Templates</a></div>
</div>
<hr />
<div>© 2017 Matt McNeil</div>
</footer>
<script src="/js/fileSaver.js"></script>
<script src="/js/settings.js"></script>
<script src="/js/zwofactory.js"></script>
<script src="/js/index.html.js"></script>
</body>
</html>