docs.. examples

This commit is contained in:
Lloyd Brookes
2015-11-15 23:52:13 +00:00
parent b945f29feb
commit a5a1b6f9ec
10 changed files with 83 additions and 13 deletions

View File

@ -0,0 +1,7 @@
body {
background-color: #AA3939;
color: #FFE2E2
}
svg {
fill: #000
}

10
example/simple/index.html Normal file
View File

@ -0,0 +1,10 @@
<head>
<link rel="stylesheet" href="css/style.css">
</head>
<h1>Amazing Page</h1>
<p>
With a freaky triangle..
</p>
<svg width="500" height="500">
<polygon points="250,0 0,500 500,500"></polygon>
</svg>

View File

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

View File

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

8
example/spa/index.html Normal file
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>