Good morning, I have a question that I have been working on for some time. I have 1 countdown timer, when the timer reaches 0, I want invisible buttons to be visible. I'm using Meteor JS with the following package: link
E tenho o seguinte código:
var countdown1 = new ReactiveCountdown(10, {
interval: 500,
complete: function() {
var button1= document.getElementById("startMission1")
button1.style.display='none'},
});
Template.tabernaMission.events({
'click #startMission1': function(event) {
countdown1.start(function() {
});
})
Template.tabernaMission.helpers({
getCountdown1: function() {
return countdown1.get();
},
})