MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / drawMin

Method drawMin

contributed/modClock/main.js:1028–1030  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

1026 this.display.value((` ${(d.getMinutes()/10)|0} `).slice(0,4));
1027 }
1028 drawMin(d) {
1029 this.display.value((` ${(d.getMinutes()%10)}`).slice(0,4));
1030 }
1031 drawOnOff(d) { 1 == d ? this.display.value(" on") : this.display.value(" off"); }
1032 draw2412(d) { 1 == d ? this.display.value(" 12") : this.display.value("24 "); }
1033 drawYesNo(d) { 1 == d ? this.display.value(" yes") : this.display.value(" no"); }

Callers 2

incrementSettingMethod · 0.95
leftReleasedMethod · 0.80

Calls 2

sliceMethod · 0.65
valueMethod · 0.45

Tested by

no test coverage detected