switch to css only paging
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		
							parent
							
								
									c049c04e8e
								
							
						
					
					
						commit
						495163060d
					
				
					 2 changed files with 6 additions and 21 deletions
				
			
		|  | @ -5,28 +5,17 @@ main { | |||
| 	margin-left: auto; | ||||
| 	margin-right: auto; | ||||
| } | ||||
| section { | ||||
| 	display: none; | ||||
| } | ||||
| 
 | ||||
| canvas{ | ||||
| 	width: 100%; | ||||
| } | ||||
| 
 | ||||
| main[data-page="dashboard"] section[id="dashboard"] { | ||||
| 	display: block; | ||||
| main section:target ~ section, main section#io, main section#wifi,  main section#ota  { | ||||
| 	display: none; | ||||
| } | ||||
| 
 | ||||
| main[data-page="ota"] section[id="ota"] { | ||||
| 	display: block; | ||||
| } | ||||
| 
 | ||||
| main[data-page="wifi"] section[id="wifi"] { | ||||
| 	display: block; | ||||
| } | ||||
| 
 | ||||
| main[data-page="io"] section[id="io"] { | ||||
| 	display: block; | ||||
| main section:target{ | ||||
| 	display: block !important; | ||||
| } | ||||
| 
 | ||||
| .table { | ||||
|  |  | |||
|  | @ -15,10 +15,10 @@ | |||
|     <input id="bmenub" type="checkbox" class="show"> | ||||
|     <label for="bmenub" class="burger pseudo button">☰</label> | ||||
|     <div class="menu"> | ||||
|         <a href="/" class="button icon-picture" onclick="use_page('dashboard'); return false">Dashboard</a> | ||||
|         <a href="/#" class="button icon-picture">Dashboard</a> | ||||
|     </div> | ||||
| </nav> | ||||
| <main data-page="dashboard" id="page"> | ||||
| <main id="page"> | ||||
|     <section id="dashboard"> | ||||
|         <h2>Status</h2> | ||||
|         <div class="flex"> | ||||
|  | @ -152,10 +152,6 @@ | |||
|         return pos; | ||||
|     }; | ||||
| 
 | ||||
|     function use_page(name) { | ||||
|         section.dataset.page = name; | ||||
|     } | ||||
| 
 | ||||
|     var ws; | ||||
|     var retries; | ||||
|     var series = new TimeSeries(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue