docs
This commit is contained in:
4
example/built-in/spa/.local-web-server.json
Normal file
4
example/built-in/spa/.local-web-server.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"spa": "index.html",
|
||||
"no-cache": true
|
||||
}
|
5
example/built-in/spa/css/style.css
Normal file
5
example/built-in/spa/css/style.css
Normal file
@ -0,0 +1,5 @@
|
||||
body {
|
||||
background-color: IndianRed;
|
||||
}
|
||||
|
||||
a { color: black }
|
BIN
example/built-in/spa/image.jpg
Normal file
BIN
example/built-in/spa/image.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.3 KiB |
14
example/built-in/spa/index.html
Normal file
14
example/built-in/spa/index.html
Normal file
@ -0,0 +1,14 @@
|
||||
<head>
|
||||
<link rel="stylesheet" href="/css/style.css">
|
||||
</head>
|
||||
<h1>Single Page App</h1>
|
||||
<h2>Location: <span></span></h2>
|
||||
<ul>
|
||||
<li><a href="/login">/login</a></li>
|
||||
<li><a href="/search">/search</a></li>
|
||||
</ul>
|
||||
<p>Found asset: <img src="image.jpg" /></p>
|
||||
<p>Missing asset (should 404): <img src="sdafsadf.jpg" /></p>
|
||||
<script>
|
||||
document.querySelector('h2 span').textContent = window.location.pathname
|
||||
</script>
|
Reference in New Issue
Block a user