atajo en la web para ir a la playlist, tipografía de la página de inicio

This commit is contained in:
Ales (Shagi) Zabala Alava 2020-01-26 18:40:06 +01:00
parent b9cc815505
commit dc73b3f3ae
2 changed files with 52 additions and 28 deletions

View File

@ -55,5 +55,16 @@
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>

View File

@ -10,6 +10,7 @@ body {
background-color: #232323;
}
h1 {
font-family: "CyrBit";
text-align: center;
font-size: 50pt;
border: 5px solid black;
@ -31,6 +32,7 @@ a {
text-align: center;
border-radius: 105pt;
text-decoration: none;
font-style: italic;
}
</style>
</head>
@ -38,4 +40,15 @@ a {
<h1>Negro mate</h1>
<a href="{{ root_path }}/home/">#</a>
</body>
<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>
</html>