@@ -34,22 +34,22 @@ function colormode(pref){
3434 document . getElementById ( 'sub-select1' ) . style . backgroundColor = 'black'
3535 document . getElementById ( 'sub-select1' ) . style . borderColor = 'white'
3636 document . getElementById ( 'sel-txt' ) . style . color = 'white' ;
37- //console.log(document.querySelector('.multiselect-wrapper').style)
38- //document.querySelector('.multiselect-wrapper').classList.add('invert')
39- //document.querySelector('.multiselect-wrapper').style.backgroundColor = 'black'
4037 try {
4138 document . querySelector ( '.multiselect-wrapper ul' ) . style . backgroundColor = 'black' ;
4239 document . querySelector ( '.multiselect-wrapper ul' ) . style . color = 'white' ;
4340 document . querySelector ( '.multiselect-list' ) . style . color = 'white' ;
4441 document . querySelector ( '.multiselect-list' ) . style . backgroundColor = 'black' ;
42+ document . querySelector ( '.multiselect-input-div input' ) . style . backgroundColor = 'black'
43+ document . querySelector ( '.multiselect-input-div input' ) . style . color = 'white'
4544 } catch ( e ) {
4645 console . log ( e )
4746 }
4847 document . getElementById ( 'top-bar' ) . classList . add ( 'invert' ) ;
4948 document . getElementById ( 'err-path' ) . style . color = 'white'
5049 document . getElementById ( 'error' ) . style . color = 'white'
5150 document . getElementById ( 'success' ) . style . color = 'white' ;
52- document . getElementById ( "notification" ) . style . backgroundColor = 'black'
51+ document . getElementById ( "notification" ) . style . backgroundColor = 'black' ;
52+
5353 } else if ( pref === 'light' ) {
5454 localStorage . setItem ( "colormode" , "light" )
5555 document . getElementById ( 'filter' ) . style . opacity = '5%'
@@ -74,6 +74,8 @@ function colormode(pref){
7474 document . querySelector ( '.multiselect-wrapper ul' ) . style . color = 'black' ;
7575 document . querySelector ( '.multiselect-list' ) . style . color = 'black' ;
7676 document . querySelector ( '.multiselect-list' ) . style . backgroundColor = 'white' ;
77+ document . querySelector ( '.multiselect-input-div input' ) . style . backgroundColor = '#fff'
78+ document . querySelector ( '.multiselect-input-div input' ) . style . color = 'black' ;
7779 } catch ( e ) {
7880 console . log ( e )
7981 }
@@ -83,12 +85,14 @@ function colormode(pref){
8385 document . getElementById ( 'err-path' ) . style . color = 'black'
8486 document . getElementById ( 'error' ) . style . color = 'black'
8587 document . getElementById ( 'success' ) . style . color = 'black' ;
86- document . getElementById ( "notification" ) . style . backgroundColor = 'white'
88+ document . getElementById ( "notification" ) . style . backgroundColor = 'white' ;
89+ document . querySelector ( '.security-notification input' ) . style . color = 'black'
90+ document . querySelector ( '.security-notification input' ) . style . backgroundColor = 'white'
91+ document . querySelector ( '.security-notification input' ) . style . borderColor = 'black' ;
8792 }
8893}
8994
9095function handler ( value ) {
91- console . log ( 'entered' )
9296 if ( ! value ) {
9397 document . getElementById ( 'sec-notif' ) . style . visibility = 'visible'
9498 document . getElementById ( 'sec-notif' ) . style . transform = 'scale(1)'
@@ -107,7 +111,6 @@ function handler(value){
107111 }
108112 } )
109113 . then ( response => {
110- console . log ( response )
111114 switch ( response . status ) {
112115 case 220 : {
113116 console . log ( 'path was not valid' )
@@ -177,6 +180,13 @@ function Multidirres(){
177180
178181 case 201 : {
179182 success ( )
183+ setTimeout ( ( ) => {
184+ document . querySelector ( 'body' ) . classList . add ( 'blur' )
185+ setTimeout ( ( ) => {
186+ window . location . reload ( )
187+ } , 600 )
188+ } , 500 )
189+
180190 } break ;
181191 }
182192 } )
@@ -194,7 +204,13 @@ function recursivech(choice){
194204 }
195205 } ) . then ( ( res ) => {
196206 if ( res . status === 200 ) {
197- success ( )
207+ success ( ) ;
208+ setTimeout ( ( ) => {
209+ document . querySelector ( 'body' ) . classList . add ( 'blur' )
210+ setTimeout ( ( ) => {
211+ window . location . reload ( )
212+ } , 600 )
213+ } , 500 )
198214 } else {
199215 error ( )
200216 }
0 commit comments