added upload uboot

This commit is contained in:
wt committed 2026-03-14 06:38:19 +07:00
1 parent febecf4dd9
commit 844f839c51
5 files changed
+215 -27

No files matched your search

+8
View File
@@ -15,6 +15,7 @@ document.addEventListener("DOMContentLoaded", function () {
const mountStatus = document.getElementById("mount-status");
const extlinuxEditor = document.getElementById("extlinux-editor");
const editorStatus = document.getElementById("editor-status");
const uploadHint = document.getElementById("upload-hint");
// Tab buttons
const tabBtns = document.querySelectorAll(".tab-btn");
@@ -32,6 +33,13 @@ document.addEventListener("DOMContentLoaded", function () {
this.classList.add("active");
uploadType.value = this.dataset.type;
hideResult();
// Show/hide U-Boot warning
if (this.dataset.type === "uboot_bin") {
uploadHint.classList.add("visible");
} else {
uploadHint.classList.remove("visible");
}
});
});