Use --pushstate and absolute URLs
This commit is contained in:
@@ -69,7 +69,7 @@ elm-package install --yes
|
||||
Once that succeeds, run this to verify everything:
|
||||
|
||||
```bash
|
||||
elm-live Main.elm --open --output=elm.js
|
||||
elm-live Main.elm --open --pushstate --output=elm.js
|
||||
```
|
||||
|
||||
A browser should open, and you should see this in it:
|
||||
|
||||
@@ -16,7 +16,7 @@ elm-package install
|
||||
## Building
|
||||
|
||||
```bash
|
||||
elm-live Main.elm --open --output=elm.js
|
||||
elm-live Main.elm --open --pushstate --output=elm.js
|
||||
```
|
||||
|
||||
## Compiling CSS
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>ElmHub</title>
|
||||
<script type="text/javascript" src="elm.js"></script>
|
||||
<script type="text/javascript" src="/elm.js"></script>
|
||||
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<link rel="icon" type="image/png" href="elm-hub.png">
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
<link rel="icon" type="image/png" href="/elm-hub.png">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
10
index.html
10
index.html
@@ -4,13 +4,9 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Elm Workshop</title>
|
||||
<script type="text/javascript" src="elm.js"></script>
|
||||
|
||||
<!-- Uncomment the below line to enable elm-reactor support. -->
|
||||
<!-- <script type="text/javascript" src="/_reactor/debug.js"></script> -->
|
||||
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<link rel="icon" type="image/png" href="elm-hub.png">
|
||||
<script type="text/javascript" src="/elm.js"></script>
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
<link rel="icon" type="image/png" href="/elm-hub.png">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
@@ -16,7 +16,7 @@ elm-package install
|
||||
## Building
|
||||
|
||||
```bash
|
||||
elm-live Main.elm --open --output=elm.js
|
||||
elm-live Main.elm --open --pushstate --output=elm.js
|
||||
```
|
||||
|
||||
## References
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>ElmHub</title>
|
||||
<script type="text/javascript" src="elm.js"></script>
|
||||
<script type="text/javascript" src="/elm.js"></script>
|
||||
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<link rel="icon" type="image/png" href="elm-hub.png">
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
<link rel="icon" type="image/png" href="/elm-hub.png">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
@@ -16,7 +16,7 @@ elm-package install
|
||||
## Building
|
||||
|
||||
```bash
|
||||
elm-live Main.elm --open --output=elm.js
|
||||
elm-live Main.elm --open --pushstate --output=elm.js
|
||||
```
|
||||
|
||||
## Running Tests
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>ElmHub</title>
|
||||
<script type="text/javascript" src="github.js"></script>
|
||||
<script type="text/javascript" src="elm.js"></script>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<script type="text/javascript" src="/github.js"></script>
|
||||
<script type="text/javascript" src="/elm.js"></script>
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
<link rel="icon" type="image/png" href="elm-hub.png">
|
||||
</head>
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ elm-package install
|
||||
## Building
|
||||
|
||||
```bash
|
||||
elm-live Main.elm --open --output=elm.js
|
||||
elm-live Main.elm --open --pushstate --output=elm.js
|
||||
```
|
||||
|
||||
## References
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>ElmHub</title>
|
||||
<script type="text/javascript" src="elm.js"></script>
|
||||
<script type="text/javascript" src="/elm.js"></script>
|
||||
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<link rel="icon" type="image/png" href="elm-hub.png">
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
<link rel="icon" type="image/png" href="/elm-hub.png">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
@@ -16,7 +16,7 @@ elm-package install
|
||||
## Building
|
||||
|
||||
```bash
|
||||
elm-live Main.elm --open --output=elm.js
|
||||
elm-live Main.elm --open --pushstate --output=elm.js
|
||||
```
|
||||
|
||||
## References
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>ElmHub</title>
|
||||
<script type="text/javascript" src="elm.js"></script>
|
||||
<script type="text/javascript" src="/elm.js"></script>
|
||||
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<link rel="icon" type="image/png" href="elm-hub.png">
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
<link rel="icon" type="image/png" href="/elm-hub.png">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
@@ -16,7 +16,7 @@ elm-package install
|
||||
## Building
|
||||
|
||||
```bash
|
||||
elm-live Main.elm --open --output=elm.js
|
||||
elm-live Main.elm --open --pushstate --output=elm.js
|
||||
```
|
||||
|
||||
## References
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>ElmHub</title>
|
||||
<script type="text/javascript" src="elm.js"></script>
|
||||
<script type="text/javascript" src="/elm.js"></script>
|
||||
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<link rel="icon" type="image/png" href="elm-hub.png">
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
<link rel="icon" type="image/png" href="/elm-hub.png">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
@@ -16,7 +16,7 @@ elm-package install
|
||||
## Building
|
||||
|
||||
```bash
|
||||
elm-live Main.elm --open --output=elm.js
|
||||
elm-live Main.elm --open --pushstate --output=elm.js
|
||||
```
|
||||
|
||||
## References
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>ElmHub</title>
|
||||
<script type="text/javascript" src="elm.js"></script>
|
||||
<script type="text/javascript" src="/elm.js"></script>
|
||||
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<link rel="icon" type="image/png" href="elm-hub.png">
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
<link rel="icon" type="image/png" href="/elm-hub.png">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
@@ -16,5 +16,5 @@ elm-package install
|
||||
## Building
|
||||
|
||||
```bash
|
||||
elm-live Main.elm --open --output=elm.js
|
||||
elm-live Main.elm --open --pushstate --output=elm.js
|
||||
```
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>ElmHub</title>
|
||||
<script type="text/javascript" src="elm.js"></script>
|
||||
<script type="text/javascript" src="/elm.js"></script>
|
||||
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<link rel="icon" type="image/png" href="elm-hub.png">
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
<link rel="icon" type="image/png" href="/elm-hub.png">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
@@ -16,7 +16,7 @@ elm-package install
|
||||
## Building
|
||||
|
||||
```bash
|
||||
elm-live Main.elm --open --output=elm.js
|
||||
elm-live Main.elm --open --pushstate --output=elm.js
|
||||
```
|
||||
|
||||
## References
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>ElmHub</title>
|
||||
<script type="text/javascript" src="elm.js"></script>
|
||||
<script type="text/javascript" src="/elm.js"></script>
|
||||
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<link rel="icon" type="image/png" href="elm-hub.png">
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
<link rel="icon" type="image/png" href="/elm-hub.png">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
@@ -16,5 +16,5 @@ elm-package install
|
||||
## Building
|
||||
|
||||
```bash
|
||||
elm-live Main.elm --open --output=elm.js
|
||||
elm-live Main.elm --open --pushstate --output=elm.js
|
||||
```
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>ElmHub</title>
|
||||
<script type="text/javascript" src="github.js"></script>
|
||||
<script type="text/javascript" src="elm.js"></script>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<link rel="icon" type="image/png" href="elm-hub.png">
|
||||
<script type="text/javascript" src="/elm.js"></script>
|
||||
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
<link rel="icon" type="image/png" href="/elm-hub.png">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
@@ -16,7 +16,7 @@ elm-package install
|
||||
## Building
|
||||
|
||||
```bash
|
||||
elm-live Main.elm --open --output=elm.js
|
||||
elm-live Main.elm --open --pushstate --output=elm.js
|
||||
```
|
||||
|
||||
## Running Tests
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>ElmHub</title>
|
||||
<script type="text/javascript" src="github.js"></script>
|
||||
<script type="text/javascript" src="elm.js"></script>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<link rel="icon" type="image/png" href="elm-hub.png">
|
||||
<script type="text/javascript" src="/github.js"></script>
|
||||
<script type="text/javascript" src="/elm.js"></script>
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
<link rel="icon" type="image/png" href="/elm-hub.png">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
Reference in New Issue
Block a user