forked from seport/taskbit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlayoutscript.js
More file actions
26 lines (22 loc) · 727 Bytes
/
layoutscript.js
File metadata and controls
26 lines (22 loc) · 727 Bytes
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
$(document).ready(function(){
if(localStorage.theme){
theme = localStorage.theme;
} else{
theme = 'cyan';
}
//setting theme
$('.addtheme').each(function(){
$(this).removeClass('addtheme');
$(this).removeClass('transparent')
$(this).addClass(theme);
})
$('#content h1').css('color',$('.' + theme).css('background-color'));
$('#content h2').css('color',$('.' + theme).css('background-color'));
// Initialize collapse button
$(".button-collapse").sideNav();
// Initialize collapsible (uncomment the line below if you use the dropdown variation)
//$('.collapsible').collapsible();
//////FOR SETTINGS////////
//checking the current theme
$('input[name=theme][id=' + theme + ']').prop('checked',true);
})