Habilitación de búsqueda y API 😎 #6
|
@ -119,7 +119,6 @@ País: {', '.join(obj.countries.values_list('name', flat=True))}
|
|||
Año: {obj.year}
|
||||
"""
|
||||
self._public_mastodon(message, obj.cartel)
|
||||
self._public_telegram(message, obj.cartel.url)
|
||||
return
|
||||
|
||||
|
||||
|
|
|
@ -23,6 +23,10 @@
|
|||
width: 100%;
|
||||
}
|
||||
|
||||
.navbar-burger {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
/* Cada flecha en los títulos de secciones */
|
||||
.arrows {
|
||||
font-size: 1.5rem;
|
||||
|
@ -301,11 +305,8 @@ section#notice a {
|
|||
/* SEARCH */
|
||||
|
||||
#search-form {
|
||||
width: calc(100% - 7em);
|
||||
}
|
||||
|
||||
.search-div {
|
||||
margin-top: .5em;
|
||||
width: 80vw;
|
||||
margin: auto auto auto 3rem;
|
||||
}
|
||||
|
||||
.search-div > * {
|
||||
|
@ -314,12 +315,24 @@ section#notice a {
|
|||
|
||||
.search-div input {
|
||||
width: calc(100% - 4.1rem);
|
||||
font-size: 1.25rem;
|
||||
vertical-align: text-top;
|
||||
}
|
||||
|
||||
.search-div button {
|
||||
width: 3.1rem;
|
||||
height: 3.1rem;
|
||||
width: 2.9rem;
|
||||
height: 2.9rem;
|
||||
}
|
||||
|
||||
/* LOGIN / LOGOUT */
|
||||
|
||||
#login-form {
|
||||
width: 16rem;
|
||||
margin: auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#login-form > * {
|
||||
margin-top: .5rem;
|
||||
}
|
||||
|
||||
/* ICONS; cfr: https://css.gg */
|
||||
|
|
|
@ -1,9 +1,16 @@
|
|||
// Deshabilita scroll con la tecla de espacio
|
||||
// Esto es para que en 'player' quede habilitado para reproducción
|
||||
window.addEventListener('keydown', (e) => {
|
||||
if (e.keyCode === 32 && e.target === document.body) {
|
||||
e.preventDefault();
|
||||
}
|
||||
if (e.keyCode === 32) {
|
||||
if (e.target === document.body) {
|
||||
e.preventDefault();
|
||||
}
|
||||
// Por alguna razón la tecla rápida 'espacio' no funciona en toggle como
|
||||
// la tecla rápida 'k', así que se fuerza para el mismo comportamiento
|
||||
window.dispatchEvent(new KeyboardEvent('keydown', {
|
||||
'key': 'k'
|
||||
}));
|
||||
}
|
||||
});
|
||||
|
||||
// Añade un aviso
|
||||
|
|
Loading…
Reference in New Issue