-
Subscribe a device to regularly submitting attestations to this account by pressing 'Enable remote verification' in the Auditor app menu and scanning the QR code for this account:
-
+ Subscribe a device to regularly submitting attestations to this account by pressing "Enable remote verification" in the Auditor app menu and scanning the QR code for this account.
+
-
+
Rotate device subscription key
-
diff --git a/static/main.css b/static/main.css
index fc6257f9..c519f327 100644
--- a/static/main.css
+++ b/static/main.css
@@ -10,6 +10,7 @@ body {
margin: 0;
padding: 0;
overflow-y: scroll;
+ padding-bottom: 3em;
}
a {
@@ -65,6 +66,7 @@ pre {
display: block;
text-decoration: none;
padding: 1em;
+ white-space: nowrap;
}
#site-menu ul li a:visited {
@@ -119,7 +121,37 @@ button::-moz-focus-inner {
}
input {
- margin: 2px;
+ border: #9e9e9e 1.5px solid;
+ border-radius: 4px;
+ font-size: 0.9em;
+ margin-top: 0.5em;
+ margin-bottom: 0.5em;
+ padding: 0.4rem;
+}
+
+summary:hover {
+ text-decoration: underline;
+ cursor: pointer;
+}
+
+hr {
+ border-color: #9e9e9e;
+ margin-bottom: 1em;
+}
+
+.centered-box {
+ border: #757575 2.5px solid;
+ border-radius: 14px;
+ width: fit-content;
+ margin-top: 2em;
+ margin-left: auto;
+ margin-right: auto;
+ text-align: center;
+ padding: 1em;
+}
+
+.centered-text {
+ text-align: center;
}
.coin-address {
@@ -215,4 +247,8 @@ input {
button:focus {
background-color: #1c1c1c;
}
+
+ .centered-box {
+ border-color: #424242;
+ }
}
diff --git a/static/monitoring.js b/static/monitoring.js
index 68b293bc..2e489f7e 100644
--- a/static/monitoring.js
+++ b/static/monitoring.js
@@ -2,6 +2,7 @@
const fingerprintSplitInterval = 4;
const createForm = document.getElementById("create_form");
+const createFormContent = document.getElementById("create_form_content");
const createUsername = document.getElementById("create_username");
const createPassword = document.getElementById("create_password");
const createPasswordConfirm = document.getElementById("create_password_confirm");
@@ -354,7 +355,7 @@ post("/api/account").then(response => {
document.getElementById("create").onclick = () => {
loggedOutButtons.hidden = true;
- createForm.hidden = false;
+ createFormContent.hidden = false;
};
createPasswordConfirm.oninput = () => {
@@ -444,7 +445,7 @@ createForm.onsubmit = event => {
}
return Promise.reject(new Error(response.status));
}
- createForm.hidden = true;
+ createFormContent.hidden = true;
createForm.reset();
createForm.submit.disabled = false;
loggedOutButtons.hidden = false;
@@ -469,7 +470,11 @@ loginForm.onsubmit = event => {
for (const cancel of document.getElementsByClassName("cancel")) {
cancel.onclick = function() {
- this.parentElement.hidden = true;
+ if (createFormContent.contains(this.parentElement)) {
+ createFormContent.hidden = true;
+ } else {
+ this.parentElement.hidden = true;
+ }
this.parentElement.reset();
loggedOutButtons.hidden = false;
};