visible countdown

This commit is contained in:
Davide Alberani 2018-12-12 20:57:29 +01:00
parent 26a8a9dc8b
commit d9740938b9
3 changed files with 6 additions and 1 deletions

View file

@ -29,6 +29,10 @@
z-index: 10000; z-index: 10000;
} }
#sb-countdown {
min-width: 20px;
}
.btn { .btn {
margin-right: 10px; margin-right: 10px;
} }

View file

@ -34,7 +34,7 @@
<div class="row"> <div class="row">
<div id="sb-message"> <div id="sb-message">
<span id="sb-message-text">will be gone in few seconds!</span> <span id="sb-message-text">will be gone in few seconds! <span id="sb-countdown">&nbsp;</span></span>
</div> </div>
<div id="canvas-container"> <div id="canvas-container">
<video id="sb-video" autoplay="true" muted="muted"></video> <video id="sb-video" autoplay="true" muted="muted"></video>

View file

@ -103,6 +103,7 @@ function cancelPhoto() {
function updateSendCountdown() { function updateSendCountdown() {
document.querySelector("#sb-countdown").innerText = "" + countdown.seconds;
console.log("deleting photo in " + countdown.seconds + " seconds"); console.log("deleting photo in " + countdown.seconds + " seconds");
} }