profile menu
This commit is contained in:
@@ -4,23 +4,14 @@
|
||||
<title>Hyperia</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="icon" href="_/icons/logo.svg">
|
||||
<link rel="stylesheet" href="index.css">
|
||||
<link rel="stylesheet" href="_/code/shared.css">
|
||||
<script src="_/code/util.js"></script>
|
||||
<script type="module">
|
||||
import ProfileButton from "./components/ProfileButton.js"
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<span id="title" class="link" onclick='window.location.href="/"'>hyperia
|
||||
</span>
|
||||
<img class="main-image">
|
||||
<div class="links" style="z-index: 1; cursor: default; position: fixed; top: 5.5vh; right: 4.5vw">
|
||||
<a href="#" onclick="logout(); return false;">sign out</a>
|
||||
<script>
|
||||
function logout() {
|
||||
fetch('/signout', { method: 'GET', credentials: 'include' })
|
||||
.then(() => {
|
||||
// Force a clean full-page reload of "/"
|
||||
window.location.replace('/?loggedout');
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<span id="title" class="link" onclick='window.location.href="/"'>hyperia</span>
|
||||
<profile-button style="z-index: 1; cursor: default; position: fixed; top: 5.5vh; right: 4.5vw"></profile-button>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user