Created
September 1, 2015 03:55
-
-
Save dela3499/200f2d7f95566f1f3e0a to your computer and use it in GitHub Desktop.
Show window dimensions http://share-elm.com/gists/200f2d7f95566f1f3e0a
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Graphics.Element exposing (..) | |
import Window | |
import Text | |
import Signal | |
main = Signal.map view Window.dimensions | |
view (w, h) = | |
(w, h) | |
|> toString | |
|> Text.fromString | |
|> Text.height 70 | |
|> leftAligned | |
|> container w h middle |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment