Skip to content

Instantly share code, notes, and snippets.

@xavez
Created July 10, 2018 08:15
Show Gist options
  • Select an option

  • Save xavez/88ba52c269cd57b53488a52ef026b4b3 to your computer and use it in GitHub Desktop.

Select an option

Save xavez/88ba52c269cd57b53488a52ef026b4b3 to your computer and use it in GitHub Desktop.

Revisions

  1. xavez created this gist Jul 10, 2018.
    14 changes: 14 additions & 0 deletions SketchSystems.spec
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    Open Home Schedule
    Empty State
    tap add open home -> Datepicker First Time
    Filled State
    Datepicker First Time
    tap cancel -> Empty State
    tap done -> Timepicker Start Date
    Datepicker
    Timepicker Start Date
    tap cancel -> Empty State
    tap clear -> Empty State
    tap done -> Filled State
    Timepicker End Date
    Timepicker
    6 changes: 6 additions & 0 deletions SketchSystems_prototype.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    function render(model){
    let current_state_name = model.active_states[0].name;
    return $("h1",
    {style: {color: "darkBlue"}},
    `The current state is: ${current_state_name}`);
    }