video.js display last copied video to homepage

This commit is contained in:
fred 2022-04-11 13:24:24 +02:00
parent c782ae6bc4
commit 18caf891fb
2 changed files with 19 additions and 0 deletions

View File

@ -320,6 +320,7 @@ echo "##########################################################################
cp ${MY_PATH}/templates/homepage.html ~/.zen/bunkerbox/homepage/index.html
cp ${MY_PATH}/templates/crowbunkerbox.png ~/.zen/bunkerbox/homepage/
sed -i "s~_IPNSL_~$IPNSL~g" ~/.zen/bunkerbox/homepage/index.html
sed -i "s~_VUID_~$INDEX/$VUID~g" ~/.zen/bunkerbox/homepage/index.html
sed -i "s/_DATE_/$(date -u "+%Y-%m-%d#%H:%M:%S")/g " ~/.zen/bunkerbox/homepage/index.html
cp ~/.zen/bunkerbox/history.json ~/.zen/bunkerbox/homepage/history.json

View File

@ -32,6 +32,24 @@
<area shape="rect" coords="3,64,1260,205" target="code" href="http://opencollective.com/monnaie-libre/projects/bunker-box" />
</map>
<center>
<div class="row justify-center">
<video
id="vbunk"
class="video-js vjs-theme-forest"
controls
preload="auto"
width="auto" height="360"
poster="_VUID_.jpg"
>
<source src="_VUID_.m3u8" type="application/x-mpegURL" />
<p class="vjs-no-js">
Activer JavaScript SVP
</p>
</video>
</div>
</center>
<div id="videosList"><div class="wrapper"></div></div>
<article>