forked from sboots/meetingcostcalculator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
307 lines (234 loc) · 10.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="A simple online calculator to estimate the cost of public sector meetings.">
<meta name="author" content="Sean Boots">
<!-- <link rel="icon" href="../../favicon.ico"> -->
<title>Meeting Cost Calculator</title>
<!-- Bootstrap core CSS -->
<link href="/css/bootstrap.min.css" rel="stylesheet">
<!-- FontAwesome -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet">
<link href="/css/meetingcost.css" rel="stylesheet">
</head>
<body>
<!-- Static navbar -->
<nav class="navbar navbar-default navbar-static-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Meeting Cost Calculator</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="#" data-toggle="modal" data-target="#aboutModal">About</a></li>
<!-- <li><a href="#">Français</a></li> -->
<!-- (Coming soon!) -->
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>
<div class="container">
<div class="time-controls-container">
<div style="float: left; max-width: 96px; margin-right: 10px; min-height: 80px;">
<label for="timeInput">Time</label>
<input type="text" id="timeInput" class="form-control input-lg js-time-elapsed-input" autocomplete="off">
</div>
<div style="float: left; margin-right: 10px; min-height: 80px;">
<label for="timeInput">Controls</label><br/>
<button class="btn btn-lg btn-default js-start-time" title="Start Timer">
<i class="fa fa-play" aria-hidden="true"></i>
<span class="hidden-xs">Start</span>
</button>
<button class="btn btn-lg btn-default js-stop-time" title="Stop Timer">
<i class="fa fa-pause" aria-hidden="true"></i>
<span class="hidden-xs">Pause</span>
</button>
<button class="btn btn-lg btn-default js-reset-time" title="Reset Timer">
<i class="fa fa-step-backward" aria-hidden="true"></i>
<span class="hidden-xs">Reset</span>
</button>
</div>
<div style="float: left; min-height: 80px;">
<label>Jump forward/back</label><br/>
<button class="btn btn-lg btn-default js-add-time" data-amount="15" data-date-type="minutes" title="Add 15 minutes">
<i class="fa fa-plus" aria-hidden="true"></i>
<span class="hidden-xs">
<!--[if lt IE 12]>
+
<![endif]-->
15 min
</span>
</button>
<button class="btn btn-lg btn-default js-remove-time" data-amount="15" data-date-type="minutes" title="Subtract 15 minutes">
<i class="fa fa-minus" aria-hidden="true"></i>
<span class="hidden-xs">
<!--[if lt IE 12]>
–
<![endif]-->
15 min
</span>
</button>
</div>
<div class="clock-display-container" style="float:right;">
<label>Cost</label><br/>
<div class="clock-display">
<span class="js-cost-display">0</span>
</div>
</div>
</div>
</div>
<div class="container">
<div class="add-chairs-container">
<div style="float:left; margin-right: 10px;">
<!-- Single button -->
<div class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle btn-lg" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" title="Options">
<i class="fa fa-cog" aria-hidden="true"></i>
<span class="sr-only">Options</span>
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li class="dropdown-header">Organization</li>
<li><a href="#" class="js-change-organization" data-organization="gnwt">
<i class="fa fa-check fa-fw" aria-hidden="true"></i>
GNWT Public Service
</a></li>
<li><a href="#" class="js-change-organization" data-organization="core">
<i class="fa fa-fw" aria-hidden="true"></i>
Core Public Service
</a></li>
<li><a href="#" class="js-change-organization" data-organization="caf">
<i class="fa fa-fw" aria-hidden="true"></i>
Canadian Armed Forces
</a></li>
<li><a href="#" class="js-change-organization" data-organization="neb">
<i class="fa fa-fw" aria-hidden="true"></i>
National Energy Board
</a></li>
<li role="separator" class="divider"></li>
<li class="dropdown-header">Pay rate</li>
<li><a href="#" class="js-change-rate" data-rate="min">
<i class="fa fa-fw" aria-hidden="true"></i>
Minimum
</a></li>
<li><a href="#" class="js-change-rate" data-rate="median">
<i class="fa fa-check fa-fw" aria-hidden="true"></i>
Median
</a></li>
<li><a href="#" class="js-change-rate" data-rate="max">
<i class="fa fa-fw" aria-hidden="true"></i>
Maximum
</a></li>
</ul>
</div>
</div>
<div style="float:left; margin-right: 10px;">
<select class="form-control input-lg js-user-type-select"></select>
</div>
<div style="float:left; margin-right: 10px;">
<button type="button" class="btn btn-lg btn-default js-add-user" title="Add Participant">
<i class="fa fa-user-plus" aria-hidden="true"></i>
<span class="hidden-xs">Add Participant</span>
</button>
</div>
<div style="float:right;">
<button class="btn btn-lg btn-default js-reset" title="Clear all participants">
<span class="visible-xs"><i class="fa fa-close" aria-hidden="true"></i></span>
<span class="hidden-xs">Clear</span>
</button>
</div>
<div class="clearfix"></div>
</div>
<div class="chairs-map"></div>
</div><!-- /.container -->
<div class="modal fade" tabindex="-1" role="dialog" id="aboutModal">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">About meetingcostcalculator.ca</h4>
</div>
<div class="modal-body">
<p>
<b>Ever wondered how much your team meetings cost?</b> The Meeting Cost Calculator lets you calculate an estimated cost for meetings, using the standard pay rates used by a variety of public sector organizations.
</p>
<ul>
<li>
Data for the core public service is adapted from the <a href="https://www.tbs-sct.gc.ca/pubs_pol/hrpubs/coll_agre/rates-taux-eng.asp" target="_blank">TBS Rates of Pay</a> website, and data for the Canadian Armed Forces is adapted from the <a href="http://www.forces.gc.ca/en/caf-community-pay/pay-rates.page" target="_blank">DND Pay Rates website</a>.
</li>
<li>
Meeting costs are determined by converting annual salaries into hourly rates, then multiplying these against the elapsed time. Salary classifications with a range of levels are simplified to minimum, maximum, and median rates, which can be selected under the gear options menu.
</li>
</ul>
<p>
You can <a href="https://github.com/sboots/meetingcostcalculator" target="_blank"> find the source code</a> for this project on Github. Feedback and improvements are welcome!
</p>
<p>
An <a href="http://www.yowcivictech.ca/">Ottawa Civic Tech project</a>, built by <a href="https://twitter.com/sboots/">Sean Boots</a>. Thanks to Dan, Conor, Corey, and David for ideas and contributions!
</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<!-- Lodash templates -->
<script type="text/template" id="chairContainerTemplate">
<% if(_.isEmpty(app.meetingCost.participants)) { %>
<p><em>No participants have been added yet.</em></p>
<% } else { %>
<% _.each(app.meetingCost.participants, function(value, index) { %>
<div class="chair js-remove-user" data-user-index="<%- index %>" title="<%- value.label %> <%- value.description %>">
<i class="fa fa-user fa-3x" aria-hidden="true"></i>
<span class="chair-label"><%- value.label %></span>
</div>
<% }) %>
<% } %>
</script>
<script type="text/template" id="ratesSelectTemplate">
<option value="">(Choose participants)</option>
<% _.each(rates, function(value, index) { %>
<option value="<%- value.label %>"><% if(organization.hideDropdownLabels == 0) { %><%- value.label %> <% } %><%- value.description %></option>
<% }) %>
</script>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/4.16.2/lodash.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.15.1/moment.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/moment-duration-format/1.3.0/moment-duration-format.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/numeral.js/2.0.6/numeral.min.js"></script>
<!-- <script>window.jQuery || document.write('<script src="../../assets/js/vendor/jquery.min.js"><\/script>')</script> -->
<script src="/js/bootstrap.min.js"></script>
<script src="/js/meetingcost.js"></script>
<script src="/js/rates.js"></script>
<script type="text/javascript">
$(function() {
'use strict';
app.meetingCost.initialize();
});
</script>
<script type="text/javascript">
if (window.location.host == 'meetingcostcalculator.ca') {
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-97098640-1', 'auto');
ga('send', 'pageview');
}
</script>
</body>
</html>