Some extra padding and a confirmation dialouge

This commit is contained in:
Tracker-Friendly 2024-05-18 00:51:36 +01:00
parent 3818691924
commit c3452e92c7
3 changed files with 7 additions and 4 deletions

View File

@ -116,8 +116,8 @@ input {
.iframe {
position: fixed;
right: 0;
top: 38px;
right: 5px;
top: 47px;
border: none;
height: 276px;
width: 400px;
@ -126,7 +126,7 @@ input {
.acctbutton {
position: fixed;
right: 0;
right: 5px;
margin: 0;
}

View File

@ -8,6 +8,9 @@
<body style="background-color: transparent;">
<script>
async function deleteacct() {
if (confirm("Are you SURE you would like to delete your account forever?") != true) {
break
}
await fetch(remote + "/api/deleteaccount", {
method: "POST",
body: JSON.stringify({

View File

@ -8,7 +8,7 @@
<body>
<p class="credit">Image by perga (@pergagreen on discord)</p>
<img src="/static/img/background.jpg" class="background" alt="">
<div style="position: fixed;top: 0;"><button onclick="document.getElementById('iframe').classList.toggle('hidden');" class="acctbutton">Account</button><iframe id="iframe" src="/account" class="iframe hidden"></iframe></div>
<div style="position: fixed;top: 5px;"><button onclick="document.getElementById('iframe').classList.toggle('hidden');" class="acctbutton">Account</button><iframe id="iframe" src="/account" class="iframe hidden"></iframe></div>
<div class="newoauth">
<h2>Submit a new OAuth2 App</h2>
<p id="status"></p>