This repository has been archived by the owner on Jan 7, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.html
556 lines (461 loc) · 25.9 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
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
<html>
<head>
<!-- Main Stylesheet -->
<link rel="stylesheet" href="clock.css">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="og:title" content="The 2020 Tax Clock" />
<meta property="og:description" content="It’s easy to see how much of your salary is taken for taxes, but do you know how many hours are allocated to those deductions? Enter your salary to see how your tax money is being spent." />
<meta property="og:image" content="https://www.taxclock.co.za/preview.png" />
<meta property="og:url" content="https://www.taxclock.co.za/index.html?show-embed-link=true" />
<title>The 2020 Tax Clock - How much time do you spend paying off your tax</title>
</head>
<body>
<div class="embed-link">
<a href="http://code4sa.org/2016/03/08/embeddable-tax-clock.html" target="_blank"><EMBED></a>
</div>
<div class="jumbotron">
<div class="container">
<h1>2020</h1>
<h2>Tax Clock</h2>
<h3><span class="h3-inner">How much of your work day is spent paying taxes?</span></h3>
</div>
</div>
<div class="container text-center" id="social-media">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<div class="fb-share-button" data-href="http://code4sa.org/taxclock" data-layout="button_count"></div>
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://www.taxclock.co.za" data-via="OpenUpSA" data-hashtags="taxclock2020">Tweet</a>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<div class="explanation-wrapper">
<div class="explanation">
<strong><p>Did you know, you don’t just pay tax in Rands, but hours as well?</strong></p>
<p>Tax forms part of your total salary, which means that part of your 9-5 goes towards the development of the state. Enter your salary below to see how many hours you spend on government services and where your money may be going.</p>
<p>Learn more about the budget on <a href="https://vulekamali.gov.za">vulekamali.gov.za</a></p>
</div>
</div>
</div>
</div>
</div>
<div class="calculator">
<div class="container">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<div id="input-wrapper">
<div id="input">
<div class="container-fluid">
<div class="row">
<div class="col-sm-4 col-xs-8 col-xs-offset-2 col-sm-offset-0 icon">
<img src="icon-income.png" class="img-responsive">
</div>
<div class="col-sm-8 col-xs-12">
<h4>What is your <strong>annual income*</strong> (before tax)?</h4>
<div class="input-group input-group-lg">
<span class="input-group-addon">R</span>
<input class="income form-control" type="number" name="income" aria-label="Annual income before tax">
<script>
function scrollToOutput(){
$('html,body').animate({
scrollTop: $("#output-wrapper").offset().top},
'slow');
}
</script>
<a class="btn btn-default btn-submit" onclick="scrollToOutput()">▼</a>
</div>
<h6>* This should be your income <i>before</i> tax but <i>after</i> deductions such as pension and medical aid.</h6>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--
<div class="row">
<div class="col-md-6 col-md-offset-3">
<div id="difference-wrapper">
<div id="difference">
<h4 id="did-you-know-wrapper"><span id="did-you-know">Did you know?</span>You are not paying any more tax than the previous financial year.</h4>
<h5 id="scroll-down">Scroll down for a detailed breakdown of your day</h5>
</div>
</div>
</div>
</div>
-->
<div class="row">
<div class="col-md-6 col-md-offset-3">
<div id="output-wrapper">
<div id="clock">
<div id="output-clock">
<h4 id="right-now">Right now</h4>
<div id="clock-now"></div>
<h4 id="working-on">You're working for:</h4>
<div id="clock-item">?</div>
<div id="clock-next-wrapper">
<h4>Next up:</h4>
<div id="clock-next"></div>
</div>
</div>
</div>
<div id="dayplanner">
<h4>Your work schedule today would look like this:</h4>
<div id="output-dayplanner"></div>
<div id="calendar-download">Install a daily reminder of when you start working for yourself: <a href="javascript:downloadICS()" class="btn btn-default">Install calendar (ICS)</a></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="footnotes">
<div class="container">
<div class="col-md-6 col-md-offset-3">
<h6>This calculator only provides approximations and makes simplifying assumptions. These calculations are based on VAT and personal income tax as per the 2020 budget. The VAT calculation assumes all disposable income is spent on standard rated (15%) items. Secondary and tertiary rebates are not included, nor are other indirect taxes such as customs, sin taxes, fuel levy, etc.</h6>
</div>
</div>
</div>
<div class="footer">
<div class="container">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<div class="credits text-center"><a href="https://openup.org.za" target="_blank"><img src="logo.png"></a></div>
<div class="registrations">OpenUp is a non-profit organisation registered with the South African Department of Social Development.</div>
<div class="license">Licensed under a Creative Commons Attribution 4.0 International License</div>
</div>
</div>
</div>
</div>
<script src="jquery-1.12.0.min.js"></script>
<script src="tooltip.js"></script>
<script src="underscore-min.js"></script>
<script src="moment.js"></script>
<script src="income-calculator.js"></script>
<script src="pym.js"></script>
<script src="icsFormatter.js"></script>
<!-- Social Media: Facebook Share button -->
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<!-- Social Media: Twitter button -->
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
<script>
// Explanations for items
var itemExplanations = {
'basic-education': 'This budget is allocated to develop, maintain and support the South African school education system.',
'debt-service-costs': 'This is the tax revenue allocated to servicing South Africa\'s national debt. It is also, along with post-school education and training, the fastest growing item of expenditure in the 2020 budget.',
'health': 'This department provides leadership and coordination of health services to promote the health of all people in South Africa. Comprises District health services (R102bn), Central hospital services (R44.7bn), Provincial hospital services (R37.6bn), Other health services (R35.4bn), and (R10.1bn)',
'community-development': 'Community development includes public transport infrastructure and funds for the provision of water, sanitation and electricity. The budget is comprised of Municipal equitable share (R74.7bn), Human settlements, water and electrification programmes (R55.7bn), Public transport (R44.7bn), and Other human settlements and municipal infrastructure (R37.2bn)',
'police-services': 'The Police Department works to prevent, combat and investigate crime, maintain public order, and uphold and enforce the law.',
'defence-and-state-security': 'This department defends and protects the Republic of South Africa, its territorial integrity and its people.',
'home-affairs': 'Birth certificates, marriage certificates, ID books, passports, etc.',
'law-courts-and-prisons': 'The focus of this department is to contribute to a just, peaceful and safer South Africa.',
'social-protection': 'Government’s social protection system works to reduce poverty and inequality by issuing social grants to and providing social welfare services for vulnerable groups.',
'post-school-education-and-training': 'This includes university subsidies, NSFAS, technical and vocational education, community education and training, and skills development levy institutions.',
'economic-development': 'This budget includes the following allocations: Economic regulation and infrastructure (R105.3bn), Industrialisation and exports (R39bn), Agriculture and rural development (R28.3bn), and Job creation and labour affairs (R22.4bn). Innovation, science and technology is listedd separately',
'social-security-funds': 'Social security funds provide support for unemployed workers and those involved in road and workplace accidents.',
'arts-culture-sport-and-recreation': 'Includes recreational and sporting services, cultural services, broadcasting and publishing services, religious and other community services, as well as related R&D.',
'payments-for-financial-assets': 'This item includes lending to public corporations or making equity investments in them for policy purposes.',
'home-affairs' : 'This authority facilitates and manages the legitimate movement of people and goods across borders and through other ports of entry. This item also includes the Government Printing Works and the Independent Electoral Commission',
'external-affairs' : 'This includes foreign economic aid to developing countries and economic aid through international organisations.',
'contingency-reserve' : 'Government has a contingency reserve for emergencies and unforeseeable events.',
'job-creation-and-labour-affairs' : 'Public employment programmes, including the Expanded Public Works Programme.',
'agriculture-and-rural-development' : 'This includes land reform, and farmer support and development',
'other-learning-and-culture' : 'Part of social spending, this includes Skills development levy institutions (R21bn), Education administration (R17.8bn), and Technical & vocational education and training (R13.4bn)',
'other-social-development' : 'This item excludes social security funds, old-age pensions, and the child-support grant. Line items included are Other Grants (R35.bn), Provincial Social Development (R23.3bn), and Policy oversight and grant administration (R10bn).'
}
// Detailed budget info, links from vulekamali.gov.za
var itemVulekamaliLinks = {
'basic-education': 'https://vulekamali.gov.za/2017-18/national/departments/basic-education',
'local-government-and-housing': 'https://vulekamali.gov.za/2017-18/search-result?search_type=full-search&search_string=Local+government+and+housing&search=Local+government+and+housing',
'health': 'https://vulekamali.gov.za/2017-18/national/departments/health',
'social-grants': 'https://vulekamali.gov.za/2017-18/search-result?search_type=full-search&search_string=Social+grants&search=Social+grants',
'police-services': 'https://vulekamali.gov.za/2017-18/national/departments/police',
'economic-infrastructure': 'https://vulekamali.gov.za/2017-18/search-result?search_type=full-search&search_string=Economic+infrastructure&search=Economic+infrastructure',
'general-public-services': 'https://vulekamali.gov.za/2017-18/search-result?search_type=full-search&search_string=General+public+services&search=General+public+services',
'employment-labour-affairs': 'https://vulekamali.gov.za/2017-18/search-result?search_type=full-search&search_string=Employment+%26+labour+affairs&search=Employment+%26+labour+affairs',
'higher-education-training': 'https://vulekamali.gov.za/2017-18/national/departments/higher-education-and-training',
'defence-state-security': 'https://vulekamali.gov.za/2017-18/search-result?search_type=full-search&search_string=Defence+and+state+security&search=Defence+and+state+security',
'law-courts-prisons': 'https://vulekamali.gov.za/2017-18/search-result?search_type=full-search&search_string=Law+courts+and+prisons&search=Law+courts+and+prisons',
'trade-industry': 'https://vulekamali.gov.za/2017-18/national/departments/trade-and-industry',
'agriculture-rural-development-land-reform': 'https://vulekamali.gov.za/2017-18/search-result?search_type=full-search&search_string=Agriculture%2C+rural+development+and+land+reform&search=Agriculture%2C+rural+development+and+land+reform',
'science-technology-and-environment': 'https://vulekamali.gov.za/2017-18/search-result?search_type=full-search&search_string=Science+and+Technology+and+environment&search=Science+and+Technology+and+environment',
'home-affairs': 'https://vulekamali.gov.za/2017-18/national/departments/home-affairs',
'arts-sports-recreation-and-culture': 'https://vulekamali.gov.za/2017-18/search-result?search_type=full-search&search_string=Arts%2C+sports%2C+recreation+and+culture&search=Arts%2C+sports%2C+recreation+and+culture',
'unallocated-reserves': 'https://vulekamali.gov.za/2017-18/search-result?search_type=full-search&search_string=Unallocated+reserves&search=Unallocated+reserves'
}
var cal = null;
function Slugify(str) {
var $slug = '';
var trimmed = $.trim(str);
$slug = trimmed.replace(/[^a-z0-9-]/gi, '-').
replace(/-+/g, '-').
replace(/^-|-$/g, '');
return $slug.toLowerCase();
}
function GetHours(mins) {
var hours = Math.floor( mins / 60);
return hours;
}
function GetMinutes(mins) {
var minutes = Math.floor(mins % 60);
return minutes;
}
function GetSeconds(mins) {
var seconds = Math.floor((mins * 60) % 60);
return seconds;
}
function workingOn(now, items, calc) {
// of the items in items, what is being worked on now?
var current = 0, next;
// sort by end time
items = _.sortBy(items, function(x) { return x.valueOf(); });
for (var i = 0; i < items.length; i++) {
if (now.isBefore(items[i].finish_time)) {
current = i;
break;
}
}
if (current < items.length) {
next = items[current+1];
}
current = items[current];
if (now.isBefore(calc.START_OF_DAY) || now.isAfter(calc.END_OF_DAY)) {
next = current;
current = null;
}
return [current, next];
}
function checkEmbedLink() {
if (window.location.search.indexOf('embed-link') > -1) {
allowEmbedLink();
}
}
function allowEmbedLink() {
$('.embed-link').addClass('allowed');
}
function createICS(breakdown) {
var num_slots = breakdown.length;
var secondlast_slot_start = breakdown[num_slots - 2].finish_time;
var end_day = breakdown[num_slots - 1].finish_time;
cal = icsFormatter();
cal.addEvent('Working for yourself', 'Every minute from now on, you\'re working for yourself', 'Work', secondlast_slot_start, end_day, 'RRULE:FREQ=DAILY;INTERVAL=1');
return cal;
}
function downloadICS() {
ga('send', 'event', 'taxclock', 'ics');
cal.download();
}
if (window != window.top) {
$('body').addClass('embedded');
} else {
$('body').addClass('standalone');
}
var pymChild;
var engaged = false;
$(function() {
var firstLoop = true;
var output;
pymChild = new pym.Child({id: 'code4sa-embed-taxclock' });
checkEmbedLink();
$('.income').on('change keyup', function() {
var income = parseFloat($(this).val());
var calc = new IncomeCalculator(taxes_2020);
var calc_2020 = calc;
var calc_2019 = new IncomeCalculator(taxes_2019);
var output = calc.calculateIncomeBreakdown(income);
var output_2020 = output;
var output_2019 = calc_2019.calculateIncomeBreakdown(income);
var tax_change = output_2020.personalTax - output_2019.personalTax;
var formatted_tax_change = tax_change.toFixed().replace(/(\d)(?=(\d{3})+(,|$))/g, '$1,')
var minutes_change = output_2020.taxman_minutes - output_2019.taxman_minutes;
var time = START_OF_DAY.clone().add(output_2020.taxman_minutes, 'm');
var finish_time = time.format('h:mm a');
$("#amount").text(formatted_tax_change);
$("#tax-minutes-change").text(minutes_change.toFixed(0));
$("#personal-time").text(finish_time);
cal = createICS(output.breakdown);
var startTime = calc.START_OF_DAY;
/* Clear output */
$('#difference-wrapper').hide();
$('#output-wrapper').hide();
if (income > 0){
$('#output-dayplanner').html('');
$(output.breakdown).each(function(){
var breakdown = this;
$(breakdown).each(function(){
var name = this.name;
var slug = Slugify(this.name);
var finishTime = this.finish_time;
var taxamount = this.taxpayer_amount;
var startTimeStr = startTime.format('h:mm a');
var startHour = startTime.format('H');
var startMinute = startTime.format('m');
var startSecond = startTime.format('s');
var finishHour = finishTime.format('H');
var finishMinute = finishTime.format('m');
var finishSecond = finishTime.format('s');
var mins = this.minutes;
var hours = GetHours(mins);
var minutes = GetMinutes(mins);
var seconds = GetSeconds(mins);
/* if minutes > 0 and seconds > 30, round up a 1 minute */
if (minutes > 0 && seconds > 30) {
minutes = minutes + 1;
seconds = 0;
}
else if (minutes > 0) {
seconds = 0;
}
var hoursString = "";
var minutesString = "";
var secondsString = "";
if (hours > 0) {
var hoursString = '<span class="item-hours">' + hours + ' hours </span>';
}
if (hours == 1) {
var hoursString = '<span class="item-hours">' + hours + ' hours </span>';
}
if (minutes > 0) {
var minutesString = '<span class="item-minutes">' + minutes + ' minutes </span>';
}
if (minutes == 1) {
var minutesString = '<span class="item-minutes">' + minutes + ' minute </span>';
}
if (seconds > 0) {
var secondsString = '<span class="item-seconds">' + seconds + ' seconds</span>';
}
if (seconds == 1) {
var secondsString = '<span class="item-seconds">' + seconds + ' seconds</span>';
}
var durationDiv = '<div class="item-duration">' + hoursString + minutesString + secondsString + '</div>';
var rowHeight = Math.floor(mins * 14);
if (rowHeight > 450){ rowHeight = 450; }
'Add a class for small items (under 5 minutes)'
var smallClass = "";
if (minutes < 5){ smallClass= " item-small"; }
$('#output-dayplanner').append('<div class="item planner-item" id="' + slug + '" style="min-height: ' + rowHeight + 'px;" data-starthour="' + startHour + '" data-startminute="' + startMinute + '" data-startsecond="' + startSecond + '" data-finishhour="' + finishHour + '" data-finishminute="' + finishMinute + '" data-finishsecond="' + finishSecond + '"><div class="item-starttime-wrapper"><span class="item-starttime">' + startTimeStr + '</span></div><div class="item-details"><div class="item-name">' + name + '</div><div class="item-duration">' + durationDiv + "</div></div></div>");
startTime = this.finish_time;
});
});
$('#output-dayplanner').prepend('<div class="item" id="start"><strong>9am</strong> - Start of the workday</div>').append('<div class="item" id="end"><strong>5pm</strong> - End of the workday</div>');
/* update clock */
function tick() {
var now = moment();
$('#clock-now').text(now.format('h:mm a'));
// draw current-time 'now' line
$('#output-dayplanner .planner-item').each(function(){
var startHour = parseInt($(this).attr('data-starthour'));
var startMinute = parseInt($(this).attr('data-startminute'));
var startSecond = parseInt($(this).attr('data-startsecond'));
var startSeconds = (startHour * 60 * 60) + (startMinute * 60) + startSecond;
var finishHour = parseInt($(this).attr('data-finishhour'));
var finishMinute = parseInt($(this).attr('data-finishminute'));
var finishSecond = parseInt($(this).attr('data-finishsecond'));
var finishSeconds = (finishHour * 60 * 60) + (finishMinute * 60) + finishSecond;
var nowHour = parseInt(now.format('H'));
var nowMinute = parseInt(now.format('m'));
var nowSecond = parseInt(now.format('s'));
var nowSeconds = (nowHour * 60 * 60) + (nowMinute * 60) + nowSecond;
if (nowSeconds < finishSeconds && nowSeconds >= startSeconds ) {
elementHeight = $(this).height() - 12;
topPosition = Math.round((nowSeconds - startSeconds) / (finishSeconds - startSeconds) * elementHeight) + 12;
$('#now-line').remove();
$(this).prepend('<div id="now-line" title="' + now.format('h:mm a') + '" style="top: '+ topPosition +'px;"><span>Time Now</span></div>');
}
});
// current and next work items
var pair = workingOn(now, output.breakdown, calc);
if (pair[0]) {
$('#clock-next-wrapper, #working-on').show();
$('#clock-item').show().text(pair[0].name);
} else {
$('#clock-next-wrapper, #working-on').hide();
$('#clock-item').text('Put your feet up, you’ve had a long day working and contributing to the state.');
// show morning message (after 4 am)
var nowHour = parseInt(now.format('H'));
if (nowHour >= 4 && nowHour < 9) {
$('#clock-item').text('Brace yourself, you have a long day ahead of you.');
}
}
$('#clock-next').text(pair[1] ? pair[1].name : 'End of the workday');
};
// update it now
tick();
if (firstLoop) {
// update it every 1 second
setInterval(tick, 1000);
firstLoop = false;
}
// Add explanations and Vulekamali links
$('.planner-item').each(function(){
var itemID = $(this).attr('id');
var explanation = itemExplanations[itemID];
if (explanation == null) {
explanation = "";
}
var vulekamali = itemVulekamaliLinks[itemID];
var itemHeight = parseInt($(this).css('min-height'));
if (itemID != 'working-for-yourself'){
if (itemHeight > 80) {
$(this).find('.item-details').append('<div class="item-explanation">' + explanation + '</div>');
}
else {
if (explanation.length > 0) {
$(this).find('.item-name').append('<span class="explanation-icon" data-toggle="tooltip" title="'+ explanation +'">?</span>');
}
}
}
if (itemID !== 'working-for-yourself' && itemID !== 'national-debt' && itemID !== 'unallocated-reserves')
{
/*
$(this).append('<a class="vulekamali-link" target="_blank" href="' + vulekamali + '">Click for more information</a>');
*/
}
// Activate tooltips
$('[data-toggle="tooltip"]').tooltip();
});
/* Show the output */
$('#difference-wrapper').show();
$('#output-wrapper').show();
ga('send', 'event', 'taxclock', 'salary', $(this).val());
if (!engaged) {
ga('send', 'event', 'taxclock', 'engaged');
}
engaged = true;
// tell pym to resize
pymChild.sendHeight();
} else {
var footer = $('.footer');
pymChild.sendMessage("childShrank", footer.offset().top+footer.height());
}
});
/* Stupid hack to probably fix size once probably rendered initially */
setInterval(function() { pymChild.sendHeight(); }, 1000);
})
$(document).keypress(function(e) {
if(e.which == 13) {
scrollToOutput();
}
});
</script>
<!-- Google Analytics -->
<script>
(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','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-48399585-35', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>