negromate/web/templates/base.html

70 lines
3.0 KiB
HTML
Raw Permalink Normal View History

2021-09-29 09:36:46 +02:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>Negro Mate</title>
<link rel="shortcut icon" href="{{ root_path }}/static/css/nm_icon.png">
<link href="{{ root_path }}/static/js/videojs/video-js.css" rel="stylesheet">
<link href="{{ root_path }}/static/js/videojs-playlist-ui/dist/videojs-playlist-ui.vertical.css" rel="stylesheet">
<link href="{{ root_path }}/static/css/main.css" rel="stylesheet">
<script>
window.HELP_IMPROVE_VIDEOJS = false;
</script>
<script src="{{ root_path }}/static/js/videojs/video.min.js"></script>
<script src="{{ root_path }}/static/js/videojs-playlist/dist/videojs-playlist.js"></script>
<script src="{{ root_path }}/static/js/videojs-playlist-ui/dist/videojs-playlist-ui.js"></script>
<script src="{{ root_path }}/static/js/JavascriptSubtitlesOctopus-4.0.0/dist/js/subtitles-octopus.js"></script>
</head>
<body>
<header id="header">
<h1><a href="{{ root_path }}/home/">Negro Mate</a></h1>
</header>
<div id="content">
{% block content %}{% endblock %}
</div>
{% block page %}
<nav id="menu">
<ul>
{% for item in songs %}
<li>
<a href="{{ item.path|url }}/">
{% if item.metadata.karaoke %}
<abbr title="Enhanced Karaoke!">(#)</abbr>
{% endif %}
{{ item.name }}
</a>
</li>
2021-09-29 09:36:46 +02:00
{% endfor %}
</ul>
<p id="playlist"><a href="{{ root_path }}/playlist/">Playlist</a></p>
<p id="libreto"><a href="{{ root_path }}/static/libreto/libreto.pdf"><img src="{{ root_path }}/static/libreto/libreto.png" alt="libreto negro mate">Libreto</a></p>
<p id="onion"><a href="http://d2eekkvsyh7u2hf6jc3j5xexkxu3rfzizmj3wyrt33hp4bwkphumbbyd.onion/">onion</a></p>
<p id="ipfs"><a href="https://ipfs.negromate.rocks/ipns/negromate.rocks/">IPFS</a></p>
<p id="todo"><a href="{{ root_path }}/todo/">TODO</a></p>
</nav>
{% endblock %}
<footer>
<p>
<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">
<img alt="Licencia Creative Commons" style="border-width:0" src="{{ root_path }}/static/css/cc-by-sa.png" />
</a>&nbsp;
Letras adaptadas con
<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">
Licencia Creative Commons Atribución-CompartirIgual 4.0 Internacional
</a> salvo que se indique lo contrario en la propia canción.
</footer>
<script>
var body = document.getElementsByTagName('body')[0];
body.addEventListener('keypress', function(event) {
switch(event.key) {
case "p":
window.location = '{{ root_path }}/playlist/';
break;
}
console.log(event.key);
});
</script>
</body>
</html>