fixed some crashes, html..
This commit is contained in:
@@ -8,9 +8,7 @@
|
||||
<body>
|
||||
<h1>🎵 HannaBox 🎵</h1>
|
||||
<span id="state"></span><br/><br/>
|
||||
<span id="voltage"></span><br/>
|
||||
<span id="uid"></span><br/>
|
||||
<span id="heap"></span><br/>
|
||||
|
||||
|
||||
<div>
|
||||
<button class="prev-button" onclick="simpleGetCall('previous');"></button>
|
||||
@@ -42,11 +40,13 @@
|
||||
|
||||
|
||||
|
||||
<button id="toggleFileManagerButton" class="action-btn" onclick="toggleFileManager()">Toggle File Manager</button>
|
||||
<button id="toggleFileManagerButton" class="action-btn" onclick="toggleFileManager()">Toggle Manager</button>
|
||||
|
||||
<div id="fileManager" style="display:none; margin-top:20px;">
|
||||
<h2>File Manager</h2>
|
||||
|
||||
<h2>Manager</h2>
|
||||
<span id="voltage"></span><br/>
|
||||
<span id="uid"></span><br/>
|
||||
<span id="heap"></span><br/>
|
||||
<h3>Upload File</h3>
|
||||
<form id="uploadForm" class="form" method="POST" action="/upload" enctype="multipart/form-data">
|
||||
<input type="file" name="data" id="uploadFile" accept=".mp3,.wav,.flac,.m4a,.ogg"/>
|
||||
@@ -56,11 +56,13 @@
|
||||
<div class="progress-bar">
|
||||
<div class="progress-fill" id="progressFill"></div>
|
||||
</div>
|
||||
<span id="progressText">0%</span>
|
||||
<span id="progressText">0</span>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<h3>Edit RFID Mapping</h3>
|
||||
Hint: Use a folder or filename, not the absolute file path!
|
||||
<div class="form">%MAPPING%</div>
|
||||
<form id="editMappingForm" class="form">
|
||||
<label for="rfid">RFID:</label>
|
||||
<input type="text" id="rfid" name="rfid" required><br>
|
||||
@@ -77,8 +79,9 @@
|
||||
<input type="text" id="moveTo" placeholder="/newname.mp3"/>
|
||||
<button type="button" class="action-btn" onclick="moveFile()">Move/Rename</button>
|
||||
</form>
|
||||
<form class="form">
|
||||
|
||||
<h3>Delete File</h3>
|
||||
<form class="form">
|
||||
<label for="deleteFileName">Filename:</label>
|
||||
<input type="text" id="deleteFileName" placeholder="/song.mp3"/>
|
||||
<button type="button" class="action-btn" onclick="deleteFileOnServer()">Delete</button>
|
||||
|
||||
Reference in New Issue
Block a user