add js to firmwaree upload

hide upload until selected, update return msg box
This commit is contained in:
tablatronix
2018-11-09 16:43:54 -06:00
parent 5a3829abf9
commit 7da803389c
2 changed files with 8 additions and 4 deletions
+5 -1
View File
@@ -303,7 +303,11 @@ button.D{
<p/>More information about WiFiManager at <a href='https://github.com/tzapu/WiFiManager'>https://github.com/tzapu/WiFiManager</a>
<!-- /HTTP_HELP -->
<!-- FORM_UPLOAD -->
<Br/><br/>Form UPLOAD<br/><form method='POST' action='u' enctype='multipart/form-data'><input type='file' name='update' accept='.bin,application/octet-stream'><button type='submit' value='Submit'>Submit</button></form>
<Br/><br/>Form UPLOAD<br/>
<form method='POST' action='u' enctype='multipart/form-data'>
<input type='file' name='update' accept='.bin,application/octet-stream' onchange="(function(el){document.getElementById('uploadbin').style.display = el.value=='' ? 'none' : 'initial';})(this)">
<button id='uploadbin' class="h">Submit</button>
</form>
<!-- /FORM_UPLOAD -->
<!-- HTTP_END -->