| 1 |
<!DOCTYPE html> |
| 2 |
<html lang="en"> |
| 3 |
<head> |
| 4 |
<meta charset="utf-8"> |
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1"> |
| 6 |
<title>Scrolling 1</title> |
| 7 |
<link rel="stylesheet" href="/assets/main.css"> |
| 8 |
<script src="/dist/Swup.umd.js"></script> |
| 9 |
<style> |
| 10 |
.scroll-anchors > * { |
| 11 |
display: block; |
| 12 |
margin: 1000px 0; |
| 13 |
} |
| 14 |
</style> |
| 15 |
</head> |
| 16 |
<body> |
| 17 |
<header class="header"> |
| 18 |
<ul> |
| 19 |
<li><a href="/page-1.html">Page 1</a></li> |
| 20 |
<li><a href="/page-2.html">Page 2</a></li> |
| 21 |
</ul> |
| 22 |
</header> |
| 23 |
<main id="swup" class="wrapper transition-default"> |
| 24 |
<h1>Scrolling 1</h1> |
| 25 |
|
| 26 |
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. |
| 27 |
Alias assumenda consectetur consequatur enim esse incidunt iusto, magnam |
| 28 |
maxime molestias nisi perferendis perspiciatis quibusdam quos repellat, |
| 29 |
vel veniam vero voluptate voluptatem.</p> |
| 30 |
|
| 31 |
<h2>Anchors</h2> |
| 32 |
|
| 33 |
<div class="scroll-anchors"> |
| 34 |
<div id="anchor" data-testid="anchor">Anchor</div> |
| 35 |
<div id="anchor-by-id" data-testid="anchor-by-id">Anchor by id</div> |
| 36 |
<a name="anchor-by-name" data-testid="anchor-by-name">Anchor by name</a> |
| 37 |
<div id="anchor-%21" data-testid="anchor-encoded">Anchor with encoded ID</div> |
| 38 |
<div id="anchor-!" data-testid="anchor-unencoded">Anchor with unencoded ID</div> |
| 39 |
<div id="anchor:with:colon" data-testid="anchor-with-colon">Anchor with colon</div> |
| 40 |
<div id="anchor-with-unicode-テスト" data-testid="anchor-with-unicode">Anchor with unicode</div> |
| 41 |
</div> |
| 42 |
|
| 43 |
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias |
| 44 |
assumenda consectetur consequatur enim esse incidunt iusto, magnam |
| 45 |
maxime molestias nisi perferendis perspiciatis quibusdam quos repellat, |
| 46 |
vel veniam vero voluptate voluptatem. |
| 47 |
|
| 48 |
<h2>Links</h2> |
| 49 |
|
| 50 |
<ul> |
| 51 |
<li> |
| 52 |
<a href="/scrolling-2.html" data-testid="link-to-page">Link to page</a> |
| 53 |
</li> |
| 54 |
<li> |
| 55 |
<a href="#anchor" data-testid="link-to-anchor">Link to anchor</a> |
| 56 |
</li> |
| 57 |
<li> |
| 58 |
<a href="#top" data-testid="link-to-top">Link to top</a> |
| 59 |
</li> |
| 60 |
<li> |
| 61 |
<a href="/scrolling-1.html#anchor" data-testid="link-to-self-anchor">Link to self with anchor</a> |
| 62 |
</li> |
| 63 |
<li> |
| 64 |
<a href="/scrolling-2.html#anchor" data-testid="link-to-page-anchor">Link to page with anchor</a> |
| 65 |
</li> |
| 66 |
<li> |
| 67 |
<a href="#anchor-by-id" data-testid="link-to-anchor-by-id">Link to anchor by id</a> |
| 68 |
</li> |
| 69 |
<li> |
| 70 |
<a href="#anchor-by-name" data-testid="link-to-anchor-by-name">Link to anchor by name</a> |
| 71 |
</li> |
| 72 |
<li> |
| 73 |
<a href="#anchor-%21" data-testid="link-to-anchor-encoded">Link to anchor with url-encoding</a> |
| 74 |
</li> |
| 75 |
<li> |
| 76 |
<a href="#anchor-!" data-testid="link-to-anchor-unencoded">Link to anchor without url-encoding</a> |
| 77 |
</li> |
| 78 |
<li> |
| 79 |
<a href="#anchor:with:colon" data-testid="link-to-anchor-with-colon">Link to anchor with colon</a> |
| 80 |
</li> |
| 81 |
<li> |
| 82 |
<a href="#anchor-with-unicode-テスト" data-testid="link-to-anchor-with-unicode">Link to anchor with unicode</a> |
| 83 |
</li> |
| 84 |
</ul> |
| 85 |
</main> |
| 86 |
<script> |
| 87 |
window._swup = new Swup(); |
| 88 |
</script> |
| 89 |
</body> |
| 90 |
</html> |