1
0

Try to get JS working

This commit is contained in:
Scott E. Graves
2017-02-16 00:14:08 -06:00
parent 7c86e946fc
commit 4de32f835a
8 changed files with 95 additions and 4 deletions

17
SiaDrive/res/code.js Normal file
View File

@@ -0,0 +1,17 @@
function setAvailableDrives(driveList) {
alert(driveList[0]);
var sel = document.getElementById("MountDrives");
sel.innerHTML = "";
for (var i in driveList) {
if (driveList.hasOwnProperty(i)) {
var drive = driveList[i];
var option = document.createElement("option");
option.innerText = drive + ":";
sel.appendChild(option);
}
}
}