diff --git a/src/javascript/controller.js b/src/javascript/controller.js
index 61336a6..27f9a6d 100644
--- a/src/javascript/controller.js
+++ b/src/javascript/controller.js
@@ -198,12 +198,12 @@ SYMPHONY.remote.hello().then(function(data) {
// Track each entity
setTimeout(function () {
this.track({instanceId: instanceId, entityData: entityData});
- }.bind(this), 5000);
+ }.bind(this), 1000);
- // Render the countdown every 5 seconds
+ // Render the countdown every 1 seconds
this.interval = setInterval(function () {
this.tick(instanceId)
- }.bind(this), 5000);
+ }.bind(this), 1000);
return this.getTimeData(entityData);
}
},
@@ -216,15 +216,16 @@ SYMPHONY.remote.hello().then(function(data) {
return {
// Use a custom template to utilise data sent with the message in entityData in our messageML message
template: `
-
- Countdown timer v
- The time until is
+
`,
data: {
- concat: diff.yrs + " years, " + diff.days + " days, " +
- diff.hrs + " hrs, " + diff.min + " minutes, and " + diff.sec + " seconds",
+ concat: "" + diff.yrs + " years," +
+ " " + diff.days + " days, " +
+ diff.hrs + " hrs," +
+ " " + diff.min + " minutes," +
+ " and " + diff.sec + " seconds",
countdown: (until.getMonth() + 1) + "/" + until.getDate() + "/" + until.getFullYear(),
version: entityData.version
},
@@ -233,4 +234,4 @@ SYMPHONY.remote.hello().then(function(data) {
}
});
}.bind(this))
-}.bind(this));
\ No newline at end of file
+}.bind(this));