global: add custom context menu, fix js not working when swapping through htmx
This commit is contained in:
parent
4e69d307cf
commit
d000b743a1
5 changed files with 89 additions and 20 deletions
|
|
@ -1,6 +1,8 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<!-- Welcome!! -->
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, interactive-widget=resizes-content" />
|
||||
|
|
@ -17,6 +19,7 @@
|
|||
|
||||
<body hx-boost="true" hx-target="#content">
|
||||
<crt>
|
||||
<!-- They won't ever disappear -->
|
||||
<persistent-ui>
|
||||
{% include "partials/header.html" %}
|
||||
<miniplayer-container id="miniplayer-container">
|
||||
|
|
@ -24,12 +27,15 @@
|
|||
</miniplayer-container>
|
||||
</persistent-ui>
|
||||
|
||||
<!-- Will get swapped by HTMX-->
|
||||
<main id="content">
|
||||
{% block content %}{% endblock %}
|
||||
</main>
|
||||
</crt>
|
||||
|
||||
<!-- Noooooooooooooooooooooooooo -->
|
||||
<script src="/static/miniplayer.js"></script>
|
||||
<script src="/static/contextmenu.js"></script>
|
||||
<script>
|
||||
function updateMiniplayerVisibility() {
|
||||
const isMusicPage = window.location.pathname === '/music';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue