Skip to content

Instantly share code, notes, and snippets.

@kouphax
Last active August 29, 2015 14:26
Show Gist options
  • Select an option

  • Save kouphax/8ad1b0ffcb878abf098e to your computer and use it in GitHub Desktop.

Select an option

Save kouphax/8ad1b0ffcb878abf098e to your computer and use it in GitHub Desktop.

Revisions

  1. kouphax revised this gist Jul 28, 2015. 1 changed file with 18 additions and 0 deletions.
    18 changes: 18 additions & 0 deletions index.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    <!DOCTYPE HTML>
    <html>

    <head>
    <meta charset="UTF-8">
    <script type="text/javascript" src="confirm.js"></script>
    </head>

    <body>
    </body>

    <script type="text/javascript">
    var app = Elm.fullscreen(Elm.Confirm, { getName: "James" });

    app.ports.getName.send("Peter")
    </script>

    </html>
  2. kouphax created this gist Jul 28, 2015.
    12 changes: 12 additions & 0 deletions Confirm.elm
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    module Confirm where

    import Html exposing (..)
    import Html.Events exposing (..)
    import Html.Attributes exposing (..)
    import Signal exposing (..)
    import StartApp

    port getName : Signal String

    main : Signal Html
    main = Signal.map text getName