-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
321 lines (196 loc) · 9.8 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
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
<!DOCTYPE html>
<html>
<head>
<title>Annual Review Tracker</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href='http://fonts.googleapis.com/css?family=Fenix|Roboto:400,700,400italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="/css/styles.css" />
</head>
<body>
<div class="full-container">
<div class="container">
<header class="site-header">
<nav class="site-nav">
<ul>
<li><a href="#" id="nav-settings-toggle">Settings</a></li>
<li><a href="#" id="nav-goals-toggle">Add Goal</a></li>
<li><a href="#" id="nav-log-toggle">View Log and Statistics</a></li>
</ul>
</nav>
<button id="clear-review">Clear Review</button>
<div id="dialog" title="Clear Review">
<p>This will completely wipe all your data - including your
goals and settings.</p>
<p><strong>Are you sure you want to clear your Annual
Review?</strong></p>
</div>
<h1 class="site-title"><a href="/">Annual Review <span id="review-year"></span></a></h1>
<h2 id="review-theme"></h2>
</header>
<section id="settings-section">
<h2 id="settings-toggle">
<span class="icon-cog"></span>
Settings
<span class="icon-arrow icon-arrow-down"></span>
</h2>
<form method="post" id="settings-form">
<p class="instructions">Fill in the information below to get started tracking your goals!</p>
<div>
<label for="year">Year: </label>
<input type="text" name="year" id="year" />
</div>
<div>
<label for="theme">Theme</label>
<input type="text" name="theme" id="theme" placeholder="2013 is the year of the [insert text]. This time next year, [most important outcome]."/>
</div>
<div id="form-categories">
</div>
<a href="#" id="add-cat">+ Add another category</a>
<input type="submit" value="Save" name="save" id="save" />
<a href="#" id="settings-cancel" class="cancel">Cancel</a>
</form>
</section>
<section id="goals-section">
<h2 id="goals-toggle">
<span class="icon-plus"></span>
Add Goal
<span class="icon-arrow icon-arrow-down"></span>
</h2>
<form method="post" id="goal-form">
<div>
<label for="new-goal">Goal:</label>
<input type="text" name="new-goal" id="new-goal" placeholder="Enter a measurable goal" />
<span class="error"></span>
</div>
<div>
<label for="deadline-input">Deadline:</label>
<input type="text" name="deadline-input" id="deadline-input" placeholder="e.g. 12/31/2013, Ongoing" />
</div>
<label for="goal-notes">Notes:</label>
<textarea id="goal-notes" placeholder="Additional Notes"></textarea>
<label for="category-select">Choose the goal's category:</label>
<select id="category-select">
</select>
<div id="additional-tracking">
<h3>Optional Additional Tracking</h3>
<p class="instructions">
<strong>Enable Logging</strong> if you'd like to keep track of your steps towards goal completion.
For example, you could log the book titles of every book you read.
</p>
<p class="instructions">
Also choose <strong>Sum Log Entries</strong> for numeric goals, such as walking a set number of miles,
to keep a running total of the number of miles you've walked so far.
</p>
<label for="enable-logging">Enable Logging</label>
<input type="checkbox" name="enable-logging" id="enable-logging" />
<label for="sum-entries">Sum Log Entries</label>
<input type="checkbox" name="sum-entries" id="sum-entries" />
<div class="error"></div>
<div id="unit-container">
<label for="unit">Unit of Measurement:</label>
<input type="text" name="unit" id="unit" placeholder="e.g. miles, books, etc."/>
<div class="error"></div>
</div>
</div><!-- end additional-tracking -->
<input type="submit" value="Add Goal" name="add-goal" id="add-goal" />
<a href="#" id="goals-cancel" class="cancel">Cancel</a>
</form>
</section>
<section id="log-section">
<h2 id="log-toggle">
<span class="icon-eye"></span>
View Log and Statistics
<span class="icon-arrow icon-arrow-down"></span>
</h2>
<div id="log-content">
<ul id="stats">
<li># Goals Completed: <span id="total-completed"></span></li>
</ul>
<div id="log-entries">
</div>
<a href="#" id="log-cancel" class="cancel">Close</a>
</div>
</section>
<section id="categories">
</section>
<footer>
<small>Inspired by <a href="http://chrisguillebeau.com/3x5/how-to-conduct-your-own-annual-review/">Chris Guillebeau's Annual Review</a>
and Annual Review Spreadsheet. Created by Kim Hamper.</small>
</footer>
</div><!-- end container -->
</div><!-- end full-container -->
<!-- HANDLEBARS TEMPLATES -->
<script id="category-input-template" type="text/x-handlebars-template">
<label for="cat-{{categoryCount}}">Goal Category {{categoryCount}}</label>
<input type="text" name="cat-{{categoryCount}}" id="cat-{{categoryCount}}" placeholder="e.g. Health, Career, Finances" />
</script>
<script id="category-template" type="text/x-handlebars-template">
<section id="{{sectionID}}">
<h2 id="{{titleID}}">{{categoryName}}</h2>
<div class="goals"></div>
</section>
</script>
<script id="log-entry-template" type="text/x-handlebars-template">
<div class="row">
<label class="input-label">I completed:</label>
<input type="text" name="log-input" class="log-input" placeholder="e.g. Pride and Prejudice by Jane Austen" autofocus/>
<div class="unit">{{unit}}</div>
</div>
<div class="row">
<label class="entry-date-label">Date:</label>
<input type="text" name="entry-date" class="entry-date" placeholder="mm/dd/yyyy" />
</div>
<div class="row actions">
<button class="save-log-entry">Save</button>
<a href="#" id="cancel-logging" class="cancel">Cancel</a>
</div>
<div class="error"></div>
</script>
<script id="log-goal-template" type="text/x-handlebars-template">
<div class="log-goal {{#if sumEntriesEnabled}}sum-entries{{/if}}" id="log-goal-{{index}}" data-unit="{{unit}}">
<h3>{{goal}}</h3>
<button class="remove-log-goal">x</button>
<div class="total-logged"></div>
<div class="sum"></div>
<ul class="log-list"></ul>
</div>
</script>
<script id="log-list-entry-template" type="text-x-handlebars-template">
<li>
<span class="log-item">
<span class="log-entry-text">{{logEntryText}}</span>
<span class="log-unit">{{unit}}</span>
</span>
<button class="delete">x</button>
<span class="log-date">{{entryDate}}</span>
</li>
</script>
<script id="goal-template" type="text/x-handlebars-template">
<div class="goal" id="goal-{{index}}" data-unit="{{unit}}">
<h3 class="goal-title">{{goal}}</h3>
<button class="delete">x</button>
<button class="complete">✔</button>
<div class="deadline">Deadline:
<span class="deadline-time">{{deadline}}</span>
</div>
<div class="completed-date"></div>
<p class="notes hidden">{{notes}}</p>
<div class="actions">
<a href="#" class="view-notes">View Notes</a>
{{#if loggingEnabled}}
<a class="add-log-entry" href="#">Add Log Entry</a>
{{/if}}
</div>
{{#if loggingEnabled}}
<div class="logging">
</div>
{{/if}}
</div>
</script>
<script src="/js/jquery.min.js"></script>
<script src="/js/jquery-ui-1.10.3.custom.min.js"></script>
<script src="/js/handlebars-v1.1.2.js"></script>
<script src="/js/main.js"></script>
</body>
</html>