aboutsummaryrefslogtreecommitdiff
path: root/src/client/Main.elm
blob: 7981a1ccaea90f1c6220ccf2f67e8bb321f689a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
module Main exposing
  ( main
  )

import Navigation
import Time
import Msg exposing (Msg(UpdatePage))

import Model exposing (init)
import Update exposing (update)
import View exposing (view)
import Page
import Tooltip

main =
  Navigation.programWithFlags (UpdatePage << Page.fromLocation)
    { init = init
    , view = view
    , update = update
    , subscriptions = (\model ->
        Sub.batch
          [ Time.every 60000 Msg.UpdateTime
          , Sub.map Msg.Tooltip Tooltip.subscription
          ]
      )
    }