Skip to content

Commit d2680f1

Browse files
authored
fix: history-api demo (mdn#237)
* fix: history-api demo * fix destination links * horizontal navbar items * remove .html from links
1 parent 4e65005 commit d2680f1

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

history-api/index.html

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,20 @@
44
<meta charset="utf-8" />
55
<title>Creatures: Home</title>
66
<script src="script.js" defer></script>
7+
<style>
8+
.nav li {
9+
display: inline-block;
10+
margin-right: 2rem;
11+
}
12+
</style>
713
</head>
814

915
<body>
1016
<ul class="nav">
11-
<li><a href="/">Home</a></li>
12-
<li><a href="eagle.html" data-creature="eagle">Eagle</a></li>
13-
<li><a href="vulture.html" data-creature="vulture">Vulture</a></li>
14-
<li><a href="turtle.html" data-creature="turtle">Turtle</a></li>
17+
<li><a href="/dom-examples/history-api/">Home</a></li>
18+
<li><a href="eagle" data-creature="eagle">Eagle</a></li>
19+
<li><a href="vulture" data-creature="vulture">Vulture</a></li>
20+
<li><a href="turtle" data-creature="turtle">Turtle</a></li>
1521
</ul>
1622

1723
<p id="description">Let's look at some creatures.</p>

0 commit comments

Comments
 (0)