Files
Webklar-Kundenbereich/public/neu/dashboard.html
T

33 lines
1.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<meta name="kn-seite" content="neu">
<title>Kundenbereich – WEBklar</title>
<style>
body.kn { margin: 0; background: #fff; color: #1a1f36; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
body.kn main { max-width: 640px; margin: 0 auto; padding: 48px 16px; }
body.kn h1 { margin: 0 0 8px; font-size: 22px; font-weight: 600; }
body.kn p { margin: 0 0 8px; color: #5e6678; }
</style>
</head>
<body class="kn">
<main data-kn-platzhalter>
<h1>Kundenansicht neu</h1>
<p>Platzhalter bis P1</p>
<p>Ansicht: <span id="kn-platzhalter-ansicht"></span></p>
</main>
<script>
(function () {
var ziel = document.getElementById('kn-platzhalter-ansicht')
function zeige(text) { ziel.textContent = text }
fetch('/api/auth/me', { credentials: 'same-origin' })
.then(function (r) { return r.json() })
.then(function (me) { zeige(me && me.authenticated === false ? 'abgemeldet' : (me && typeof me.ansicht === 'string' ? me.ansicht : '')) })
.catch(function () { zeige('Fehler') })
})()
</script>
</body>
</html>