Able to turn off and on the clock module

This commit is contained in:
Andrew Chumchal
2016-09-11 08:14:28 -07:00
parent f468dbf427
commit 747e1a818d
2 changed files with 12 additions and 2 deletions

View File

@@ -15,6 +15,7 @@ Module.register("clock",{
showPeriod: true,
showPeriodUpper: false,
clockBold: false,
showDate: true,
/* specific to the analog clock */
analogSize: '200px',
@@ -85,7 +86,9 @@ Module.register("clock",{
timeString = moment().format("h:mm");
}
}
if(this.config.showDate){
dateWrapper.innerHTML = moment().format("dddd, LL");
}
timeWrapper.innerHTML = timeString;
secondsWrapper.innerHTML = moment().format("ss");
if (this.config.showPeriodUpper) {
@@ -224,4 +227,4 @@ Module.register("clock",{
// Return the wrapper to the dom.
return wrapper;
}
});
});