85 lines
3.0 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-05-09 14:08:46 +02:00
<script src="/file-manager.js" type="module"></script>
2025-05-15 13:18:53 +02:00
<script src="/user-list.js"></script>
<script src="/message-list.js" type="module"></script>
2025-05-17 00:54:15 +02:00
<script src="/chat-input.js" type="module"></script>
2025-05-17 17:46:59 +02:00
<link rel="stylesheet" href="/sandbox.css">
2025-05-15 13:18:53 +02:00
<link rel="stylesheet" href="/user-list.css">
2025-02-08 17:09:05 +01:00
<link rel="stylesheet" href="/base.css">
2025-05-09 14:08:46 +02:00
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"
integrity="sha512-pBMV+3tn6+5xAZuhI6tyCmQkXh15riZDqGPxAx/U+FuiI5Dh3ZTjM23cZqQ25jJCfi8+ka9gzC2ukNkGkP/Aw=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
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>
2025-04-02 15:02:55 +02:00
<nav class="no-select" style="overflow:hidden;scroll-behavior:smooth">
2025-02-09 01:31:34 +01:00
<a class="no-select" href="/web.html">🏠</a>
2025-05-10 15:03:50 +02:00
<a class="no-select" href="/drive.html">📂</a>
2025-02-09 01:31:34 +01:00
<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-04-03 08:34:25 +02:00
<a class="no-select" href="/settings/index.html">⚙️</a>
2025-02-09 01:31:34 +01:00
<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>
2025-05-25 20:50:32 +02:00
<main style="max-height: 100vh;overflow-y: none">
2025-02-08 17:09:05 +01:00
{% 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>
2025-05-17 17:46:59 +02:00
{% include "sandbox.html" %}
2025-02-08 17:09:05 +01:00
</body>
</html>