Add !!Con 2021 content
This commit is contained in:
parent
6ff7b698d8
commit
c7b1af832e
21 changed files with 11551 additions and 0 deletions
12
content/pages/bangbangcon2021/custom.js
Normal file
12
content/pages/bangbangcon2021/custom.js
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
slideshow.on('showSlide', s => {
|
||||
if (s.properties['video-fullscreen']) {
|
||||
const el = document.createElement("video");
|
||||
el.classList.add('video-fullscreen');
|
||||
el.src = s.properties['video-fullscreen'];
|
||||
el.controls = false;
|
||||
document.body.prepend(el);
|
||||
el.play();
|
||||
} else {
|
||||
document.querySelectorAll('.video-fullscreen').forEach(el => el.parentElement.removeChild(el));
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue