mirror of
https://github.com/twisterarmy/twister-calm.git
synced 2025-02-05 11:34:13 +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() {
|
function changeStyle() {
|
||||||
var style, profile, menu;
|
var style, profile, menu;
|
||||||
if(localStorage['theme'] == 'calm')
|
if(localStorage['theme'] == 'original')
|
||||||
{
|
|
||||||
style = 'css/style.css';
|
|
||||||
profile = 'css/profile.css';
|
|
||||||
menu = '.calm_menu';
|
|
||||||
}else if(localStorage['theme'] == 'original')
|
|
||||||
{
|
{
|
||||||
style = 'css/orange/style.css';
|
style = 'css/orange/style.css';
|
||||||
profile = 'css/orange/profile.css';
|
profile = 'css/orange/profile.css';
|
||||||
menu = '.original_menu';
|
menu = '.original_menu';
|
||||||
$(".userMenu-dhtindicator").hide();
|
$(".userMenu-dhtindicator").hide();
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
style = 'css/style.css';
|
||||||
|
profile = 'css/profile.css';
|
||||||
|
menu = '.calm_menu';
|
||||||
}
|
}
|
||||||
$('#stylecss').attr('href', style);
|
$('#stylecss').attr('href', style);
|
||||||
$('#profilecss').attr('href', profile);
|
$('#profilecss').attr('href', profile);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user