softwareSelect.value = selectedValue;
}
}
-
+
// Event listener for when a software is selected
document.getElementById("software").addEventListener("change", function() {
const selectedAppID = this.value; // Get the selected appID
-
// Find the client and port associated with the selected software
let selectedProjectName = "";
let selectedPort = "";
@@ -145,7 +144,6 @@
Clients
}
if (selectedPort) break;
}
-
// Update the AppID and Port spans
document.getElementById("project-name").textContent = selectedProjectName; // Update the Project name
document.getElementById("app-id").textContent = selectedAppID; // Update the AppID span
@@ -178,6 +176,8 @@
Clients
let ok = await bkclientjs.downloadAssetToSoftware(port, appID, assetID, assetBaseID, resolution, apiKey, );
console.log("Download ok:", ok)
}
+
+ document.getElementById("download").addEventListener("click", DownloadButtonClicked)
// Start polling and updating the clients and software lists periodically
window.onload = function() {