moar blinkies
This commit is contained in:
		
							parent
							
								
									b6e8e04109
								
							
						
					
					
						commit
						b2fa4fe945
					
				
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 4.0 KiB | 
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 2.2 KiB | 
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 2.4 KiB | 
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 1.7 KiB | 
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 704 B | 
|  | @ -1,8 +1,11 @@ | ||||||
| const preferredMode = window.matchMedia("(prefers-color-scheme: dark)").matches | const preferredMode = window.matchMedia("(prefers-color-scheme: dark)").matches | ||||||
|   ? "DARK" |   ? "DARK" | ||||||
|   : "LIGHT"; |   : "LIGHT"; | ||||||
| localStorage.setItem("theme", localStorage.getItem("theme") || preferredMode); |  | ||||||
| 
 | 
 | ||||||
| // sets theme before rendering & jquery loaded to prevent flashing of uninitialized theme
 | // sets theme before rendering & jquery loaded to prevent flashing of uninitialized theme
 | ||||||
| // (ugly white background)
 | // (ugly white background)
 | ||||||
| document.documentElement.setAttribute("data-theme", preferredMode); | localStorage.setItem("theme", localStorage.getItem("theme") || preferredMode); | ||||||
|  | document.documentElement.setAttribute( | ||||||
|  |   "data-theme", | ||||||
|  |   localStorage.getItem("theme"), | ||||||
|  | ); | ||||||
|  |  | ||||||
|  | @ -50,11 +50,15 @@ | ||||||
| 
 | 
 | ||||||
|       <div class="footer"> |       <div class="footer"> | ||||||
| 	<div> | 	<div> | ||||||
| 	  <img width="150" height="20" src="/static/img/blinkies/hatecomputers-club.gif"> | 	  <img width='150' height='20' src='/static/img/blinkies/hatecomputers-club.gif'> | ||||||
| 	  <img width="150" height="20" src="/static/img/blinkies/loveuguys.gif"> | 	  <img width='150' height='20' src='/static/img/blinkies/autism.gif'> | ||||||
| 	  <img width="150" height="20" src="/static/img/blinkies/autism.gif"> | 	  <img width='150' height='20' src='/static/img/blinkies/fuckcomputers.gif'> | ||||||
| 	  <img width="150" height="20" src="/static/img/blinkies/fuckcomputers.gif"> | 	  <img width='150' height='20' src='/static/img/blinkies/bee.gif'> | ||||||
| 	  <img width="150" height="20" src="/static/img/blinkies/connection.gif"> | 	  <img width='150' height='20' src='/static/img/blinkies/begaydocrime.gif'> | ||||||
|  | 	  <img width='150' height='20' src='/static/img/blinkies/bored.gif'> | ||||||
|  | 	  <img width='150' height='20' src='/static/img/blinkies/connection.gif'> | ||||||
|  | 	  <img width='150' height='20' src='/static/img/blinkies/eepy.gif'> | ||||||
|  | 	  <img width='150' height='20' src='/static/img/blinkies/loveuguys.gif'> | ||||||
| 	</div> | 	</div> | ||||||
| 	 | 	 | ||||||
| 	{{ if .User }} | 	{{ if .User }} | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue