SPA option added

This commit is contained in:
Lloyd Brookes
2015-11-15 14:53:25 +00:00
parent b42e5f3918
commit 99305cb78a
7 changed files with 32 additions and 3 deletions

View File

@ -0,0 +1,3 @@
{
"spa": "spa.html"
}

View File

@ -0,0 +1,3 @@
body {
background-color: IndianRed;
}

View File

@ -0,0 +1 @@
<h1>one</h1>

View File

@ -0,0 +1,8 @@
<head>
<link rel="stylesheet" href="css/style.css">
</head>
<h1>Single Page App</h1>
<h2>Location: <span></span></h2>
<script>
document.querySelector('h2 span').textContent = window.location.pathname
</script>