File tree Expand file tree Collapse file tree 15 files changed +195
-30
lines changed Expand file tree Collapse file tree 15 files changed +195
-30
lines changed Original file line number Diff line number Diff line change 16
16
</ div >
17
17
<!-- MENU LIST -->
18
18
< div class ="menu-list hide ">
19
- < button class ="active-sec "> < i data-icon ="note "> </ i > Stick Wall</ button >
19
+ < button class ="active-sec "> < i data-icon ="note "> </ i >
20
+ < p class ="nav-btn-text "> Stick Wall</ p >
21
+ </ button >
20
22
</ div >
21
23
</ div >
22
24
<!-- MENU ACTIONS -->
23
25
< div class ="menu-actions hide ">
24
- < button class ="active "> < i data-icon ="setting "> </ i > Setting</ button >
25
- < button > < i data-icon ="logout "> </ i > Logout</ button >
26
+ < button class ="active "> < i data-icon ="setting "> </ i >
27
+ < p class ="nav-btn-text "> Setting</ p >
28
+ </ button >
29
+ < button > < i data-icon ="logout "> </ i >
30
+ < p class ="nav-btn-text "> Logout</ p >
31
+ </ button >
26
32
</ div >
27
33
</ header >
28
34
</ div >
@@ -41,7 +47,7 @@ <h1 class="dashboard-title-page">Stick Wall</h1>
41
47
</ ul >
42
48
</ form >
43
49
<!-- DASHBOARD CONTENT RIGHT -->
44
- < div class ="dashboard-content_right-conatiner ">
50
+ < div class ="dashboard-content_right-container ">
45
51
< section class ="dashboard-content_right ">
46
52
< div class ="dashboard-content_right-header ">
47
53
< h2 > title</ h2 >
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export function loadUserData() {
18
18
19
19
function loadAppMode ( ) {
20
20
if ( localStorage . getItem ( 'settings' ) ) {
21
- document . body . classList . add ( JSON . parse ( localStorage [ 'settings' ] ) . mode ) ;
21
+ document . body . classList . add ( JSON . parse ( localStorage [ 'settings' ] ) ? .mode ) ;
22
22
}
23
23
}
24
24
Original file line number Diff line number Diff line change @@ -21,13 +21,26 @@ export default function init() {
21
21
if ( dashboardPage . classList . toggle ( 'act-menu_dashboard' ) ) {
22
22
localStorage . setItem ( 'menu_state' , 'false' ) ;
23
23
dashboardPage ?. classList . remove ( 'act-content_dashboard-right' ) ;
24
+ toggleCheckBlur ( ) ;
24
25
} else {
25
26
localStorage . setItem ( 'menu_state' , 'true' ) ;
26
27
}
27
28
28
29
applyBlurEffect ( ) ;
29
30
} ) ;
30
31
32
+ document . addEventListener ( 'navBlur' , toggleCheckBlur ) ;
33
+ function toggleCheckBlur ( ) {
34
+ if ( ! localStorage . getItem ( 'settings' ) ) return ;
35
+ if ( JSON . parse ( localStorage [ 'settings' ] ) . background ) {
36
+ dashboardPage ?. firstElementChild . firstElementChild . classList . add ( 'check-blur' ) ;
37
+ } else {
38
+ dashboardPage ?. firstElementChild . firstElementChild . classList . remove ( 'check-blur' ) ;
39
+ }
40
+ }
41
+
42
+ toggleCheckBlur ( ) ;
43
+
31
44
function loadMenuState ( ) {
32
45
if ( ! localStorage [ 'menu_state' ] ) return ;
33
46
const menuState = JSON . parse ( localStorage [ 'menu_state' ] ) ;
@@ -68,7 +81,7 @@ export default function init() {
68
81
if ( ! ( dashboardPage instanceof HTMLElement ) ) return ;
69
82
if ( ! localStorage . getItem ( 'settings' ) ) return ;
70
83
const settings = JSON . parse ( localStorage [ 'settings' ] ) ;
71
- dashboardPage . style . background = `url(${ settings . background } ) no-repeat center / cover fixed` ;
84
+ dashboardPage . style . background = `url(${ settings ? .background } ) no-repeat center / cover fixed` ;
72
85
}
73
86
74
87
loadBackground ( ) ;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ function applyBlurEffect(cb) {
11
11
` )
12
12
. forEach ( ( ele , ind ) => {
13
13
if ( localStorage . getItem ( 'settings' ) ) {
14
- if ( ( JSON . parse ( localStorage [ 'settings' ] ) . background === null ) ) return ;
14
+ if ( ( JSON . parse ( localStorage [ 'settings' ] ) ? .background === null ) ) return ;
15
15
ele . classList . add ( 'bg-blur' ) ;
16
16
17
17
if ( localStorage . getItem ( 'menu_state' ) ) {
You can’t perform that action at this time.
0 commit comments