forked from ruangrupa/lumbung.space
minor formatting
This commit is contained in:
parent
5ca22cce04
commit
40f8926fba
@ -12,10 +12,11 @@
|
|||||||
{{- partial "footer.html" . -}}
|
{{- partial "footer.html" . -}}
|
||||||
</body>
|
</body>
|
||||||
<script>
|
<script>
|
||||||
function toggleDescription(id){
|
function toggleDescription(id) {
|
||||||
document.querySelector(id).classList.toggle("collapsed");
|
document.querySelector(id).classList.toggle("collapsed");
|
||||||
}
|
}
|
||||||
function loadPlayer(id, embed_path){
|
|
||||||
|
function loadPlayer(id, embed_path) {
|
||||||
media = document.querySelector('#media-'+ id)
|
media = document.querySelector('#media-'+ id)
|
||||||
|
|
||||||
var iframe = document.createElement('iframe');
|
var iframe = document.createElement('iframe');
|
||||||
@ -27,6 +28,8 @@
|
|||||||
media.appendChild(iframe);
|
media.appendChild(iframe);
|
||||||
document.querySelector('#thumb-'+ id).remove();
|
document.querySelector('#thumb-'+ id).remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// remove black box around "previous" page nav link (couldn't handle this with CSS nth-child)
|
||||||
document.querySelector('[aria-label="Previous"]').parentElement.classList.add('previous-page-link')
|
document.querySelector('[aria-label="Previous"]').parentElement.classList.add('previous-page-link')
|
||||||
|
|
||||||
// for toggling submenus in mobile navigation drawer
|
// for toggling submenus in mobile navigation drawer
|
||||||
|
Loading…
Reference in New Issue
Block a user