70 lines
2.2 KiB
HTML
Raw Normal View History

2025-02-08 17:09:05 +01:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
2025-02-17 22:31:17 +01:00
<link rel="manifest" href="/manifest.json" />
2025-02-08 17:09:05 +01:00
<title>Snek</title>
<style>{{highlight_styles}}</style>
2025-03-17 22:05:46 +01:00
<script src="/polyfills/Promise.withResolvers.js" type="module"></script>
2025-02-17 22:31:17 +01:00
<!--
2025-02-08 17:09:05 +01:00
<script src="/push.js"></script>
2025-02-17 22:31:17 +01:00
-->
2025-03-15 19:10:52 +01:00
<script src="/fancy-button.js" type="module"></script>
<script src="/upload-button.js" type="module"></script>
<script src="/generic-form.js" type="module"></script>
<script src="/html-frame.js" type="module"></script>
<script src="/app.js" type="module"></script>
2025-02-08 17:09:05 +01:00
<link rel="stylesheet" href="/base.css">
2025-02-17 22:31:17 +01:00
2025-02-08 17:09:05 +01:00
<link rel="icon" type="image/png" href="/image/snek1.png" sizes="32x32">
2025-03-16 19:46:15 +01:00
<script defer src="https://umami.molodetz.nl/script.js" data-website-id="d127c3e4-dc70-4041-a1c8-bcc32c2492ea"></script>
2025-02-08 17:09:05 +01:00
</head>
<body>
2025-04-02 14:55:18 +02:00
2025-02-08 17:09:05 +01:00
<header>
2025-04-02 14:55:18 +02:00
<div class="logo no-select">{% block header_text %}{% endblock %}</div>
<nav class="no-select" style="float:right;overflow:hidden;scroll-behavior:smooth">
2025-02-09 01:31:34 +01:00
<a class="no-select" href="/web.html">🏠</a>
<a class="no-select" href="/search-user.html">🔍</a>
<a class="no-select" style="display:none" id="install-button" href="#">📥</a>
2025-03-07 20:59:11 +01:00
<a class="no-select" href="/threads.html">👥</a>
2025-02-09 01:31:34 +01:00
<a class="no-select" href="#">⚙️</a>
<a class="no-select" href="/logout.html">🔒</a>
2025-02-08 17:09:05 +01:00
</nav>
2025-03-17 17:01:01 +01:00
2025-02-08 17:09:05 +01:00
</header>
<main>
{% block sidebar %}
2025-02-22 01:21:44 +01:00
{% include "sidebar_channels.html" %}
2025-02-08 17:09:05 +01:00
{% endblock %}
2025-04-02 14:55:18 +02:00
2025-02-08 17:09:05 +01:00
{% block main %}
<chat-window class="chat-area"></chat-window>
{% endblock %}
</main>
<script>
let installPrompt = null
2025-02-17 22:31:17 +01:00
window.addEventListener("beforeinstallprompt", (e) => {
//e.preventDefault();
installPrompt = e;
//document.addEventListener("DOMContentLoaded", () => {
2025-02-08 17:09:05 +01:00
const button = document.getElementById("install-button")
2025-02-17 22:31:17 +01:00
button.style.display = 'inline-block'
2025-02-08 17:09:05 +01:00
button.addEventListener("click", async ()=>{
2025-02-17 22:31:17 +01:00
const result = await installPrompt.prompt()
console.info(result.outcome)
2025-02-08 17:09:05 +01:00
})
2025-02-17 22:31:17 +01:00
2025-02-08 17:09:05 +01:00
2025-02-08 17:31:03 +01:00
})
2025-02-17 22:31:17 +01:00
2025-02-08 17:09:05 +01:00
;
</script>
</body>
</html>