|  | <!DOCTYPE html> | 
					
						
						|  | <html> | 
					
						
						|  | <head> | 
					
						
						|  | <meta charset="utf-8" /> | 
					
						
						|  | <meta name="viewport" content="width=device-width" /> | 
					
						
						|  | <title>My static Space</title> | 
					
						
						|  | <link rel="stylesheet" href="https://huggingface.co/spaces/vk-ai-system/flask_inference_api/resolve/main/style.css" /> | 
					
						
						|  |  | 
					
						
						|  | <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script> | 
					
						
						|  | <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-Fy6S3B9q64WdZWQUiU+q4/2Lc9npb8tCaSX9FK7E8HnRr0Jz8D6OP9dO5Vg3Q9ct" crossorigin="anonymous"></script> | 
					
						
						|  |  | 
					
						
						|  | <style> | 
					
						
						|  | input[type="number"]::-webkit-inner-spin-button, | 
					
						
						|  | input[type="number"]::-webkit-outer-spin-button { | 
					
						
						|  | -webkit-appearance: inner-spin-button; | 
					
						
						|  | opacity: 1; | 
					
						
						|  | } | 
					
						
						|  |  | 
					
						
						|  | input[type="number"] { | 
					
						
						|  | -moz-appearance: textfield; | 
					
						
						|  | } | 
					
						
						|  |  | 
					
						
						|  | </style> | 
					
						
						|  |  | 
					
						
						|  |  | 
					
						
						|  | </head> | 
					
						
						|  | <body> | 
					
						
						|  | <h1>Настройки системы</h1> | 
					
						
						|  |  | 
					
						
						|  | <br> | 
					
						
						|  | <h4>Уроыень pH</h4> | 
					
						
						|  | <p>EEPROM : <span id="pH_eep"></span></p> | 
					
						
						|  |  | 
					
						
						|  | <form> | 
					
						
						|  | <label for="pH_set">Новое : </label> | 
					
						
						|  | <input type="number"  id="pH_set" value="5.6" min="1" max="14" step="0.05"> | 
					
						
						|  | </form> | 
					
						
						|  |  | 
					
						
						|  |  | 
					
						
						|  |  | 
					
						
						|  |  | 
					
						
						|  |  | 
					
						
						|  | <script> | 
					
						
						|  |  | 
					
						
						|  |  | 
					
						
						|  | function updateValues(data) { | 
					
						
						|  | document.getElementById("pH_eep").textContent = data.ph_eep; | 
					
						
						|  |  | 
					
						
						|  |  | 
					
						
						|  | } | 
					
						
						|  |  | 
					
						
						|  | function fetchValues() { | 
					
						
						|  | var xhr = new XMLHttpRequest(); | 
					
						
						|  | xhr.open("GET", "/settings_api", true); | 
					
						
						|  | xhr.setRequestHeader("Content-Type", "application/json"); | 
					
						
						|  | xhr.onreadystatechange = function () { | 
					
						
						|  | if (xhr.readyState === 4 && xhr.status === 200) { | 
					
						
						|  | var response = JSON.parse(xhr.responseText); | 
					
						
						|  | updateValues(response); | 
					
						
						|  | } | 
					
						
						|  | }; | 
					
						
						|  | xhr.send(); | 
					
						
						|  | } | 
					
						
						|  |  | 
					
						
						|  | fetchValues(); | 
					
						
						|  | setInterval(fetchValues, 10000); | 
					
						
						|  | </script> | 
					
						
						|  | </body> | 
					
						
						|  | </html> |