forked from ualberta/institutional-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwhy-ualberta.html
599 lines (552 loc) · 26.4 KB
/
why-ualberta.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
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
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<!-- The Meta: These two must be before <title> -->
<!--[if IE]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<!-- The Title -->
<title>Framework Prototype</title>
<!-- The Other Meta -->
<meta name="description" content="University of Alberta">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!-- The Sheets -->
<!--[if lt IE 9]> <link href="./css/ualberta-ie.css" rel="stylesheet"><link href="./css/ualberta-ie-less.css" rel="stylesheet"> <![endif]-->
<!--[if IE 7]> <link href="./css/ualberta-ie7.css" rel="stylesheet"> <![endif]-->
<!--[if gt IE 8]><!--> <link href="./css/ualberta.css" rel="stylesheet"> <!--<![endif]-->
<!-- The Favicon -->
<link rel="shortcut icon" href="./ico/favicon.ico">
<!-- Le fav and touch icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="./ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="./ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="./ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="./ico/apple-touch-icon-57-precomposed.png">
<!-- The Head Scripts: MODERNIZR ONLY! All others before </body> -->
<script src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script>
</head>
<body>
<!-- Burn IE6 with fire -->
<!--[if lt IE 7]><p class=alert>Your browser is <em>ancient!</em> <a href="http://browsehappy.com/">Upgrade to a different browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to experience this site.</p><![endif]-->
<header> <!-- Start Header -->
<div class="blade-container"><!-- Blade: http://www.imdb.com/title/tt0120611/ -->
<div class="blade-inner">
<a class="brand" href="#">
<!-- for faculties only <img src="./img/logo2.svg" alt="University of Alberta" /> -->
</a>
<nav class="blade-navigation">
<ul class="quick-links-container">
<li id="ql" class="dropdown">
<a href="#" id="dLabel" class="dropdown-toggle hidden-desktop" data-toggle="dropdown">
<span class="quick-links-text">
Quick Links <b class="caret"></b>
</span>
<span class="icon-bar quick-links-button"></span>
<span class="icon-bar quick-links-button"></span>
<span class="icon-bar quick-links-button"></span>
</a>
<ul class="quick-links" role="menu" aria-labelledby="dLabel">
<li role="menuitem"><a href="#">Find a Person</a></li>
<li role="menuitem"><a href="#">ONEcard</a></li>
<li role="menuitem"><a href="#">Bear Tracks</a></li>
<li role="menuitem"><a href="#">Maps</a></li>
<li role="menuitem"><a href="#">Mail</a></li>
<li role="menuitem"><a href="#">eClass</a></li>
<li role="menuitem"><a href="#">Libraries</a></li>
</ul>
</li>
</ul>
</nav>
<div class="blade-search">
<i class="icon-search"></i>
<input type="search" class="search-query" placeholder="search">
</div>
</div>
</div> <!-- End Blade: http://www.imdb.com/title/tt0359013/ -->
<div class="banner-container"> <!-- Start Banner -->
<div class="banner-inner">
<h1>
<span class="identifier"></span>
<span class="site-title">University of Alberta</span>
</h1>
<div class="banner-logo">
<img src="http://www.ualberta.ca/~publicas/uofa/css/img/NavLogo.png" class="site-logo" alt="Site Logo" />
</div>
<nav class="audience-navigation">
<ul>
<li role="menuitem"><a href="#">Prospective Students</a></li>
<li role="menuitem"><a href="#">Current Students</a></li>
<li role="menuitem"><a href="#">Faculty & Staff</a></li>
<li role="menuitem"><a href="#">Alumni & Friends</a></li>
</ul>
</nav>
</div>
<div class="shadow-container"></div>
<div class="oval-container">
<div class="oval oval1"></div>
<div class="oval oval2"></div>
<div class="oval oval3"></div>
<div class="oval oval4"></div>
</div>
</div> <!-- End Banner -->
<div class="navigation-container"> <!-- Start Navigation -->
<nav id="main-nav" class="navigation-inner">
<ul>
<li>
<a class="navigation-toggle collapsed" data-toggle="collapse" data-target=".main-navigation">
Show Navigation <i class="icon-toggle-nav"></i>
</a>
<ul class="main-navigation collapse">
<li role="menuitem"><a href="#">Why UAlberta?</a></li>
<li role="menuitem"><a href="#">Faculties & Programs</a></li>
<li role="menuitem"><a href="#">Research</a></li>
<li role="menuitem"><a href="#">Admissions</a></li>
<li role="menuitem"><a href="#">Campus Life</a></li>
<li role="menuitem"><a href="#">News & Events</a></li>
<li role="menuitem" class="audience-link"><a href="#">Prospective Students</a></li>
<li role="menuitem" class="audience-link"><a href="#">Current Students</a></li>
<li role="menuitem" class="audience-link"><a href="#">Faculty & Staff</a></li>
<li role="menuitem" class="audience-link"><a href="#">Alumni & Friends</a></li>
</ul>
</li>
</ul>
</nav>
</div><!-- End Navigation -->
</header> <!-- End Header -->
<div class="content-wrapper why-ualberta">
<div class="page-title-row">
<div class="title-container container"> <!-- Container Start -->
<ul class="page-breadcrumb">
<li><a href="#" class="bc-home">UAlberta.ca</a></li>
<li>Why UAlberta?</li>
</ul>
<h2 class="page-title">Why UAlberta?</h2>
</div>
</div>
<div class="content-top-row start">
<div class="fma-container">
<div class="ualberta-minute fma-slide fma-active start">
<p class="visible-phone context">UAlberta is a Top-5 Canadian University that offers more than 400 programs plus:</p>
<a class="ualberta-link video-modal-link" href="http://www.youtube.com/embed/jNookHNIl4w?autoplay=1" data-target="#videoModal" data-toggle="modal" data-title="UAlberta in a Minute Video">
<i class="icon-play-circle"></i>
<span class="watch-video">Watch UAlberta in a Minute Video</span>
</a>
<p class="circle student-groups">
<span class="big">450+</span>
<span class="small">Active Student Groups</span>
</p>
<p class="circle fellowships">
<span class="small">The most</span>
<span class="big">3M Teaching Fellowships</span>
<span class="small">in Canada</span>
</p>
<p class="circle funding">
<span class="big">$500+ million</span>
<span class="small">in research funding</span>
</p>
<p class="circle alumni">
<span class="medium">Over</span>
<span class="big">250,000</span>
<span class="small">alumni worldwide</span>
</p>
<p class="circle subtle">
<i class="icon-beaker"></i>
</p>
<p class="circle subtle i2">
<i class="icon-user-md"></i>
</p>
</div>
<div class="student-experience fma-slide">
<h3>Today's Learners. Tomorrow's Leaders</h3>
<p>See what makes the student experience at UAlberta so intense, meaningful and life-changing.</p>
<div class="student-video-container container">
<div class="frame">
<div class="hover-caption-container">
<a href="http://www.why.ualberta.ca/studentexperiences.aspx#dodgeballfever_feature" class="image-shadow">
<img src="./img/wu-dodgeball.jpg" />
</a>
<i class="icon-play-circle"></i>
<div class="caption">
<p>World dodgeball record</p>
</div>
</div>
</div>
<div class="frame">
<div class="hover-caption-container">
<a href="http://www.why.ualberta.ca/studentexperiences.aspx#mechanicaleng_feature" class="image-shadow">
<img src="./img/wu-zamboni.jpg" />
</a>
<i class="icon-play-circle"></i>
<div class="caption">
<p>Building an automatic zamboni</p>
</div>
</div>
</div>
<div class="frame">
<div class="hover-caption-container">
<a href="http://www.why.ualberta.ca/studentexperiences.aspx#tetsutomiyashita_feature" class="image-shadow">
<img src="./img/wu-dinosaur.jpg" />
</a>
<i class="icon-play-circle"></i>
<div class="caption">
<p>Bringing Dinosaurs to life</p>
</div>
</div>
</div>
</div>
<button class="btn">Browse our programs</button>
<a href="#" class="secondary-link">
See more UAlberta student experiences
</a>
</div>
<div class="working-here fma-slide">
<h3>Discover. Connect. Grow.</h3>
<p>See what makes the work environment at UAlberta so unique and satisfying.</p>
<div class="hr-video-container container">
<div class="frame">
<div class="hover-caption-container">
<a href="http://www.why.ualberta.ca/studentexperiences.aspx#dodgeballfever_feature" class="image-shadow">
<img src="./img/wu-hr1.jpg" />
</a>
<i class="icon-play-circle"></i>
<div class="caption">
<p>Discover the benefits</p>
</div>
</div>
</div>
<div class="frame">
<div class="hover-caption-container">
<a href="http://www.why.ualberta.ca/studentexperiences.aspx#mechanicaleng_feature" class="image-shadow">
<img src="./img/wu-hr2.jpg" />
</a>
<i class="icon-play-circle"></i>
<div class="caption">
<p>Connect with the campus</p>
</div>
</div>
</div>
<div class="frame">
<div class="hover-caption-container">
<a href="http://www.why.ualberta.ca/studentexperiences.aspx#tetsutomiyashita_feature" class="image-shadow">
<img src="./img/wu-hr3.jpg" />
</a>
<i class="icon-play-circle"></i>
<div class="caption">
<p>Grow your career</p>
</div>
</div>
</div>
</div>
<button class="btn">Find a Career</button>
<a href="#" class="secondary-link">
Learn more about working at UAlberta
</a>
</div>
</div>
<div class="fma-tabs-container">
<div class="container">
<ul class="fma-tabs row-fluid">
<li class="fma-button-active"><a href="#">UAlberta in a Minute</a></li>
<li><a href="#">Student Experiences</a></li>
<li><a href="#">Working Here</a></li>
</ul>
</div>
</div>
</div>
<div class="content-container container">
<div class="content-inner row-fluid"> <!-- Second Row Start -->
<div class="span5 primary-content-area">
<h3>Why UAlberta Links</h3>
<ul class="link-mod-container">
<li class="link-mod-category link-mod-active">
<h4><a href="#most-popular">Most Popular</a></h4>
<ul class="link-mod-items searchable">
<li><a href="#">Careers</a></li>
<li><a href="#">Calendar</a></li>
<li><a href="#">Tuition and Fees</a></li>
<li><a href="#">Alberta Facts</a></li>
<li><a href="#">Class Size</a></li>
<li><a href="#">Student Experiences</a></li>
<li><a href="#">International Students</a></li>
<li><a href="#">About Edmonton</a></li>
<li><a href="#">History</a></li>
<li><a href="#">Go Abroad</a></li>
</ul>
</li>
<li class="link-mod-category">
<h4><a href="#">About UAlberta</a></h4>
<ul class="link-mod-items searchable">
<li><a href="#">About the UAlberta Promise</a></li>
<li><a href="#">Community Relations</a></li>
<li><a href="#">Distinctively UAlberta</a></li>
<li><a href="#">History</a></li>
<li><a href="#">Sports</a></li>
<li><a href="#">Students</a></li>
<li><a href="#">Teaching</a></li>
<li><a href="#">UAlberta Facts</a></li>
<li><a href="#">Vision, Mission & Motto</a></li>
</ul>
</li>
<li class="link-mod-category">
<h4><a href="#">Research Excellence</a></h4>
<ul class="link-mod-items searchable">
<li><a href="#">Recognition & Awards</a></li>
<li><a href="#">Research Strengths (Our Work)</a></li>
<li><a href="#">Sponsored Research Revenue</a></li>
<li><a href="#">Global Initiatives</a></li>
<li><a href="#">Research Support</a></li>
</ul>
</li>
<li class="link-mod-category">
<h4><a href="#">Leadership</a></h4>
<ul class="link-mod-items searchable">
<li><a href="#">Office of the President</a></li>
<li><a href="#">Provost & VP</a></li>
<li><a href="#">Senate & Chancellor</a></li>
<li><a href="#">University Governance</a></li>
<li><a href="#">Vice-President (Facilities and Operations)</a></li>
<li><a href="#">Vice-President (Finance & Administration)</a></li>
<li><a href="#">Vice-President (Research)</a></li>
<li><a href="#">Vice-President (University Relations)</a></li>
<li><a href="#">Chief Advancement Officer</a></li>
</ul>
</li>
<li class="link-mod-category">
<h4><a href="#">Teaching Excellence</a></h4>
<ul class="link-mod-items searchable">
<li><a href="#">Teaching Excellence</a></li>
<li><a href="#">Class Size</a></li>
<li><a href="#">Scholarships & Awards</a></li>
<li><a href="#">3M Teaching Fellowships</a></li>
</ul>
</li>
<li class="link-mod-category">
<h4><a href="#">International Impact</a></h4>
<ul class="link-mod-items searchable">
<li><a href="#">Global Connections & Research</a></li>
<li><a href="#">Global Education</a></li>
<li><a href="#">Go Abroad: Student Mobility</a></li>
<li><a href="#">International Students</a></li>
<li><a href="#">UAlberta School in Cortona, Italy</a></li>
</ul>
</li>
<li class="link-mod-category">
<h4><a href="#">A Top Employer</a></h4>
<ul class="link-mod-items searchable">
<li><a href="#">Career Opportunities</a></li>
<li><a href="#">Postdoctoral Fellowships</a></li>
<li><a href="#">Campus Sustainability</a></li>
</ul>
</li>
<li class="link-mod-category">
<h4><a href="#">Creating Opportunities</a></h4>
<ul class="link-mod-items searchable">
<li><a href="#">Hire a UAlberta Student</a></li>
<li><a href="#">Economic Impact</a></li>
<li><a href="#">Community Outreach</a></li>
<li><a href="#">Health Education & Research</a></li>
</ul>
</li>
<li class="link-mod-category">
<h4><a href="#">Across the Province</a></h4>
<ul class="link-mod-items searchable">
<li><a href="#">Advancing Alberta</a></li>
<li><a href="#">UAlberta & Edmonton</a></li>
<li><a href="#">UAlberta & Camrose (Augustana Campus)</a></li>
<li><a href="#">UAlberta ... en français (Campus Saint-Jean)</a></li>
<li><a href="#">UAlberta & Calgary</a></li>
<li><a href="#">Edmonton City of Learners Initiative</a></li>
</ul>
</li>
<li class="link-mod-category link-mod-filter">
<span class="link-mod-label">Filtered Links</span>
<i class="icon-filter"></i>
<input type="text" placeholder="filter links" id="link-mod-filter-field" name="link-mod-filter-field" />
<ul class="link-mod-results link-mod-items">
<li class="link-mod-result-title">
<h4></h4>
</li>
<li class="link-mod-result-none">
<p>Sorry, there's no links matching your filter. Try again, or send us some <a href="#">feedback</a> on how we can improve this page.</p>
</li>
</ul>
</li>
</ul>
</div>
<div class="span5 secondary-content-area clearfix">
<div class="secondary-row">
<!-- Admissions-->
<div class="module-container">
<h3>Admissions</h3>
<div class="frame">
<div class="hover-caption-container">
<a href="http://www.youtube.com/embed/cBgIkhinRww?autoplay=1" class="image-shadow video-modal-link" data-target="#videoModal" data-toggle="modal" data-title="Admissions Video">
<img src="./img/wu-admissions.png" />
</a>
<i class="icon-play-circle"></i>
<div class="caption">
<p>Colten Yamagishi talks about how easy it is to live, study and have fun at UAlberta.</p>
</div>
</div>
</div>
<p>UAlberta is a <strong>Top 5 Canadian university</strong> and one of the <strong>Top 100 in the world</strong>, home to more than 170 graduate programs, 200 undergraduate programs and 400 active student groups.</p>
<button class="btn" type="button">Apply Now</button>
<!-- video -->
</div>
<!-- End Admissions -->
<!-- Information Sessions -->
<div class="module-container">
<h3>Make a Gift</h3>
<p>
Your support provides scholarships and bursaries to students to help attract world-class talent, researchers, teachers and top students. Propel UAlberta to a whole new level.
</p>
<button class="btn" type="button">Give to the UofA</button>
</div>
<!-- End Make a Gift-->
</div>
</div>
<div class="span2 sidebar"> <!-- Sidebar Start -->
<div class="extrude campus-maps">
<h5 class="sidebar-title collapsed" data-toggle="collapse" data-target=".maps">
<a href="#maps"><i class="icon-map-marker"></i> Campus Maps</a>
</h5>
<div class="sidebar-content maps collapse">
<a href="#" class="image-shadow sidebar-image-container"><img src="./img/explore-campus.png" /></a>
<p>Find buildings, parking and food options, just to name a few, with Google Maps.</p>
</div>
</div>
<div class="extrude links-module">
<h5 class="sidebar-title collapsed" data-toggle="collapse" data-target=".links">
<a href="#calendar"><i class="icon-calendar"></i> University Calendar</a>
</h5>
<div class="sidebar-content links collapse">
<ul>
<li><a href="#">View the Calendar</a></li>
<li><a href="#">Costs, Tuition and Fees</a></li>
<li><a href="#">Major Deadlines</a></li>
<li><a href="#">Academic Schedule</a></li>
</ul>
</div>
</div>
</div> <!-- Sidebar End -->
</div> <!-- Second Row End -->
</div> <!-- Container End -->
</div>
<div class="bottom-footer-row"> <!-- Footer Bottom Row Start -->
<div class="footer-container container"> <!-- Footer Container Start -->
<div class="footer-inner row-fluid"> <!-- Footer Inner Start -->
<div class="span12 footer-copyright">
<ul class="footer-quick-links">
<li><a href="http://www.uofa.ualberta.ca/en/ContactUAlberta.aspx">Contact Us</a></li>
<li><a href="http://www.uofa.ualberta.ca/feedback.aspx">Feedback</a></li>
<li><a href="http://www.registrar.ualberta.ca/calendar/">University Calendar</a></li>
<li><a href="http://www.careers.ualberta.ca/">Careers</a></li>
<li><a href="http://www.rms.ualberta.ca/en/EmergNumbers.aspx">Emergency</a></li>
<li><a href="http://www.uofaweb.ualberta.ca/policies/">Policies</a></li>
<li><a href="http://www.weatheroffice.gc.ca/city/pages/ab-50_metric_e.html" target="_blank">Weather</a></li>
<li><a href="http://www.edmonton.ca/" target="_blank">Edmonton</a></li>
<li><a href="http://www.uofa.ualberta.ca/privacy.aspx">Privacy</a></li>
<li><a href="http://www.uofa.ualberta.ca/keepintouch.aspx">Keep in Touch</a></li>
<li><a href="#">Back to Top</a></li>
</ul>
<p>
© 2012 University of Alberta 116 St. and 85 Ave., <br class="visible-phone" />Edmonton, AB, Canada T6G 2R3
</p>
</div>
</div> <!-- Footer Inner End -->
</div> <!-- Footer Container End -->
</div> <!-- Footer Bottom Row End -->
</footer> <!-- Footer End -->
<div id="videoModal" class="modal hide fade">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3>Video Modal</h3>
</div>
<div class="modal-body">
<div class="video-mod-container">
<iframe type="text/html" src="" style="min-width: 300px; min-height: 100px;" frameborder="0"></iframe>
</div>
</div>
</div>
<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<!-- scripts concatenated and minified via build script -->
<script src="https://raw.github.com/ualberta/institutional-framework/production/js/bootstrap.min.js"></script>
<script src="https://raw.github.com/ualberta/institutional-framework/master/js/ualberta/jquery.livesearch.js"></script>
<script>
(function($) {
$(document).ready(function() {
$(document).on("click", ".video-modal-link", function () {
var videoSrc = $(this).attr('href');
// no modal for mobile
if($(window).width() < 500) {
window.location = videoSrc;
}
$('#videoModal iframe').attr('src', videoSrc);
$('#videoModal .modal-header h3').text($(this).data('title'));
});
$('.fma-tabs li').click(function() {
$('.fma-slide').removeClass('fma-active');
$('.fma-slide:eq('+$(this).index()+')').addClass('fma-active');
$('.fma-tabs li').removeClass('fma-button-active');
$('.fma-tabs li:eq('+$(this).index()+')').addClass('fma-button-active');
return false;
});
$('#videoModal').bind('hidden', function () {
$('#videoModal iframe').attr('src', '');
});
$('.start').removeClass('start');
// add active class to link category when clicked.
$('.link-mod-category > h4, .link-mod-category input').click(function() {
$('.link-mod-category').removeClass('link-mod-active');
$(this).parent().addClass('link-mod-active');
return false;
});
// populate results with all links by default
$('.link-mod-result-title h4').html('Displaying all '+$('.searchable a').size()+' links. <small>Begin typing to filter...');
$('.searchable a').each(function() {
$('.link-mod-results').append('<li class="link-mod-result-item">'+$(this).parent().html()+'</li>');
});
$('.link-mod-result-none').hide();
// live search plugin initialization
$('#link-mod-filter-field').search('.searchable a', function(on) {
// this happens on any keydown, keyup, keypress, or blur event
on.all(function(results) {
var size = results ? results.size() : 0
$('.link-mod-result-title h4').html(
'Displaying '+size+
' matches for "'+$('#link-mod-filter-field').val()+
'"'
);
});
// this happens when the filter field has nothing entered
on.reset(function() {
$('.link-mod-result-title h4').html('Displaying all '+$('.searchable a').size()+' links. <small>Begin typing to filter...');
$('.link-mod-result-item').remove();
$('.searchable a').each(function() {
$('.link-mod-results').append('<li class="link-mod-result-item">'+$(this).parent().html()+'</li>');
});
$('.link-mod-result-none').hide();
});
// this happens when there are no results base on the query
on.empty(function() {
$('.link-mod-result-none').show();
$('.link-mod-result-item').remove();
});
// this happens when there are results
on.results(function(results) {
$('.link-mod-result-none').hide();
$('.link-mod-result-item').remove();
results.each(function() {
$('.link-mod-results').append('<li class="link-mod-result-item">'+$(this).parent().html()+'</li>');
});
});
});
});
})(jQuery);
</script>
<!-- end scripts -->
</body>
</html>