|
|
|
@ -7,22 +7,22 @@
|
|
|
|
|
<meta charset="utf-8"> |
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|
|
|
|
<title>dela</title> |
|
|
|
|
<link rel="shortcut icon" href="/static/images/favicon.ico" type="image/x-icon"> |
|
|
|
|
<link rel="stylesheet" href="/static/bootstrap/css/bootstrap.min.css"> |
|
|
|
|
<script src="/static/bootstrap/js/bootstrap.min.js"></script> |
|
|
|
|
<link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon"> |
|
|
|
|
</head> |
|
|
|
|
|
|
|
|
|
<body class="d-flex flex-column h-100"> |
|
|
|
|
<header class="d-flex flex-wrap align-items-center justify-content-center justify-content-md-between py-3 mb-4 border-bottom"> |
|
|
|
|
<header class="d-flex flex-wrap align-items-center justify-content-center py-3 mb-4 border-bottom"> |
|
|
|
|
<div class="col-md-3 mb-2 mb-md-0"> |
|
|
|
|
<a href="/" class="d-inline-flex link-body-emphasis text-decoration-none"> |
|
|
|
|
<img width="32" height="32" src="/static/android-chrome-192x192.png" alt="Dela"> |
|
|
|
|
<img width="64" height="64" src="/static/android-chrome-192x192.png" alt="Dela"> |
|
|
|
|
</a> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="col-md-3 text-end" id="bar-auth"> |
|
|
|
|
<a href="/login" class="btn btn-outline-primary me-2">Log in</a> |
|
|
|
|
<a href="/register" class="btn btn-primary">Register</a> |
|
|
|
|
<a href="/login" class="btn btn-outline-primary"><img src="/static/images/door-open-fill.svg" alt="Log in"></a> |
|
|
|
|
<a href="/register" class="btn btn-outline-primary"><img src="/static/images/person-fill-add.svg" alt="Register"></a> |
|
|
|
|
</div> |
|
|
|
|
</header> |
|
|
|
|
|
|
|
|
@ -55,7 +55,7 @@
|
|
|
|
|
if (response.ok) { |
|
|
|
|
let barAuth = document.getElementById("bar-auth"); |
|
|
|
|
barAuth.innerHTML = "<b>" + username + "</b>" + " | "; |
|
|
|
|
barAuth.innerHTML += '<button id="log-out-btn" class="btn btn-primary" type="button">Log out</button>'; |
|
|
|
|
barAuth.innerHTML += '<button id="log-out-btn" class="btn btn-outline-primary"><img src="/static/images/person-dash-fill.svg"></button>'; |
|
|
|
|
document.getElementById("log-out-btn").addEventListener("click", (event) => { |
|
|
|
|
// Log out |
|
|
|
|
forgetAuthInfo(); |
|
|
|
|