Skip to content

Instantly share code, notes, and snippets.

@jeanpaulsio
Created August 26, 2017 22:33
Show Gist options
  • Select an option

  • Save jeanpaulsio/e534814f568a0c9a2b743fce0f493077 to your computer and use it in GitHub Desktop.

Select an option

Save jeanpaulsio/e534814f568a0c9a2b743fce0f493077 to your computer and use it in GitHub Desktop.

Revisions

  1. jeanpaulsio created this gist Aug 26, 2017.
    46 changes: 46 additions & 0 deletions schedule.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,46 @@
    /*
    0 - Sunday
    1 - Monday
    2 - Tuesday
    3 - Wednesday
    4 - Thursday
    5 - Friday
    6 - Saturday
    */

    data =
    [
    {
    id: 2
    date_as_string: "Next Tuesday"
    times: [
    {
    id: 1
    time_string: "8:00am"
    },
    {
    id: 2
    time_string: "8:30am"
    },
    ]
    },
    {
    id: 3
    date_as_string: "Next Wednesday"
    times: [
    {
    id: 1
    time_string: "8:00am"
    },
    {
    id: 2
    time_string: "8:30am"
    },
    ]
    },
    ]