burgernotes-server/templates/app.html

90 lines
4.1 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>burgernotes</title>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" type="text/css" href="/static/css/style.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.1.1/crypto-js.min.js"
integrity="sha512-E8QSvWZ0eCLGk4km3hxSsNmGWbLtSCSUcewDQPQWZF6pEU8GlT8a5fF32wOl1i8ftdMhssTrF/OhyGWwonTcXA=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
</head>
<body>
<div class="topBar">
<p tabindex="0" class="logo" id="burgerButton">burgernotes</p>
<p tabindex="0" id="usernameBox" class="usernameBox"></p>
</div>
<div id="notesBar" class="notesBar">
<button id="newNote" class="newNote"><img id="newNoteImage" draggable="false" alt=""
src="/static/svg/add.svg">new note</button>
<div id="notesDiv" class="notesDiv">
<button class="loadingStuff" id="loadingStuff"></button>
</div>
</div>
<div id="optionsCoverDiv" class="optionsCoverDiv hidden">
<div id="optionsDiv" class="optionsDiv hidden">
<button class="exit" id="exitThing">X</button>
<h3 class="w300">your account</h3>
<p id="usernameThing"></p>
<p id="passwordThing"></p>
<p style="display: inline">enable two-factor authentication: </p>
<input type="checkbox" id="mfaCheckbox" class="mfacheckbox">
<div class="section"></div>
<p>storage</p>
<progress id="storageProgressThing" value="0" max="100"></progress><br>
<p id="storageThing"></p>
<div class="section"></div>
<p>account managment</p>
<button id="deleteMyAccountButton"><img src="/static/svg/delete_forever.svg">delete my account</button>
<button id="exportNotesButton"><img src="/static/svg/download.svg">export notes</button>
<button id="sessionManagerButton"><img src="/static/svg/list.svg">session manager</button>
<button class="lastButton" id="logOutButton"><img src="/static/svg/logout.svg">log out</button>
</div>
<div id="sessionManagerDiv" class="optionsDiv hidden">
<button class="exit" id="exitSessionsThing">X</button>
<h3 class="w300">session manager</h3>
<p>manage your sessions</p>
<div class="section"></div>
<div class="sessionDiv" id="sessionDiv">
</div>
</div>
<div id="mfaDiv" class="optionsDiv hidden">
<button class="exit" id="exitMfaThing">X</button>
<h3 class="w300">enable 2FA</h3>
<img style="filter: none; width: 100%; height: 60px;" src="/static/svg/phonelink_lock.svg">
<br><br>
Two-factor authentication is coming soon!
<div class="hidden">
<p>Two-factor authentication adds an extra layer of security to your account.</p>
<p>Enter in this token in your authenticator app:</p>
<code></code>
<p>Enter in the 6 digit code from your authenticator app:</p>
<input style="margin-bottom: 0;" inputmode="numeric" id="errorInput" type="text"
placeholder="6-digit code"><br></input>
</div>
</div>
<div id="errorDiv" class="optionsDiv hidden">
<p id="errorMessageThing"></p>
<input class="hidden" id="errorInput" type="text" placeholder="e.g. shopping list"><br></input>
<button class="normalButton" id="closeErrorButton">OK</button>
<button class="normalButton hidden" id="cancelErrorButton">Cancel</button>
</div>
</div>
<textarea id="noteBox" class="noteBox"></textarea>
<script type="text/javascript" src="/static/js/main.js"></script>
<script>
for (let i = 0; i < 40; i++) {
notesDiv.appendChild(loadingStuff.cloneNode())
}
loadingStuff.remove()
</script>
</body>
</html>