Last active
August 29, 2015 14:26
-
-
Save kouphax/8ad1b0ffcb878abf098e to your computer and use it in GitHub Desktop.
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
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 |
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
<!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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment