Need help for an iFrame embed timer for school project
Hi everyone,
We have a school project to do and I wanted to add a visual timer, but not the one we have at the bottom because the countdown is not dedicated to everyone, and is about 5 days long.
I tried to add an embed one from https://www.watchisup.fr/ but the timer appears with a play button and everyone must click on it in order to see it in a popup window…
What I wanted to do is for the timer to be displayed straight in Miro, with the clock ticking automatically for everyone. Is it possible to display an animated timer in that way? I can for example directly add a google slide document in it and visualize it… why I can with my timer?
Also if it isn’t possible, when I click on the play button it opens a popup page inside Miro, isn’t it possible to open it like youtube videos or google slides, on the board directly ?
Thanks in advance,
Sacha
Page 1 / 1
Hi @Sacha,
It is not possible today to select if the embed widget should open natively on the board (like a YouTube video) or in a modal view. We are working on improving the way developers can use this widget in the future.
I don’t believe there is a simple way of building a timer that will be visible by all users on the board today. You could build your own version using Miro’s shapes and lines and animate it thanks to the app by moving these shapes.
The other solution would be: If you have a page with html/css/js that has a timer you could load it in a panel or modal iframe as an app. However, I don’t think this will solve your issue.
so we cannot ember an iFrame or other javascript type of code on a page
<script> // Set the date we're counting down to var countDownDate = new Date("Jan 5, 2024 15:37:25").getTime();
// Update the count down every 1 second var x = setInterval(function() {
// Get today's date and time var now = new Date().getTime();
// Find the distance between now and the count down date var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds var days = Math.floor(distance / (1000 * 60 * 60 * 24)); var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Output the result in an element with id="demo" document.getElementById("demo").innerHTML = days + "d " + hours + "h " + minutes + "m " + seconds + "s ";
// If the count down is over, write some text if (distance < 0) { clearInterval(x); document.getElementById("demo").innerHTML = "EXPIRED"; } }, 1000); </script>
</body> </html>
@David Look - The following embeds fine for me (copy-pasted from your reply):