mirror of
https://github.com/twisterarmy/twister-calm.git
synced 2025-01-27 23:24:28 +00:00
fix theme for new users (if localStorage['theme'] == is not defined )
This commit is contained in:
parent
53b212b35d
commit
141db05b37
12
js/calm.js
12
js/calm.js
@ -76,17 +76,17 @@ function mensAutocomplete() {
|
||||
|
||||
function changeStyle() {
|
||||
var style, profile, menu;
|
||||
if(localStorage['theme'] == 'calm')
|
||||
{
|
||||
style = 'css/style.css';
|
||||
profile = 'css/profile.css';
|
||||
menu = '.calm_menu';
|
||||
}else if(localStorage['theme'] == 'original')
|
||||
if(localStorage['theme'] == 'original')
|
||||
{
|
||||
style = 'css/orange/style.css';
|
||||
profile = 'css/orange/profile.css';
|
||||
menu = '.original_menu';
|
||||
$(".userMenu-dhtindicator").hide();
|
||||
}else
|
||||
{
|
||||
style = 'css/style.css';
|
||||
profile = 'css/profile.css';
|
||||
menu = '.calm_menu';
|
||||
}
|
||||
$('#stylecss').attr('href', style);
|
||||
$('#profilecss').attr('href', profile);
|
||||
|
Loading…
x
Reference in New Issue
Block a user