← Back to Home

ColorMyMath Keyboard

The standard number pad — colored dots + digit, in every game. Tap the + / − to make it bigger or smaller.

tap a number…
Drop it into any game: add <script src="/cmm-keyboard.js"></script> then mount it.
Show the snippet
<div id="myKeyboard"></div>
<script src="/cmm-keyboard.js"></script>
<script>
  const kb = CMMKeyboard.mount('#myKeyboard', {
    onPress: n => addDigit(n),   // 0–9 pressed
    onErase: ()  => backspace(),  // erase pressed
    size: 64,                     // start size in px
    controls: true                // show bigger/smaller buttons
  });
  // kb.setScale(90)  // resize from code any time
</script>