mirror of https://github.com/lumapu/ahoy.git
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							62 lines
						
					
					
						
							2.8 KiB
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							62 lines
						
					
					
						
							2.8 KiB
						
					
					
				| <!doctype html> | |
| <html> | |
|     <head> | |
|         <title>Index - {DEVICE}</title> | |
|         <link rel="stylesheet" type="text/css" href="style.css"/> | |
|         <meta name="viewport" content="width=device-width, initial-scale=1"> | |
|         <script type="text/javascript"> | |
|             getAjax('/uptime', 'uptime'); | |
|             getAjax('/cmdstat', 'cmds'); | |
|             window.setInterval("getAjax('/uptime', 'uptime')", {JS_TS}); | |
|             window.setInterval("getAjax('/cmdstat', 'cmds')", {JS_TS}); | |
| 
 | |
|             function getAjax(url, resid) { | |
|                 var http = null; | |
|                 http = new XMLHttpRequest(); | |
|                 if(http != null) { | |
|                    http.open("GET", url, true); | |
|                    http.onreadystatechange = print; | |
|                    http.send(null); | |
|                 } | |
| 
 | |
|                 function print() { | |
|                     if(http.readyState == 4) { | |
|                         document.getElementById(resid).innerHTML = http.responseText; | |
|                     } | |
|                 } | |
|             } | |
|         </script> | |
|     </head> | |
|     <body> | |
|         <h1>AHOY - {DEVICE}</h1> | |
|         <div id="content" class="content"> | |
|             <p> | |
|                 <a href="/visualization">Visualization</a><br/> | |
|                 <br/> | |
|                 <a href="/setup">Setup</a><br/> | |
|             </p> | |
|             <p><span class="des">Uptime: </span><span id="uptime"></span></p> | |
|             <p><span class="des">Statistics: </span><pre id="cmds"></pre></p> | |
|             <p>Every {TS}seconds the values are updated</p> | |
| 
 | |
|             <div id="note"> | |
|                 This project was started from <a href="https://www.mikrocontroller.net/topic/525778" target="_blank">this discussion. (Mikrocontroller.net)</a><br/> | |
|                 New updates can be found on Github: <a href="https://github.com/grindylow/ahoy" target="_blank">https://github.com/grindylow/ahoy</a><br/> | |
|                 <br/> | |
|                 Please report issues using the feature provided by <a href="https://github.com/grindylow/ahoy/issues">Github</a><br/> | |
|                 <br/> | |
|                 Discuss with us on <a href="https://discord.gg/WzhxEY62mB">Discord</a> | |
|                 <br/> | |
|                 <p class="lic"><a href="https://creativecommons.org/licenses/by-nc-sa/3.0/de">Creative Commons - https://creativecommons.org/licenses/by-nc-sa/3.0/de/</a><br/> | |
|                 Check the licenses which are published on <a href="https://github.com/grindylow/ahoy">https://github.com/grindylow/ahoy</a> as well</p> | |
|             </div> | |
|         </div> | |
|         <div id="footer"> | |
|             <p class="left">© 2022</p> | |
|             <p class="left"><a href="/update">Update Firmware</a></p> | |
|             <p class="right">AHOY :: {VERSION}</p> | |
|             <p class="right"><a href="/reboot">Reboot</a></p> | |
|             <p class="right">Git SHA: {BUILD}</p> | |
|         </div> | |
|     </body> | |
| </html>
 | |
| 
 |