|
|
@ -7,7 +7,7 @@ |
|
|
|
<p>User defined web pages can be uploaded to esp-link. This is useful if esp-link acts as a web server while MCU provides |
|
|
|
<p>User defined web pages can be uploaded to esp-link. This is useful if esp-link acts as a web server while MCU provides |
|
|
|
the measurement data.</p> |
|
|
|
the measurement data.</p> |
|
|
|
|
|
|
|
|
|
|
|
<form method="post" action="web-server/upload" name="submit" enctype="multipart/form-data"> |
|
|
|
<form method="post" action="web-server/upload" name="submit" enctype="multipart/form-data" onSubmit="return onSubmit()"> |
|
|
|
The custom web page to upload: <input type="file" name="webpage"> |
|
|
|
The custom web page to upload: <input type="file" name="webpage"> |
|
|
|
<input type="submit" name="submit" value="Submit"> |
|
|
|
<input type="submit" name="submit" value="Submit"> |
|
|
|
</form> |
|
|
|
</form> |
|
|
@ -15,4 +15,15 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
|
|
|
var allowSubmit = true; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function onSubmit() { |
|
|
|
|
|
|
|
setTimeout(function() { |
|
|
|
|
|
|
|
window.location.reload(); |
|
|
|
|
|
|
|
}, 1000); |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
</script> |
|
|
|
</body></html> |
|
|
|
</body></html> |
|
|
|