1 line
1.4 KiB
HTML
1 line
1.4 KiB
HTML
\n<!DOCTYPE html>\n<html>\n<head>\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"> <style> </style>\n<title> Control Audio</title>\n</head>\n<body>\n<body>\n<h1>Control Audio</h1>\n<div class=\"slidecontainer\">\n<input type=\"range\" min=\"1\" max=\"101\" value=\"%d\" class=\"slider\" id=\"vvin\">Vinilo\n</div>\n<div class=\"slidecontainer\">\n<input type=\"range\" min=\"1\" max=\"101\" value=\"%d\" class=\"slider\" id=\"vpc\">PC\n</div>\n<div class=\"slidecontainer\">\n<input type=\"range\" min=\"1\" max=\"101\" value=\"%d\" class=\"slider\" id=\"vrad\">Radio\n</div>\n<div class=\"slidecontainer\">\n<input type=\"range\" min=\"1\" max=\"101\" value=\"%d\" class=\"slider\" id=\"vaux\">Aux\n</div>\n\n<script>\nfunction httpGetAsync(theUrl)\n{\nvar xmlHttp = new XMLHttpRequest();\nxmlHttp.onreadystatechange = function() { };\nxmlHttp.open(\"GET\", theUrl, true);\nxmlHttp.send(null);\n}\n\nvar ip=\"http://%s\";\nvar s2 = document.getElementById(\"vvin\");\nvar s3 = document.getElementById(\"vpc\");\nvar s4 = document.getElementById(\"vrad\");\nvar s5 = document.getElementById(\"vaux\");\ns2.oninput = function() { httpGetAsync(ip+\"/set2?v=\"+this.value);}\ns3.oninput = function() { httpGetAsync(ip+\"/set3?v=\"+this.value);}\ns4.oninput = function() { httpGetAsync(ip+\"/set4?v=\"+this.value);}\ns5.oninput = function() { httpGetAsync(ip+\"/set5?v=\"+this.value);}\n\n\n</script>\n</body>\n</html> |