Files
furumi-web/templates/player.html
T

45 lines
1.8 KiB
HTML
Raw Normal View History

2026-05-23 13:08:09 +03:00
{% extends "base.html" %}
{% block html_attrs %} data-offline-account="{% if !guest && share_token.is_empty() %}{{ account_id }}{% endif %}" data-offline-mode="online"{% endblock html_attrs %}
2026-05-23 13:08:09 +03:00
{% block title %}{{ t.site_name }}{% endblock title %}
{% block head_extra %}
{% if !guest && share_token.is_empty() %}
<link rel="manifest" href="/player.webmanifest">
<meta name="theme-color" content="#121212">
<script>
if ('serviceWorker' in navigator) {
const bindOfflineAccount = () => navigator.serviceWorker.controller?.postMessage({
type:'offline-client', account:document.documentElement.dataset.offlineAccount
});
bindOfflineAccount();
navigator.serviceWorker.addEventListener('controllerchange', bindOfflineAccount);
}
</script>
<script>{{ self.offline_catalog()|safe }}</script>
{% endif %}
2026-05-26 12:55:11 +03:00
{% include "player/styles.html" %}
2026-11-22 17:49:23 +02:00
{% include "player/podcast_styles.html" %}
{% include "player/sidebar_styles.html" %}
{% include "player/collection_styles.html" %}
{% include "player/listening_styles.html" %}
2026-05-23 13:08:09 +03:00
{% endblock head_extra %}
{% block body %}
2026-05-26 12:55:11 +03:00
{% include "player/shell.html" %}
{% include "player/modals.html" %}
2026-11-23 01:45:22 +02:00
{% include "player/lyrics_modal.html" %}
{% include "player/offline_scripts.html" %}
{% include "player/offline_manager_scripts.html" %}
2026-11-22 16:05:37 +02:00
{% include "player/podcast_scripts.html" %}
2026-11-23 01:45:22 +02:00
{% include "player/lyrics_scripts.html" %}
{% include "player/lyrics_search_scripts.html" %}
{% include "player/search_group_scripts.html" %}
{% include "player/collection_scripts.html" %}
{% include "player/listening_scripts.html" %}
{% include "player/track_actions_scripts.html" %}
{% include "player/playlist_header_scripts.html" %}
{% include "player/playlist_filter_scripts.html" %}
2026-11-22 17:49:23 +02:00
{% include "player/scripts.html" %}
<script>{{ self.alpine()|safe }}</script>
2026-05-23 13:08:09 +03:00
{% endblock body %}