initial commit

This commit is contained in:
Yann Esposito (Yogsototh) 2014-12-20 22:03:05 +01:00
commit 42fd9f9927
4 changed files with 43 additions and 0 deletions

4
.gitignore vendored Normal file
View file

@ -0,0 +1,4 @@
elm-stuff
elm.js
.cabal-sandbox
cabal.sandbox.config

4
Test.elm Normal file
View file

@ -0,0 +1,4 @@
import Graphics.Element (Element,container, midTop)
import Html (..)
main : Element
main = container 100 100 midTop (toElement 100 100 (text "coucou"))

14
elm-package.json Normal file
View file

@ -0,0 +1,14 @@
{
"version": "1.0.0",
"summary": "some small examples to help you get started with elm-reactor",
"repository": "https://github.com/evancz/elm-examples.git",
"license": "BSD3",
"source-directories": [
"."
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "1.0.0 <= v < 2.0.0",
"evancz/elm-html": "1.0.0 <= v < 2.0.0"
}
}

21
index.html Normal file
View file

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Elm Highcharts</title>
<script src="elm.js"></script>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>TEST</h1>
<p>This is a test.</p>
<div id="first"></div>
<div id="second"></div>
</body>
<script>
var div1 = document.getElementById('first');
var div2 = document.getElementById('second');
var runningElmModule1 = Elm.embed(Elm.Main,div1);
var runningElmModule2 = Elm.embed(Elm.Main,div2);
</script>
</html>