- compile the SendToPort.elm to elm.js
elm-make SendToPort.elm --output elm.js
- open SendToPort.html
module InsertHtml where | |
import Html exposing (..) | |
import Html.Attributes exposing (..) | |
import Html.Events exposing (onClick) | |
outputMB : Signal.Mailbox String | |
outputMB = Signal.mailbox "" | |
port output : Signal String |
import Html exposing (..) | |
import Html.Attributes exposing (width, style) | |
import StartApp | |
import Effects exposing (Effects) | |
import Task exposing (Task) | |
import Time exposing (Time) | |
type MainAction = Sidebar Html | Content Html |
import Html exposing (Html, div, button, text) | |
import Html.App as App exposing (beginnerProgram) | |
import Html.Events exposing (onClick) | |
import Html.Attributes exposing (style) | |
main : Program Never | |
main = | |
beginnerProgram { model = init (0,0) (0,0), view = view, update = update } | |
-- MODEL |
import Html exposing (Html, div, button, text) | |
import Html.App as App exposing (beginnerProgram) | |
import Html.Events exposing (onClick) | |
import Html.Attributes exposing (style) | |
main : Program Never | |
main = | |
beginnerProgram { model = init 0 0 0, view = view, update = update } | |
-- MODEL |
module Flexy | |
( Design, design | |
, row, column, rowReverse, columnReverse | |
, wrap, wrapReverse, noWrap | |
, justifyStart, justifyCenter, justifyEnd, justifyBetween, justifyAround | |
, alignItemsStart, alignItemsCenter, alignItemsEnd | |
, alignItemsStretch, alignItemsBaseline | |
, alignContentStart, alignContentCenter, alignContentEnd, alignContentStretch | |
, alignContentBetween, alignContentAround | |
, flex, order |
module Counter exposing (..) | |
import Html exposing (..) | |
import Html.Attributes exposing (style) | |
import Html.Events exposing (onClick) | |
-- MODEL | |
type alias Model = Int |
import Html exposing (..) | |
import Html.App as App | |
import Html.Attributes exposing (..) | |
import Mouse exposing (Position) | |
import Window exposing (Size) | |
import Task | |
-- MODEL | |
plottingSize = Size 600 400 |
module Component exposing (..) | |
import Html exposing (..) | |
import Html.Attributes exposing (style) | |
import Html.Events exposing (onClick) | |
import Ports exposing (..) | |
-- MODEL |
module RandomGif exposing (..) | |
import Html exposing (..) | |
import Html.Attributes exposing (style) | |
import Html.Events exposing (onClick) | |
import Http | |
import Json.Decode as Json | |
import Task | |