Skip to content

Commit

Permalink
Add custom html file for example to test with Bootstrap CSS.
Browse files Browse the repository at this point in the history
  • Loading branch information
niho committed Jan 3, 2019
1 parent d2cfd83 commit ef0100d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
elm-stuff/
*.js
5 changes: 5 additions & 0 deletions example/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

.PHONY : live

live:
elm-live Main.elm --open --start-page=example.html -- --output=example.js
16 changes: 16 additions & 0 deletions example/example.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<title>json-schema-form</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<script src="example.js"></script>
</head>
<body>
<div class="container">
<div id="example"></div>
</div>
<script>
Elm.Main.init({ node: document.getElementById("example") });
</script>
</body>
</html>

0 comments on commit ef0100d

Please sign in to comment.