Fixed formatting
This commit is contained in:
		
							parent
							
								
									0158668d91
								
							
						
					
					
						commit
						fcf66d85ba
					
				
					 4 changed files with 7 additions and 5 deletions
				
			
		|  | @ -201,7 +201,8 @@ input[type="radio"] { | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     .toggle_label { |     .toggle_label { | ||||||
|         min-width: 100%;; |         min-width: 100%; | ||||||
|  |         ; | ||||||
|     } |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -5,11 +5,11 @@ function initToggle() { | ||||||
|     function switchTheme(e) { |     function switchTheme(e) { | ||||||
|         if (e.target.checked) { |         if (e.target.checked) { | ||||||
|             document.documentElement.setAttribute('data-theme', 'dark'); |             document.documentElement.setAttribute('data-theme', 'dark'); | ||||||
|             localStorage.setItem('theme', 'dark'); //add this
 |             localStorage.setItem('theme', 'dark'); | ||||||
|         } |         } | ||||||
|         else { |         else { | ||||||
|             document.documentElement.setAttribute('data-theme', 'light'); |             document.documentElement.setAttribute('data-theme', 'light'); | ||||||
|             localStorage.setItem('theme', 'light'); //add this
 |             localStorage.setItem('theme', 'light'); | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -71,4 +71,5 @@ | ||||||
|         initToggle(); |         initToggle(); | ||||||
|     </script> |     </script> | ||||||
| </body> | </body> | ||||||
|  | 
 | ||||||
| </html> | </html> | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue