mirror of
https://github.com/pkimpel/retro-b5500.git
synced 2026-02-12 03:07:30 +00:00
44 lines
1.4 KiB
HTML
44 lines
1.4 KiB
HTML
<!DOCTYPE html>
|
|
<head>
|
|
<title>B5500 Emulator System Configuration DB Deletion</title>
|
|
<meta name="Author" content="Nigel Williams & Paul Kimpel">
|
|
<!-- 2014-08-20 Original version -->
|
|
<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>
|
|
var configDBName = "retro-B5500-Config";
|
|
|
|
window.addEventListener("load", function(ev) {
|
|
var req;
|
|
|
|
if (confirm("This will PERMANENTLY DELETE the retro-B5500 emulator's\n" +
|
|
"System Configuration Database." +
|
|
"\n\nAre you sure you want to do this?\n")) {
|
|
if (confirm("Deletion of the Configuration Database CANNOT BE UNDONE.\n\n" +
|
|
"Are you really sure?\n")) {
|
|
req = window.indexedDB.deleteDatabase(configDBName);
|
|
|
|
req.onerror = function(ev) {
|
|
alert("CANNOT DELETE the System Configuration database:\n" + ev.target.error);
|
|
};
|
|
|
|
req.onblocked = function(ev) {
|
|
alert("Deletion of the System Configuration database is BLOCKED");
|
|
};
|
|
|
|
req.onsuccess = function(ev) {
|
|
alert("System Configuration database successfully deleted.");
|
|
};
|
|
}
|
|
}
|
|
});
|
|
</script>
|
|
</head>
|
|
|
|
<body>
|
|
<h2>Delete the System Configuration Database!</h2>
|
|
|
|
</body>
|
|
</html> |