JSFiddle

  • Mithril + Google Maps

    No-Library (pure JS), HTML, CSS, JavaScript

    window.onload=function(){
      var loadmap = function (el, init) {
        console.log(init);
        if (init) return
        var opts = opts = {
          center: new google ...
  • Experiment with drag-&-drop & Mithril

    No-Library (pure JS), HTML, SCSS, JavaScript

    // Make a model for the sake of example
    var lists = [
        [],
        [ { name : '', uid : 'foo' } ],
        [ { name : '', uid : 'bar' } ]
    ];
    
    // Give a name and ...
  • Countdown clock

    Countdown clock with Mithril

    const Clock = function () {
      let minutes = 25
      let seconds = 0
    
      const clock = {
        reset: () => {e
          minutes = 25
          seconds = 0
        },
        getTime: () => {
          return `${twoDigits ...
  • Mithril Todo Example

    This is the todo example from http://lhorie.github.io/mithril/getting-started.html

    //this application only has one module: todo
    var todo = {};
    
    //for simplicity, we use this module to namespace the model classes ...