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

Method showMode

contributed/modClock/main.js:994–1006  ·  view source on GitHub ↗
(mode)

Source from the content-addressed store, hash-verified

992*/
993
994 showMode(mode) {
995 switch (mode) {
996 case MODE_SET: this.display.value("set "); break;
997 case MODE_2412: this.display.value("2412"); break;
998 case MODE_DST: this.display.value("dst "); break;
999 case MODE_BRIGHT: this.display.value("brit"); break;
1000 case MODE_TAIL: this.display.value("tail"); break;
1001 case MODE_TAIL_BRIGHT: this.display.value("tbrt"); break;
1002 case MODE_BOOT: this.display.value("boot"); break;
1003 case MODE_CLEAR: this.display.value("clr "); break;
1004 default: this.display.value("huh "); break;
1005 }
1006 }
1007
1008 drawHours(d) {
1009 let h = d.getHours();

Callers 1

leftStillDownMethod · 0.80

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected