diff options
author | cel 🌸 <cel@blos.sm> | 2024-07-17 06:19:44 +0100 |
---|---|---|
committer | cel 🌸 <cel@blos.sm> | 2024-07-17 06:19:44 +0100 |
commit | 5c37993d0672d5ce34e9766d3a4f85c7f59ccb7a (patch) | |
tree | 13a785b659996915be3a782e5f8f386402b76c16 /templates/article.html | |
parent | fd0ea710395904e1b4cf5f22fd17af13db43ce5f (diff) | |
download | infoculture.pub-5c37993d0672d5ce34e9766d3a4f85c7f59ccb7a.tar.gz infoculture.pub-5c37993d0672d5ce34e9766d3a4f85c7f59ccb7a.tar.bz2 infoculture.pub-5c37993d0672d5ce34e9766d3a4f85c7f59ccb7a.zip |
webtorrent testing
Diffstat (limited to 'templates/article.html')
-rw-r--r-- | templates/article.html | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/templates/article.html b/templates/article.html index e5ed720..3de52e4 100644 --- a/templates/article.html +++ b/templates/article.html @@ -3,17 +3,15 @@ <div class="thumbnail" style="height: 30vh;">$thumbnail$</div> $endif$ $if(torrent)$ - <div> - <video controls class="thumbnail" id="media-$id$" style="height: 30vh;"></video> - <script type='module'> - const torrentId = '$torrent$'; - const player = document.querySelector('#media-$id$'); - window.torrentClient.add(torrentId, torrent => { - const file = torrent.files.find(file => file.name.endsWith('.mp4')); - file.streamTo(player); - }); - </script> - </div> + <video controls class="thumbnail" id="media-$id$" style="height: 30vh;"></video> + <script type='module'> + const torrentId = '$torrent$'; + const player = document.querySelector('#media-$id$'); + window.torrentClient.add(torrentId, torrent => { + const file = torrent.files.find(file => file.name.endsWith('.mp4')); + file.streamTo(player); + }); + </script> $endif$ <div class="panel"> <section class="header"> |