64 lines
1.9 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-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-02-08 21:54:46 +01:00
<script src="/fancy-button.js"></script>
2025-02-08 17:09:05 +01:00
<script src="/upload-button.js"></script>
2025-02-08 21:54:46 +01:00
<script src="/generic-form.js"></script>
2025-02-08 17:09:05 +01:00
<script src="/html-frame.js"></script>
<script src="/schedule.js"></script>
<script src="/app.js"></script>
<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">
</head>
<body>
<header>
2025-02-09 01:34:02 +01:00
<div class="no-select logo">Snek</div>
2025-02-09 01:38:01 +01:00
<nav class="no-select">
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>
<a class="no-select" href="/web.html">👥</a>
<a class="no-select" href="#">⚙️</a>
<a class="no-select" href="/logout.html">🔒</a>
2025-02-08 17:09:05 +01:00
</nav>
</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 %}
{% 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>