forked from ithoq/MagicTheme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
components_tooltips.html
678 lines (634 loc) · 38.7 KB
/
components_tooltips.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
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
<!doctype html>
<!--[if lte IE 9]> <html class="lte-ie9" lang="en"> <![endif]-->
<!--[if gt IE 9]><!--> <html lang="en"> <!--<![endif]-->
<head>
<meta charset="UTF-8">
<meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Remove Tap Highlight on Windows Phone IE -->
<meta name="msapplication-tap-highlight" content="no"/>
<link rel="icon" type="image/png" href="assets/img/favicon-16x16.png" sizes="16x16">
<link rel="icon" type="image/png" href="assets/img/favicon-32x32.png" sizes="32x32">
<title>Altair Admin v2.2.0</title>
<!-- uikit -->
<link rel="stylesheet" href="bower_components/uikit/css/uikit.almost-flat.min.css" media="all">
<!-- flag icons -->
<link rel="stylesheet" href="assets/icons/flags/flags.min.css" media="all">
<!-- altair admin -->
<link rel="stylesheet" href="assets/css/main.min.css" media="all">
<!-- matchMedia polyfill for testing media queries in JS -->
<!--[if lte IE 9]>
<script type="text/javascript" src="bower_components/matchMedia/matchMedia.js"></script>
<script type="text/javascript" src="bower_components/matchMedia/matchMedia.addListener.js"></script>
<![endif]-->
</head>
<body class=" sidebar_main_open sidebar_main_swipe">
<!-- main header -->
<header id="header_main">
<div class="header_main_content">
<nav class="uk-navbar">
<!-- main sidebar switch -->
<a href="#" id="sidebar_main_toggle" class="sSwitch sSwitch_left">
<span class="sSwitchIcon"></span>
</a>
<!-- secondary sidebar switch -->
<a href="#" id="sidebar_secondary_toggle" class="sSwitch sSwitch_right sidebar_secondary_check">
<span class="sSwitchIcon"></span>
</a>
<div id="menu_top_dropdown" class="uk-float-left uk-hidden-small">
<div class="uk-button-dropdown" data-uk-dropdown="{mode:'click'}">
<a href="#" class="top_menu_toggle"><i class="material-icons md-24"></i></a>
<div class="uk-dropdown uk-dropdown-width-3">
<div class="uk-grid uk-dropdown-grid" data-uk-grid-margin>
<div class="uk-width-2-3">
<div class="uk-grid uk-grid-width-medium-1-3 uk-margin-top uk-margin-bottom uk-text-center" data-uk-grid-margin>
<a href="page_mailbox.html">
<i class="material-icons md-36"></i>
<span class="uk-text-muted uk-display-block">Mailbox</span>
</a>
<a href="page_invoices.html">
<i class="material-icons md-36"></i>
<span class="uk-text-muted uk-display-block">Invoices</span>
</a>
<a href="page_chat.html">
<i class="material-icons md-36 md-color-red-600"></i>
<span class="uk-text-muted uk-display-block">Chat</span>
</a>
<a href="page_scrum_board.html">
<i class="material-icons md-36"></i>
<span class="uk-text-muted uk-display-block">Scrum Board</span>
</a>
<a href="page_snippets.html">
<i class="material-icons md-36"></i>
<span class="uk-text-muted uk-display-block">Snippets</span>
</a>
<a href="page_user_profile.html">
<i class="material-icons md-36"></i>
<span class="uk-text-muted uk-display-block">User profile</span>
</a>
</div>
</div>
<div class="uk-width-1-3">
<ul class="uk-nav uk-nav-dropdown uk-panel">
<li class="uk-nav-header">Components</li>
<li><a href="components_accordion.html">Accordions</a></li>
<li><a href="components_buttons.html">Buttons</a></li>
<li><a href="components_notifications.html">Notifications</a></li>
<li><a href="components_sortable.html">Sortable</a></li>
<li><a href="components_tabs.html">Tabs</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="uk-navbar-flip">
<ul class="uk-navbar-nav user_actions">
<li><a href="#" id="full_screen_toggle" class="user_action_icon uk-visible-large"><i class="material-icons md-24 md-light"></i></a></li>
<li><a href="#" id="main_search_btn" class="user_action_icon"><i class="material-icons md-24 md-light"></i></a></li>
<li data-uk-dropdown="{mode:'click',pos:'bottom-right'}">
<a href="#" class="user_action_icon"><i class="material-icons md-24 md-light"></i><span class="uk-badge">16</span></a>
<div class="uk-dropdown uk-dropdown-xlarge">
<div class="md-card-content">
<ul class="uk-tab uk-tab-grid" data-uk-tab="{connect:'#header_alerts',animation:'slide-horizontal'}">
<li class="uk-width-1-2 uk-active"><a href="#" class="js-uk-prevent uk-text-small">Messages (12)</a></li>
<li class="uk-width-1-2"><a href="#" class="js-uk-prevent uk-text-small">Alerts (4)</a></li>
</ul>
<ul id="header_alerts" class="uk-switcher uk-margin">
<li>
<ul class="md-list md-list-addon">
<li>
<div class="md-list-addon-element">
<span class="md-user-letters md-bg-cyan">db</span>
</div>
<div class="md-list-content">
<span class="md-list-heading"><a href="pages_mailbox.html">Qui praesentium dolorem.</a></span>
<span class="uk-text-small uk-text-muted">Consequatur accusantium quia iure debitis ut itaque magni nobis.</span>
</div>
</li>
<li>
<div class="md-list-addon-element">
<img class="md-user-image md-list-addon-avatar" src="assets/img/avatars/avatar_07_tn.png" alt=""/>
</div>
<div class="md-list-content">
<span class="md-list-heading"><a href="pages_mailbox.html">Laboriosam qui.</a></span>
<span class="uk-text-small uk-text-muted">Nisi et consectetur et rem sit eius doloribus quis alias.</span>
</div>
</li>
<li>
<div class="md-list-addon-element">
<span class="md-user-letters md-bg-light-green">yi</span>
</div>
<div class="md-list-content">
<span class="md-list-heading"><a href="pages_mailbox.html">Odio autem magni.</a></span>
<span class="uk-text-small uk-text-muted">Aspernatur et unde et atque ut commodi.</span>
</div>
</li>
<li>
<div class="md-list-addon-element">
<img class="md-user-image md-list-addon-avatar" src="assets/img/avatars/avatar_02_tn.png" alt=""/>
</div>
<div class="md-list-content">
<span class="md-list-heading"><a href="pages_mailbox.html">Molestiae fuga est.</a></span>
<span class="uk-text-small uk-text-muted">Vel possimus autem est odio aut eaque exercitationem maiores.</span>
</div>
</li>
<li>
<div class="md-list-addon-element">
<img class="md-user-image md-list-addon-avatar" src="assets/img/avatars/avatar_09_tn.png" alt=""/>
</div>
<div class="md-list-content">
<span class="md-list-heading"><a href="pages_mailbox.html">Sint facere.</a></span>
<span class="uk-text-small uk-text-muted">Nihil error qui repudiandae rerum illum aliquam recusandae omnis.</span>
</div>
</li>
</ul>
<div class="uk-text-center uk-margin-top uk-margin-small-bottom">
<a href="page_mailbox.html" class="md-btn md-btn-flat md-btn-flat-primary js-uk-prevent">Show All</a>
</div>
</li>
<li>
<ul class="md-list md-list-addon">
<li>
<div class="md-list-addon-element">
<i class="md-list-addon-icon material-icons uk-text-warning"></i>
</div>
<div class="md-list-content">
<span class="md-list-heading">Deserunt iusto nisi.</span>
<span class="uk-text-small uk-text-muted uk-text-truncate">Modi labore sapiente beatae dolores nobis earum.</span>
</div>
</li>
<li>
<div class="md-list-addon-element">
<i class="md-list-addon-icon material-icons uk-text-success"></i>
</div>
<div class="md-list-content">
<span class="md-list-heading">Sunt veritatis ex.</span>
<span class="uk-text-small uk-text-muted uk-text-truncate">Ut nihil voluptatem ut corrupti tempore sit vel.</span>
</div>
</li>
<li>
<div class="md-list-addon-element">
<i class="md-list-addon-icon material-icons uk-text-danger"></i>
</div>
<div class="md-list-content">
<span class="md-list-heading">Aut est dicta.</span>
<span class="uk-text-small uk-text-muted uk-text-truncate">Cum vitae error quaerat illum inventore enim et.</span>
</div>
</li>
<li>
<div class="md-list-addon-element">
<i class="md-list-addon-icon material-icons uk-text-primary"></i>
</div>
<div class="md-list-content">
<span class="md-list-heading">Perferendis voluptas non.</span>
<span class="uk-text-small uk-text-muted uk-text-truncate">Praesentium officia sunt magnam consequatur.</span>
</div>
</li>
</ul>
</li>
</ul>
</div>
</div>
</li>
<li data-uk-dropdown="{mode:'click',pos:'bottom-right'}">
<a href="#" class="user_action_image"><img class="md-user-image" src="assets/img/avatars/avatar_11_tn.png" alt=""/></a>
<div class="uk-dropdown uk-dropdown-small">
<ul class="uk-nav js-uk-prevent">
<li><a href="page_user_profile.html">My profile</a></li>
<li><a href="page_settings.html">Settings</a></li>
<li><a href="login.html">Logout</a></li>
</ul>
</div>
</li>
</ul>
</div>
</nav>
</div>
<div class="header_main_search_form">
<i class="md-icon header_main_search_close material-icons"></i>
<form class="uk-form">
<input type="text" class="header_main_search_input" />
<button class="header_main_search_btn uk-button-link"><i class="md-icon material-icons"></i></button>
</form>
</div>
</header><!-- main header end -->
<!-- main sidebar -->
<aside id="sidebar_main">
<div class="sidebar_main_header">
<div class="sidebar_logo">
<a href="index.html" class="sSidebar_hide"><img src="assets/img/logo_main.png" alt="" height="15" width="71"/></a>
<a href="index.html" class="sSidebar_show"><img src="assets/img/logo_main_small.png" alt="" height="32" width="32"/></a>
</div>
<div class="sidebar_actions">
<select id="lang_switcher" name="lang_switcher">
<option value="gb" selected>English</option>
</select>
</div>
</div>
<div class="menu_section">
<ul>
<li title="Dashboard">
<a href="index.html">
<span class="menu_icon"><i class="material-icons"></i></span>
<span class="menu_title">Dashboard</span>
</a>
</li>
<li title="Mailbox">
<a href="page_mailbox.html">
<span class="menu_icon"><i class="material-icons"></i></span>
<span class="menu_title">Mailbox</span>
</a>
</li>
<li title="Invoices">
<a href="page_invoices.html">
<span class="menu_icon"><i class="material-icons"></i></span>
<span class="menu_title">Invoices</span>
</a>
</li>
<li title="Chat">
<a href="page_chat.html">
<span class="menu_icon"><i class="material-icons"></i></span>
<span class="menu_title">Chat</span>
</a>
</li>
<li title="Scrum Board">
<a href="page_scrum_board.html">
<span class="menu_icon"><i class="material-icons"></i></span>
<span class="menu_title">Scrum Board</span>
</a>
</li>
<li title="Snippets">
<a href="page_snippets.html">
<span class="menu_icon"><i class="material-icons"></i></span>
<span class="menu_title">Snippets</span>
</a>
</li>
<li title="User Profile">
<a href="page_user_profile.html">
<span class="menu_icon"><i class="material-icons"></i></span>
<span class="menu_title">User Profile</span>
</a>
</li>
<li>
<a href="#">
<span class="menu_icon"><i class="material-icons"></i></span>
<span class="menu_title">Forms</span>
</a>
<ul>
<li><a href="forms_regular.html">Regular Elements</a></li>
<li><a href="forms_advanced.html">Advanced Elements</a></li>
<li><a href="forms_file_upload.html">File Upload</a></li>
<li><a href="forms_validation.html">Validation</a></li>
<li><a href="forms_wizard.html">Wizard</a></li>
<li class="menu_subtitle">WYSIWYG Editors</li>
<li><a href="forms_wysiwyg_ckeditor.html">CKeditor</a></li>
<li><a href="forms_wysiwyg_tinymce.html">TinyMCE</a></li>
</ul>
</li>
<li>
<a href="#">
<span class="menu_icon"><i class="material-icons"></i></span>
<span class="menu_title">Layout</span>
</a>
<ul>
<li><a href="layout_top_menu.html">Top Menu</a></li>
<li><a href="layout_header_full.html">Full Header</a></li>
</ul>
</li>
<li>
<a href="#">
<span class="menu_icon"><i class="material-icons"></i></span>
<span class="menu_title">Kendo UI Widgets</span>
</a>
<ul>
<li><a href="kendoui_autocomplete.html">Autocomplete</a></li>
<li><a href="kendoui_calendar.html">Calendar</a></li>
<li><a href="kendoui_colorpicker.html">ColorPicker</a></li>
<li><a href="kendoui_combobox.html">ComboBox</a></li>
<li><a href="kendoui_datepicker.html">DatePicker</a></li>
<li><a href="kendoui_datetimepicker.html">DateTimePicker</a></li>
<li><a href="kendoui_dropdown_list.html">DropDownList</a></li>
<li><a href="kendoui_masked_input.html">Masked Input</a></li>
<li><a href="kendoui_menu.html">Menu</a></li>
<li><a href="kendoui_multiselect.html">MultiSelect</a></li>
<li><a href="kendoui_numeric_textbox.html">Numeric TextBox</a></li>
<li><a href="kendoui_panelbar.html">PanelBar</a></li>
<li><a href="kendoui_timepicker.html">TimePicker</a></li>
<li><a href="kendoui_toolbar.html">Toolbar</a></li>
<li><a href="kendoui_window.html">Window</a></li>
</ul>
</li>
<li>
<a href="#">
<span class="menu_icon"><i class="material-icons"></i></span>
<span class="menu_title">Components</span>
</a>
<ul>
<li><a href="components_accordion.html">Accordions</a></li>
<li><a href="components_buttons.html">Buttons</a></li>
<li><a href="components_fab.html">Buttons: FAB</a></li>
<li><a href="components_cards.html">Cards</a></li>
<li><a href="components_colors.html">Colors</a></li>
<li><a href="components_common.html">Common</a></li>
<li><a href="components_dropdowns.html">Dropdowns</a></li>
<li><a href="components_dynamic_grid.html">Dynamic Grid</a></li>
<li><a href="components_grid.html">Grid</a></li>
<li><a href="components_icons.html">Icons</a></li>
<li><a href="components_modal.html">Lightbox/Modal</a></li>
<li><a href="components_lists.html">Lists</a></li>
<li><a href="components_nestable.html">Nestable</a></li>
<li><a href="components_notifications.html">Notifications</a></li>
<li><a href="components_panels.html">Panels</a></li>
<li><a href="components_preloaders.html">Preloaders</a></li>
<li><a href="components_sortable.html">Sortable</a></li>
<li><a href="components_tables.html">Tables</a></li>
<li><a href="components_tables_examples.html">Tables Examples</a></li>
<li><a href="components_tabs.html">Tabs</a></li>
<li class="act_item"><a href="components_tooltips.html">Tooltips</a></li>
<li><a href="components_typography.html">Typography</a></li>
</ul>
</li>
<li >
<a href="#">
<span class="menu_icon"><i class="material-icons"></i></span>
<span class="menu_title">E-commerce</span>
</a>
<ul>
<li><a href="ecommerce_product_details.html">Product Details</a></li>
<li><a href="ecommerce_product_edit.html">Product Edit</a></li>
<li><a href="ecommerce_products_grid.html">Products Grid</a></li>
<li><a href="ecommerce_products_list.html">Products List</a></li>
</ul>
</li>
<li >
<a href="#">
<span class="menu_icon"><i class="material-icons"></i></span>
<span class="menu_title">Plugins</span>
</a>
<ul>
<li><a href="plugins_calendar.html">Calendar</a></li>
<li><a href="plugins_charts.html">Charts</a></li>
<li><a href="plugins_code_editor.html">Code Editor</a></li>
<li><a href="plugins_crud_table.html">CRUD Table</a></li>
<li><a href="plugins_datatables.html">Datatables</a></li>
<li><a href="plugins_diff.html">Diff View</a></li>
<li><a href="plugins_gantt_chart.html">Gantt Chart</a></li>
<li><a href="plugins_google_maps.html">Google Maps</a></li>
<li><a href="plugins_tablesorter.html">Tablesorter</a></li>
<li><a href="plugins_vector_maps.html">Vector Maps</a></li>
</ul>
</li>
<li >
<a href="#">
<span class="menu_icon"><i class="material-icons"></i></span>
<span class="menu_title">Pages</span>
</a>
<ul>
<li><a href="page_blank.html">Blank</a></li>
<li><a href="page_contact_list.html">Contact List</a></li>
<li><a href="page_gallery.html">Gallery</a></li>
<li><a href="page_help.html">Help/Faq</a></li>
<li><a href="login.html">Login Page</a></li>
<li><a href="page_notes.html">Notes</a></li>
<li><a href="page_pricing_tables.html">Pricing Tables</a></li>
<li><a href="page_settings.html">Settings</a></li>
<li><a href="page_todo.html">Todo</a></li>
<li><a href="page_user_edit.html">User edit</a></li>
<li class="menu_subtitle">Issue Tracker</li>
<li><a href="page_issues_list.html">List View</a></li>
<li><a href="page_issue_details.html">Issue Details</a></li>
<li class="menu_subtitle">Blog</li>
<li><a href="page_blog_list.html">Blog List</a></li>
<li><a href="page_blog_article.html">Blog Article</a></li>
<li class="menu_subtitle">Errors</li>
<li><a href="error_404.html">Error 404</a></li>
<li><a href="error_500.html">Error 500</a></li>
</ul>
</li>
</ul>
</div>
</aside><!-- main sidebar end -->
<div id="page_content">
<div id="page_content_inner">
<h3 class="heading_b uk-margin-bottom">Tooltips</h3>
<div class="md-card">
<div class="md-card-content">
<div class="uk-grid uk-grid-width-large-1-6 uk-grid-width-small-1-3" data-uk-grid-margin>
<div>
<button class="md-btn" data-uk-tooltip title="Top tooltip">Top</button>
</div>
<div>
<button class="md-btn" data-uk-tooltip="{pos:'bottom'}" title="Bottom tooltip">Bottom</button>
</div>
<div>
<button class="md-btn" data-uk-tooltip="{pos:'right'}" title="Right tooltip">Right</button>
</div>
<div>
<button class="md-btn" data-uk-tooltip="{pos:'left'}" title="Left tooltip">Left</button>
</div>
<div>
<button class="md-btn" data-uk-tooltip="{cls:'uk-tooltip-small',pos:'bottom'}" title="Small tooltip">Small</button>
</div>
<div>
<button class="md-btn" data-uk-tooltip="{cls:'long-text'}" title="Ad amet assumenda deserunt doloremque ea enim fuga illum magni, molestiae placeat praesentium quae recusandae rerum sed, vel. Animi architecto consectetur numquam!">Long Text</button>
</div>
</div>
<div class="uk-grid">
<div class="uk-width-1-1">
Lorem ipsum <a href="#" data-uk-tooltip title="Lorem ipsum dolor sit">dolor</a> sit amet, consectetur adipisicing elit. Debitis dicta dolorum facilis maiores odio qui sed!
<a href="#" data-uk-tooltip="{pos:'right'}" title="Lorem ipsum dolor sit">Corporis</a> eligendi eos esse expedita necessitatibus placeat reiciendis sed. Itaque nam nobis reiciendis rerum,
consectetur adipisicing elit. A architecto aut <a href="#" data-uk-tooltip="{pos:'bottom'}" title="Lorem ipsum dolor sit">cumque</a> ea, enim, eos exercitationem fuga labore officiis omnis provident sint tempore ullam ut voluptates. Est fuga placeat tempore! Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ad amet assumenda deserunt doloremque ea enim fuga illum magni, molestiae placeat praesentium quae recusandae rerum sed, vel. Animi architecto consectetur numquam!
</div>
</div>
<div class="uk-grid">
<div class="uk-width-1-2">
<div class="uk-form-row">
<label for="ttip_input_focus">Activate on mouseenter/focus</label>
<input type="text" class="md-input" id="ttip_input_focus" data-uk-tooltip="{pos:'bottom'}" title="mouseenter/focus" />
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- google web fonts -->
<script>
WebFontConfig = {
google: {
families: [
'Source+Code+Pro:400,700:latin',
'Roboto:400,300,500,700,400italic:latin'
]
}
};
(function() {
var wf = document.createElement('script');
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
'://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
wf.type = 'text/javascript';
wf.async = 'true';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(wf, s);
})();
</script>
<!-- common functions -->
<script src="assets/js/common.min.js"></script>
<!-- uikit functions -->
<script src="assets/js/uikit_custom.min.js"></script>
<!-- altair common functions/helpers -->
<script src="assets/js/altair_admin_common.min.js"></script>
<script>
$(function() {
// enable hires images
altair_helpers.retina_images();
// fastClick (touch devices)
if(Modernizr.touch) {
FastClick.attach(document.body);
}
});
</script>
<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-65191727-1', 'auto');
ga('send', 'pageview');
</script>
<div id="style_switcher">
<div id="style_switcher_toggle"><i class="material-icons"></i></div>
<div class="uk-margin-medium-bottom">
<h4 class="heading_c uk-margin-bottom">Colors</h4>
<ul class="switcher_app_themes" id="theme_switcher">
<li class="app_style_default active_theme" data-app-theme="">
<span class="app_color_main"></span>
<span class="app_color_accent"></span>
</li>
<li class="switcher_theme_a" data-app-theme="app_theme_a">
<span class="app_color_main"></span>
<span class="app_color_accent"></span>
</li>
<li class="switcher_theme_b" data-app-theme="app_theme_b">
<span class="app_color_main"></span>
<span class="app_color_accent"></span>
</li>
<li class="switcher_theme_c" data-app-theme="app_theme_c">
<span class="app_color_main"></span>
<span class="app_color_accent"></span>
</li>
<li class="switcher_theme_d" data-app-theme="app_theme_d">
<span class="app_color_main"></span>
<span class="app_color_accent"></span>
</li>
<li class="switcher_theme_e" data-app-theme="app_theme_e">
<span class="app_color_main"></span>
<span class="app_color_accent"></span>
</li>
<li class="switcher_theme_f" data-app-theme="app_theme_f">
<span class="app_color_main"></span>
<span class="app_color_accent"></span>
</li>
<li class="switcher_theme_g" data-app-theme="app_theme_g">
<span class="app_color_main"></span>
<span class="app_color_accent"></span>
</li>
</ul>
</div>
<div class="uk-visible-large uk-margin-medium-bottom">
<h4 class="heading_c">Sidebar</h4>
<p>
<input type="checkbox" name="style_sidebar_mini" id="style_sidebar_mini" data-md-icheck />
<label for="style_sidebar_mini" class="inline-label">Mini Sidebar</label>
</p>
</div>
<div class="uk-visible-large">
<h4 class="heading_c">Layout</h4>
<p>
<input type="checkbox" name="style_layout_boxed" id="style_layout_boxed" data-md-icheck />
<label for="style_layout_boxed" class="inline-label">Boxed layout</label>
</p>
</div>
</div>
<script>
$(function() {
var $switcher = $('#style_switcher'),
$switcher_toggle = $('#style_switcher_toggle'),
$theme_switcher = $('#theme_switcher'),
$mini_sidebar_toggle = $('#style_sidebar_mini'),
$boxed_layout_toggle = $('#style_layout_boxed'),
$body = $('body');
$switcher_toggle.click(function(e) {
e.preventDefault();
$switcher.toggleClass('switcher_active');
});
$theme_switcher.children('li').click(function(e) {
e.preventDefault();
var $this = $(this),
this_theme = $this.attr('data-app-theme');
$theme_switcher.children('li').removeClass('active_theme');
$(this).addClass('active_theme');
$body
.removeClass('app_theme_a app_theme_b app_theme_c app_theme_d app_theme_e app_theme_f app_theme_g')
.addClass(this_theme);
if(this_theme == '') {
localStorage.removeItem('altair_theme');
} else {
localStorage.setItem("altair_theme", this_theme);
}
});
// hide style switcher
$document.on('click keyup', function(e) {
if( $switcher.hasClass('switcher_active') ) {
if (
( !$(e.target).closest($switcher).length )
|| ( e.keyCode == 27 )
) {
$switcher.removeClass('switcher_active');
}
}
});
// get theme from local storage
if(localStorage.getItem("altair_theme") !== null) {
$theme_switcher.children('li[data-app-theme='+localStorage.getItem("altair_theme")+']').click();
}
// toggle mini sidebar
// change input's state to checked if mini sidebar is active
if((localStorage.getItem("altair_sidebar_mini") !== null && localStorage.getItem("altair_sidebar_mini") == '1') || $body.hasClass('sidebar_mini')) {
$mini_sidebar_toggle.iCheck('check');
}
$mini_sidebar_toggle
.on('ifChecked', function(event){
$switcher.removeClass('switcher_active');
localStorage.setItem("altair_sidebar_mini", '1');
location.reload(true);
})
.on('ifUnchecked', function(event){
$switcher.removeClass('switcher_active');
localStorage.removeItem('altair_sidebar_mini');
location.reload(true);
});
// toggle boxed layout
// change input's state to checked if mini sidebar is active
if((localStorage.getItem("altair_layout") !== null && localStorage.getItem("altair_layout") == 'boxed') || $body.hasClass('boxed_layout')) {
$boxed_layout_toggle.iCheck('check');
$body.addClass('boxed_layout');
$(window).resize();
}
// toggle mini sidebar
$boxed_layout_toggle
.on('ifChecked', function(event){
$switcher.removeClass('switcher_active');
localStorage.setItem("altair_layout", 'boxed');
location.reload(true);
})
.on('ifUnchecked', function(event){
$switcher.removeClass('switcher_active');
localStorage.removeItem('altair_layout');
location.reload(true);
});
});
</script>
</body>
</html>