Add part9

This commit is contained in:
Richard Feldman
2018-08-12 14:05:15 -04:00
parent fa84d31f62
commit 17f96d1b56
55 changed files with 5948 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
module Loading exposing (error, icon, slowThreshold)
{-| A loading spinner icon.
-}
import Asset
import Html exposing (Attribute, Html)
import Html.Attributes exposing (alt, height, src, width)
import Process
import Task exposing (Task)
icon : Html msg
icon =
Html.img [ Asset.src Asset.loading, width 64, height 64, alt "Loading..." ] []
error : String -> Html msg
error str =
Html.text ("Error loading " ++ str ++ ".")
slowThreshold : Task x ()
slowThreshold =
Process.sleep 500