-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
768 lines (627 loc) · 27.6 KB
/
index.html
File metadata and controls
768 lines (627 loc) · 27.6 KB
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
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
<!DOCTYPE html>
<!--[if IE 8 ]> <html class="ie8"> <![endif]-->
<!--[if IE 9 ]> <html class="ie9"> <![endif]-->
<head>
<!--Metadata-->
<meta charset="utf-8">
<title>Canadian Federation of Medical Students</title>
<meta name="description" content="Canadian Federation of Medical Students">
<meta name="keywords" content="CFMS, Medicine, Canada, Advocacy, Medical School, Association">
<meta name="author" content="Kevan Lu">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0"/>
<!--Favicon-->
<link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon">
<link rel="icon" href="/images/favicon.ico" type="image/x-icon">
<!--Stylesheets-->
<link rel="stylesheet" href="https://www.cfms.org/stylesheets/base.css">
<link rel="stylesheet" href="https://www.cfms.org/stylesheets/header.css">
<link rel="stylesheet" href="https://www.cfms.org/stylesheets/footer.css">
<link rel="stylesheet" href="https://www.cfms.org/stylesheets/loading.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<!--JQuery-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<!--DataTables-->
<link rel="stylesheet" type="text/css" href="//cdn.datatables.net/1.10.15/css/jquery.dataTables.css">
<script type="text/javascript" charset="utf8" src="//cdn.datatables.net/1.10.15/js/jquery.dataTables.js"></script>
<!--Firebase Code-->
<script src="https://www.gstatic.com/firebasejs/3.6.1/firebase.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyCRaJStQDuZ0nrn0b59kzYphlAkJ62flo8",
authDomain: "amber-heat-9132.firebaseapp.com",
databaseURL: "https://amber-heat-9132.firebaseio.com",
storageBucket: "amber-heat-9132.appspot.com",
messagingSenderId: "466232039218"
};
firebase.initializeApp(config);
</script>
<script type="text/javascript">
var storageRef = firebase.storage().ref();
var accountJustCreated = false;
function isSignedIn () {
return (firebase.auth().currentUser);
}
// function sendPasswordReset() {
// var email = document.getElementById('reset-email-address').value;
// firebase.auth().sendPasswordResetEmail(email).then(function() {
// // Password Reset Email Sent!
// vex.dialog.alert('<h3><strong>Password Reset Email Sent</strong></h3><p>Your Password Reset Email has been sent. Please check your inbox.</p>')
// }).catch(function(error) {
// // Handle Errors here.
// var errorCode = error.code;
// var errorMessage = error.message;
// if (errorCode == 'auth/invalid-email')
// vex.dialog.alert('<h3><strong>Invalid Email</strong></h3><p>The email address that you entered is invalid.</p>')
// else if (errorCode == 'auth/user-not-found')
// vex.dialog.alert('<h3><strong>User Not Found</strong></h3><p>The email address that you entered does not match a user on our system.</p>')
// });
// }
/**
* Deletes files with a given path
*/
function deleteFile (filePath){
storageRef.child(filePath).delete().then(function() {
//File deleted successfully
}).catch(function(error){
console.log("DELETE " + error);
return error;
});
}
/**
* Sets the file link from the target id to the correct url
*/
function setFileLink (id, url){
document.getElementById(id+'-link').innerHTML = '<a href="' + url + '" target="_blank">View File</a>';
}
function loadPrevFile (refPath, id, fileName){
//Set the button to show the file name
input = document.getElementById (id);
label = input.nextElementSibling;
label.querySelector( 'span' ).innerHTML = fileName;
//Set the URL to display by the button
storageRef.child(refPath + '/' + id + '/' + fileName).getDownloadURL().then(function(url) {
setFileLink (id, url);
}).catch(function(error) {
// File doesn't exist
});
}
/**
* Updates files uploaded for the Leadership Awards
*/
function handleFileSelect(evt) {
evt.stopPropagation();
evt.preventDefault();
var file = evt.target.files[0];
var metadata = {
'contentType': file.type
};
//Deletes the previous version of file, if it exists
//--------------------------------------------
var refPath = 'leadership-award/' + '2016-2017/' + firebase.auth().currentUser.uid;
firebase.database().ref(refPath).once('value').then(function(snapshot) {
var deletePath = refPath + '/' + evt.target.id + '/';
switch(evt.target.id) {
case 'personal-statement':
if (snapshot.child('personalStatement').exists())
deleteFile (deletePath + snapshot.val().personalStatement);
break;
case 'curriculum-vitae':
if (snapshot.child('curriculumVitae').exists())
deleteFile (deletePath + snapshot.val().curriculumVitae);
break;
case 'letter-good-standing':
if (snapshot.child('letterGoodStanding').exists())
deleteFile (deletePath + snapshot.val().letterGoodStanding);
break;
case 'reference-1':
if (snapshot.child('reference1').exists())
deleteFile (deletePath + snapshot.val().reference1);
break;
case 'reference-2':
if (snapshot.child('reference2').exists())
deleteFile (deletePath + snapshot.val().reference2);
break;
}
//Add the new version of the file
//--------------------------------------------
}).then (function() {
// Push to child path.
// [START oncomplete]
refPath = 'leadership-award/' + '2016-2017/' + firebase.auth().currentUser.uid + '/' + evt.target.id;
storageRef.child(refPath + '/' + file.name).put(file, metadata).then(function(snapshot) {
var url = snapshot.metadata.downloadURLs[0];
setFileLink (evt.target.id, url);
}).catch(function(error) {
// [START onfailure]
vex.dialog.alert('<h3><strong>Upload failed</strong></h3><p>' + error + '</p>');
// [END onfailure]
});
// [END oncomplete]
//Copies filenames of uploaded files onto database
//--------------------------------------------
}).then (function(){
refPath = 'leadership-award/' + '2016-2017/' + firebase.auth().currentUser.uid;
switch(evt.target.id) {
case 'personal-statement':
firebase.database().ref(refPath).update({
personalStatement:file.name
})
break;
case 'curriculum-vitae':
firebase.database().ref(refPath).update({
curriculumVitae:file.name
})
break;
case 'letter-good-standing':
firebase.database().ref(refPath).update({
letterGoodStanding:file.name
})
break;
case 'reference-1':
firebase.database().ref(refPath).update({
reference1:file.name
})
break;
case 'reference-2':
firebase.database().ref(refPath).update({
reference2:file.name
})
break;
}
});
}
function isInt (cmaMembershipID){
for (var i = 0; i < cmaMembershipID.length; i++){
var currentChar = cmaMembershipID.charAt(i);
if (currentChar < '0' || currentChar > '9')
return false;
}
return true;
}
function getTimeEST(){
//EST
offset = -5.0;
clientDate = new Date();
utc = clientDate.getTime() + (clientDate.getTimezoneOffset() * 60000);
serverDate = new Date(utc + (3600000*offset));
return (serverDate.toLocaleString());
}
/**
* Displays the submitted application for the currentUser
*/
function loadSubmission (){
//Loads user-associated data
var refPath = '/users/' + firebase.auth().currentUser.uid;
firebase.database().ref(refPath).once('value').then(function(snapshot) {
var firstName = snapshot.val().firstName;
var lastName = snapshot.val().lastName;
document.getElementById('submitted-name').textContent = firstName + ' ' + lastName;
document.getElementById('submitted-school').textContent = snapshot.val().medicalSchool;
document.getElementById('submitted-grad-year').textContent = snapshot.val().graduationYear;
});
//Loads other submitted data
refPath = 'leadership-award/' + '2016-2017/' + firebase.auth().currentUser.uid;
firebase.database().ref(refPath).once('value').then(function(snapshot) {
if (!snapshot.child('submitted').exists())
return;
document.getElementById('submitted-email').textContent = snapshot.val().emailAddress;
document.getElementById('submitted-cma-id').textContent = snapshot.val().cmaMembershipID;
var twitterHandle = snapshot.val().twitterHandle;
if (twitterHandle === '')
document.getElementById('submitted-twitter-handle').textContent = 'Not given';
else
document.getElementById('submitted-twitter-handle').innerHTML = '<a href="https://twitter.com/' + twitterHandle.substring(1) + '" target="_blank">' + twitterHandle + '</a>';
document.getElementById('submitted-attending-sgm').textContent = snapshot.val().meetingAttendance;
document.getElementById('submitted-date-time').textContent = snapshot.val().dateSubmitted;
//Loads submitted files
storageRef.child(refPath + '/personal-statement/' + snapshot.val().personalStatement).getDownloadURL().then(function(url) {
document.getElementById('submitted-personal-statement').href = url;
}).catch(function(error) {
// File doesn't exist
});
storageRef.child(refPath + '/curriculum-vitae/' + snapshot.val().curriculumVitae).getDownloadURL().then(function(url) {
document.getElementById('submitted-curriculum-vitae').href = url;
}).catch(function(error) {
// File doesn't exist
});
storageRef.child(refPath + '/letter-good-standing/' + snapshot.val().letterGoodStanding).getDownloadURL().then(function(url) {
document.getElementById('submitted-letter-good-standing').href = url;
}).catch(function(error) {
// File doesn't exist
});
storageRef.child(refPath + '/reference-1/' + snapshot.val().reference1).getDownloadURL().then(function(url) {
document.getElementById('submitted-reference-1').href = url;
}).catch(function(error) {
// File doesn't exist
});
storageRef.child(refPath + '/reference-2/' + snapshot.val().reference2).getDownloadURL().then(function(url) {
document.getElementById('submitted-reference-2').href = url;
}).catch(function(error) {
// File doesn't exist
});
});
//Hides the submission form and displays the application
var beforeSubmissionElements = document.getElementsByClassName('before-submission'), i;
for (var i = 0; i < beforeSubmissionElements.length; i ++)
beforeSubmissionElements[i].style.display = 'none';
var afterSubmissionElements = document.getElementsByClassName('after-submission'), i;
for (var i = 0; i < afterSubmissionElements.length; i ++)
afterSubmissionElements[i].style.display = 'block';
}
/**
* Handles the submit application button press
*/
function submitApplication() {
//Email Verification
var emailAddress = document.getElementById('email-address').value;
if (emailAddress.length < 4) {
vex.dialog.alert('<h3><strong>Enter an Email Address</strong></h3><p>Please enter an email address.</p>');
return;
}
//CMA Membership verification
var cmaMembershipID = document.getElementById('cma-membership').value;
if (cmaMembershipID.length !== 6 || !isInt(cmaMembershipID)){
vex.dialog.alert('<h3><strong>Invalid CMA Membership ID</strong></h3><p>Your CMA Membership ID should be a 6 digit number.</p>');
return;
}
//Ensures that every necessary file is present
var refPath = 'leadership-award/' + '2016-2017/' + firebase.auth().currentUser.uid;
firebase.database().ref(refPath).once('value').then(function(snapshot) {
if (!snapshot.child('personalStatement').exists()
|| !snapshot.child('curriculumVitae').exists()
|| !snapshot.child('letterGoodStanding').exists()
|| !snapshot.child('reference1').exists()
|| !snapshot.child('reference2').exists()){
vex.dialog.alert('<h3><strong>Missing Supporting Document</strong></h3><p>You are missing a supporting document.</p>');
return;
}
//Twitter Handle sanitization
var twitterHandle = document.getElementById('twitter-handle').value;
if (twitterHandle.charAt(0) !== '@')
twitterHandle = '@' + twitterHandle;
if (twitterHandle.length === 1 && twitterHandle.charAt(0) === '@')
twitterHandle = '';
//Meeting Attendance conversion to yes/no.
var meetingAttendance = document.getElementById('attend-cfms-meeting').value;
if (meetingAttendance.charAt(0) === 'Y')
meetingAttendance = "Yes";
else
meetingAttendance = "No";
//Saves the submission data into the database
firebase.database().ref(refPath).update({
submitted:true,
name:document.getElementById('account-name').textContent,
medicalSchool:document.getElementById('account-school').textContent,
graduationYear:document.getElementById('account-grad-year').textContent,
emailAddress:emailAddress,
cmaMembershipID:cmaMembershipID,
twitterHandle:twitterHandle,
meetingAttendance:meetingAttendance,
dateSubmitted:getTimeEST(),
linkPersonalStatement:document.getElementById('personal-statement-link').childNodes[0].href,
linkCurriculumVitae:document.getElementById('curriculum-vitae-link').childNodes[0].href,
linkLetterGoodStanding:document.getElementById('letter-good-standing-link').childNodes[0].href,
linkReference1:document.getElementById('reference-1-link').childNodes[0].href,
linkReference2:document.getElementById('reference-2-link').childNodes[0].href,
});
//Displays success dialog
vex.dialog.alert('<h3><strong>Application Submitted</strong></h3><p>Congratulations! You have successfully submitted your application.</p>');
//Loads the submission fields
loadSubmission ();
});
}
</script>
<!--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','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-77140171-1', 'auto');
ga('send', 'pageview');
</script>
<!--Scroll Reveal-->
<script src="/js/scrollreveal.min.js"></script>
<script>
window.sr = ScrollReveal();
</script>
<style>
/* Ensure elements load hidden before ScrollReveal runs */
.animate { visibility: hidden; }
</style>
<meta name="description" content="We are an organization representing over 8,000 medical students from 14 Canadian medical student societies from coast to coast. We represent medical students to the public, to the federal government, and to national and international medical organizations.">
<!--Page Specific Stylesheet-->
<link rel="stylesheet" href="https://www.cfms.org/stylesheets/home.css">
</head>
<body ng-app="authApp" ng-controller="AuthController">
<div id="home-header">
<div id="top-padding"></div>
<div id="top-bar" class="invert en">
<div id="top-icon" class="animate">
<div id="logo-group" class="en">
<img id="logo-invert" src="/images/cfms-logo-invert.svg">
<img id="logo" src="/images/cfms-logo.svg">
<a href="/">CFMS</a>
</div>
<span id="logo-desc"><a class="en" href="/">Canadian Federation of<br>Medical Students</a></span>
</div>
<div id="top-hamburger" class="animate">
<a onclick="return false;" id="hamburger-toggle" href=""><span></span></a>
</div>
<div id="top-nav" class="animate">
<ul class="en">
<li id="who-we-are"><a class="top-level" href="/who-we-are/">Who we are</a></li>
<li id="what-we-do"><a class="top-level" href="/what-we-do/">What we do</a>
<div id="sub-menu">
<ul>
<li><a href="/what-we-do/advocacy/">Advocacy</a></li>
<li><a href="/what-we-do/education/">Education</a></li>
<li><a href="/what-we-do/global-health/">Global Health</a></li>
<li><a href="/what-we-do/student-affairs/">Student Affairs</a></li>
</ul>
</div>
</li>
<li id="resources"><a class="top-level" href="/resources/">Resources</a></li>
<li id="meetings"><a class="top-level" href="/meetings/">Meetings</a>
<div id="sub-menu">
<ul>
<li><a href="/meetings/sgm-2017-winnipeg.html">SGM 2017 – Winnipeg, MB</a></li>
<li><a href="/meetings/agm-2016-edmonton.html">AGM 2016 – Edmonton, AB</a></li>
<li><a href="/meetings/sgm-2016-montreal.html">SGM 2016 – Montreal, QC</a></li>
</ul>
</div>
</li>
<li id="members"><a class="top-level" href="/members/">Members</a></li>
<li id="news"><a class="top-level" href="/news/">News</a></li>
<li id="login-button-wrapper"><a href='' onclick='return false' id="login-button" class="login-modal">Login</a></li>
<li id="lang-toggle"><a id="en" class="current-lang" href="#">EN</a> / <a id="fr" href="/fr/">FR</a></li>
</ul>
</div>
</div>
<!--Hide the non-inverted logo and invert the top bar colours-->
<script type="text/javascript">
document.querySelector( "#top-bar" ).classList.toggle("invert");
document.querySelector( "#logo" ).classList.toggle("hidden");
</script>
<div id="home-title">Canadian Federation of Medical Students</div>
<div id="home-subtitle">
We are an organization representing over 8,000 medical students from 14 Canadian medical student societies from coast to coast. We represent medical students to the public, to the federal government, and to national and international medical organizations.
<div class="button">
<a href="about-us.html">
Learn more
</a>
</div>
</div>
</div>
<!-- Option News Strip -->
<div id="news-strip">
<a>
<i class="fa fa-exclamation-circle" style="padding-right:5px;"></i>
Something missing on our new site? Visit our old one at <a href='http://www.old.cfms.org'>www.old.cfms.org</a>!
</a>
</div>
<div id="featured-links">
<h1>
What's new?
</h1>
<div class="flex-wrapper">
<a href="meetings/agm-2016-edmonton.html">
<div class="featured-link" style="background: url(/images/home-link-thumbs/agm-2016.jpg) no-repeat center center; background-size:cover">
</div>
<div class="featured-link-text">See what happened at the 2016 CFMS Annual General Meeting</div>
</a>
<a href="resources/student-finances.html">
<div class="featured-link" style="background: url(/images/home-link-thumbs/cfms-co-brand-logo.jpg) no-repeat center center; background-size:cover">
</div>
<div class="featured-link-text">Student Financial Advice from MD Financial Management</div>
</a>
<a href="who-we-are">
<div class="featured-link" style="background: url(/images/home-link-thumbs/exec-2016-2017.jpg) no-repeat center center; background-size:cover">
</div>
<div class="featured-link-text">Meet your 2016-17 Executive team</div>
</a>
<a href="">
<div class="featured-link" style="background: url(/images/home-link-thumbs/40th-celebration.png) no-repeat center center; background-size:cover">
</div>
<div class="featured-link-text">Celebrating our 40<sup>th</sup> Anniversary!<br>Details to come</div>
</a>
</div>
</div>
<!-- Displays the homepage banner -->
<div id="home-columns">
<div id="recent-news">
<h1>
Recent news
<span id="more-news-button" class="button"><a href="news/archives/">See All Articles</a></span>
</h1>
<div id="recent-news-list">
<div class="news-date">May 18</div>
<li>
<div class="news-link"><a href="/2017/05/18/call-for-cfms-national-exchange-officer.html">Call for CFMS National Exchange Officer</a></div>
<div class="news-desc">The CFMS National Exchange Officers (NEOs) are the students responsible for facilitating and managing exchange opportunities offered to Canadian medical student through the International Federation of Medical Student Exchange program.</div>
</li>
<div class="news-date">May 02</div>
<li>
<div class="news-link"><a href="/2017/05/02/medical-students-support-unmatched-colleagues.html">Medical Students Support Unmatched Colleagues</a></div>
<div class="news-desc">The Canadian Federation of Medical Students (CFMS) is deeply alarmed at the large number of unmatched Canadian Medical Graduates (CMGs) in the 2017 CaRMS R-1 Match.</div>
</li>
<div class="news-date">Apr 10</div>
<li>
<div class="news-link"><a href="/2017/04/10/cfms-sgm-2017-call-for-nominations-for-vp-communications.html">CFMS SGM 2017: Call for Nominations for VP Communications</a></div>
<div class="news-desc">Nominations are now open for the position of Vice-President Communications of the Canadian Federation of Medical Students (CFMS).</div>
</li>
<div class="news-date">Apr 10</div>
<li>
<div class="news-link"><a href="/2017/04/10/call-for-applications-ifmsa-general-assembly-in-tanzania.html">Call for Applications: IFMSA General Assembly in Tanzania</a></div>
<div class="news-desc">Nominations are now open for the position of Vice-President Communications of the Canadian Federation of Medical Students (CFMS).</div>
</li>
<div class="news-date">Mar 08</div>
<li>
<div class="news-link"><a href="/2017/03/08/sgm-2017-winnipeg-registration-now-open.html">SGM 2017 Winnipeg - Registration NOW OPEN</a></div>
<div class="news-desc">Join us in Winnipeg, MB for the CFMS Spring General Meeting, in conjunction with the Canadian Conference on Medical Education, April 28-29, 2017!</div>
</li>
</div>
</div>
<div id="sponsors">
<h1>
Sponsored by
<span style="opacity:0.5">:</span>
</h1>
<div id="sponsor-logo">
<a href="https://mdm.ca/"><img src="/images/mdfm_en_fr.jpg"></img></a>
</div>
</div>
</div>
<script type="text/javascript">
function getEmail(username){
var hostname = "cfms.org";
var linktext = username + "@" + hostname;
document.write("<a class='email' href='" + "mail" + "to:" + username + "@" + hostname + "'>" + linktext + "</a>");
}
</script>
<div id="footer">
<div class="column">
<h1>
<div id="twitter-title">
Latest tweets
<span style="opacity:0.3">:</span></div>
<div id="twitter-handle"><a href="https://twitter.com/cfmsfemc">@CFMSFEMC</a></div>
</h1>
<div class="icon"><i class="fa fa-twitter"></i></div>
<div id="latest-tweets">
</div>
</div>
<div class="column">
<h1>Contact us <span style="opacity:0.3">:</span></h1>
<div class="icon"><i class="fa fa-map-marker"></i></div>
<li>
Canadian Federation of Medical Students<br>
267 O'Connor Street, Suite 401<br>
Ottawa, ON K2P 1V3
</li>
<div class="icon"><i class="fa fa-phone"></i></div>
<li>
<b>Phone</b>: 613–565–7740<br>
<b>Fax</b>: 613–565–7742
</li>
<div class="icon"><i class="fa fa-envelope-o mail"></i></div>
<div id="emails">
<li><b>General Inquiries</b>: Rosemary Conliffe<br>
<script>getEmail("office")</script>
</li>
<li><b>Media</b>: Usman Khan<br>
<script>getEmail("vpcommunications")</script>
</li>
<li><b>Information Technology</b>: Pavel Yarmak<br>
<script>getEmail("it")</script>
</li>
</div>
</div>
<div class="column">
<h1>
Find us on <span style="opacity:0.3">:</span>
<div id="social-media">
<a class="social-icon" href="https://www.facebook.com/CFMSFEMC"><i class="fa fa-facebook"></i></a>
/
<a class="social-icon" href="https://twitter.com/cfmsfemc"><i class="fa fa-twitter"></i></a>
/
<a class="social-icon" href="https://www.linkedin.com/company/canadian-federation-of-medical-students-cfms-"><i class="fa fa-linkedin"></i></a>
</div>
</h1>
<div class="icon"><i class="fa fa-sitemap"></i></div>
<li>
<b>Site map:</b> <a href="/sitemap.html">cfms.org/sitemap.html</a>
</li>
<div class="icon"><i class="fa fa-copyright"></i></div>
<li>
<script>document.write((new Date()).getFullYear())</script>
CFMS. All Rights Reserved.<br>Developed by <a href="http://www.kevan.lu">Kevan Lu</a> & <a href="http://pavel.yarmak.me/">Pavel Yarmak</a>
</li>
</div>
</div>
<script src="/js/twitterFetcher_min.js" type="text/javascript"></script>
<script type="text/javascript">
window.sr = ScrollReveal();
sr.reveal('.animate', { duration: 500, distance: '5px', scale: 1 } );
document.querySelector( "#hamburger-toggle" ).addEventListener( "click", function() {
this.classList.toggle( "active" );
document.querySelector("#top-nav").classList.toggle("active");
sr.reveal('#top-nav', {distance: '0px'});
});
//Gets latest tweets
var tweetConfig = {
"id": '616581601191833602',
"domId": 'latest-tweets',
"maxTweets": 3,
"enableLinks": true,
"showPermalinks": false,
"showUser": false,
"showInteraction": false,
"dateFunction": dateFormatter
};
//Formats the tweet dates
function dateFormatter(date) {
var months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
var hour = date.getHours();
//0:00 = 12 AM
if (hour == 0)
var time = "12:" + date.getMinutes();
else
time = (hour%12) + ":" + date.getMinutes();
if (hour > 0 && hour < 12)
time += " AM";
else
time += " PM";
var month = months[date.getMonth()];
var day = date.getDate();
var year = date.getFullYear();
return time + " – " + month + " " + day + ", " + year;
}
twitterFetcher.fetch(tweetConfig);
</script>
<script src="/js/jquery-scrolltofixed-min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
if($(window).width() >= 960){
$('#scroll').scrollToFixed({
minWidth: 960,
marginTop: 20,
limit: function() {
var limit = $('#footer').offset().top - $('#scroll').height() - 40;
return limit;
}
});
}
});
</script>
<!-- Modal Dialogs -->
<script src="/js/vex.combined.min.js"></script>
<script>vex.defaultOptions.className = 'vex-theme-default';</script>
<link rel="stylesheet" href="https://www.cfms.org/stylesheets/vex.css" />
<link rel="stylesheet" href="https://www.cfms.org/stylesheets/vex-theme-default.css" />
<script>
$('.redirect-modal').click(function(){
vex.dialog.confirm({
message: '<h3><strong>Oh no!</strong></h3><p>Unfortunately, this feature or resource is not yet available on the new CFMS website. To access it, please visit the old CFMS website.</p>',
buttons: [
$.extend({}, vex.dialog.buttons.YES, { text: 'Go to old website' }),
$.extend({}, vex.dialog.buttons.NO, { text: 'Cancel' })
],
callback: function(value) {
if (value) {window.location.href = "http://www.old.cfms.org";}
}
});
});
</script>
<script type="text/javascript">
window.config = {
nav: JSON.parse(`[{"lang":"en","acronym":"CFMS","title":"Canadian Federation of<br>Medical Students","lang_path":"","who_we_are":"Who we are","what_we_do":"What we do","advocacy":"Advocacy","education":"Education","global_health":"Global Health","student_affairs":"Student Affairs","resources":"Resources","meetings":"Meetings","members":"Members","news":"News","login":"Login","logout":"Logout"},{"lang":"fr","acronym":"FEMC","title":"Fédération des étudiants<br>et des étudiantes en<br>médecine du Canada","lang_path":"/fr","who_we_are":"Qui sommes-nous?","what_we_do":"Que faisons-nous?","advocacy":"Représentation","education":"Éducation","global_health":"Santé mondiale","student_affairs":"Affaires étudiantes","resources":"Ressources","meetings":"Réunions","members":"Membres","news":"Nouvelles","login":"Se connecter","logout":"Se déconnecter"}]`),
lang: `en`,
leadership_award_year: `2016-2017`,
env: `production`
}
</script>
<script type="text/javascript" src="/js/bundle.js"></script>
</body>
</html>