1
0
mirror of https://github.com/pkimpel/retro-b5500.git synced 2026-02-13 03:34:29 +00:00
Files
pkimpel.retro-b5500/tools/B5500DeleteStorageDB.html
Paul Kimpel 9db6ca5147 Commit version 1.03c:
1. Implement new single-precision add/subtract routine that more closely follows the real B5500 logic.
2. Implement tests/B5500SPMathTest.html testbed to exercise the new add/subtract implementation.
3. Implement new way to focus the ConsolePanel window after the SPO becomes ready during initialization.
4. Add "?db=" parameter to tools/B5500DeleteStorageDB.html to specify the disk storage data base name.
5. Implement "Execute Single" button in B5500SyllableDebugger to preserve the T register when testing a single syllable.
6. Implement "octize" and "pic*" function in B5500Util to support tests/B5500SPMathTest.html.
7. Commit minor changes to webSite index page and GitHub README.md.

Commit version 1.03b:
1. Remove initial window open/close (to destroy any existing windows) from Console, I/O device classes, and configuration utilities.
2. Commit Mark XV MESAGE/CANDE file for reconstructed SYSTEM tape, donated by Rich Cornwell.

Commit version 1.03a:
1. Correct character translation for even-parity tape operations.
2. Implement normal tape space operation for tape maintenance space operation (temporary solution to fix problem with Mark XV tape parity recovery -- Mark XIII did not issue maintenance space I/Os).
3. Modify B5500MagTapeDrive to report EOF+parity when attempting to ready beyond the end of the internal tape image (previously reported only parity error).
4. Restate B5500Processor delay deviation and processor slack time average calculations and increase the alpha for the running exponential averages to smooth out the reporting on the B5500ConsolePanel.
5. Improve delay timing calculation for B5500CardPunch, B5500CardReader. and B5500LinePrinter.
2016-04-18 18:08:41 -07:00

75 lines
2.4 KiB
HTML

<!DOCTYPE html>
<head>
<title>B5500 Emulator Storage DB Deletion</title>
<meta name="Author" content="Nigel Williams & Paul Kimpel">
<!--
2014-08-30 Original version.
2016-03-25 P.Kimpel Add getDBName() routine to take stroage name from ?db=... query string.
-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Style-Type" content="text/css">
<script>
window.addEventListener("load", function(ev) {
var req;
var storageName = "________";
function getDBName(defaultName) {
/* Parses the URL query string for a "db=name" parameter. If "db" is
found, returns the corresponding name; if not found, returns "defaultName" */
var args;
var i;
var name;
var search = location.search.substring(1); // drop the "?"
var value = defaultName;
var x;
args = search.split("&");
for (x=args.length-1; x>=0; --x) {
i = args[x].indexOf("=");
if (i > 0 ) {
name = decodeURIComponent(args[x].substring(0, i));
if (name.toLowerCase() == "db") {
value = decodeURIComponent(args[x].substring(i+1));
break; // out of for loop
}
}
}
return value;
}
storageName = getDBName(storageName);
if (confirm("This will PERMANENTLY DELETE the \n\"" +
storageName + "\" Disk Storage database." +
"\n\nAre you sure you want to do this?\n")) {
if (confirm("Deletion of the storage database CANNOT BE UNDONE.\n\n" +
"Are you really sure?\n")) {
req = window.indexedDB.deleteDatabase(storageName);
req.onerror = function(ev) {
alert("CANNOT DELETE the Disk Storage database:\n" + ev.target.error);
};
req.onblocked = function(ev) {
alert("Deletion of the Disk Storage database is BLOCKED");
};
req.onsuccess = function(ev) {
alert("Disk Storage database \"" + storageName +
"\"\n successfully deleted.");
};
}
}
});
</script>
</head>
<body>
<h2>Delete a Disk Storage Database!</h2>
</body>
</html>