Skip to content

Commit fbf2c6d

Browse files
committed
docs(jump-links): add non-contiguous demo
1 parent 4b6c978 commit fbf2c6d

File tree

1 file changed

+104
-0
lines changed

1 file changed

+104
-0
lines changed
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
<article class="content">
2+
<section id="chapter-1">
3+
<h1>Chapter 1</h1>
4+
</section>
5+
<section id="chapter-2">
6+
<h2>
7+
<a href="#chapter-2">Chapter 2</a>
8+
</h2>
9+
</section>
10+
<section id="chapter-3">
11+
<h2>
12+
<a href="#chapter-3">Chapter 3</a>
13+
</h2>
14+
<section id="sub-chapter-1">
15+
<h3>
16+
<a href="#sub-chapter-1">Sub-chapter 3.1</a>
17+
</h3>
18+
</section>
19+
<section id="sub-chapter-2">
20+
<h3>
21+
<a href="#sub-chapter-2">Sub-chapter 3.2</a>
22+
</h3>
23+
</section>
24+
<section id="sub-chapter-3">
25+
<h3>
26+
<a href="#sub-chapter-3">Sub-chapter 3.3</a>
27+
</h3>
28+
</section>
29+
<section id="sub-chapter-4">
30+
<h3>
31+
<a href="#sub-chapter-4">Sub-chapter 3.4</a>
32+
</h3>
33+
</section>
34+
<section id="sub-chapter-5">
35+
<h3>
36+
<a href="#sub-chapter-5">Sub-chapter 3.5</a>
37+
</h3>
38+
</section>
39+
<section id="sub-chapter-6">
40+
<h3>
41+
<a href="#sub-chapter-6">Sub-chapter 3.6</a>
42+
</h3>
43+
</section>
44+
<section id="sub-chapter-7">
45+
<h3>
46+
<a href="#sub-chapter-7">Sub-chapter 3.7</a>
47+
</h3>
48+
</section>
49+
<section id="sub-chapter-8">
50+
<h3>
51+
<a href="#sub-chapter-8">Sub-chapter 3.8</a>
52+
</h3>
53+
</section>
54+
<section id="sub-chapter-9">
55+
<h3>
56+
<a href="#sub-chapter-9">sub-chapter 3.9</a>
57+
</h3>
58+
</section>
59+
<section id="sub-chapter-10">
60+
<h3>
61+
<a href="#sub-chapter-10">Sub-chapter 3.10</a>
62+
</h3>
63+
</section>
64+
</section>
65+
<section id="chapter-4">
66+
<h2>
67+
<a href="#chapter-4">Chapter 4</a>
68+
</h2>
69+
</section>
70+
<section id="chapter-5">
71+
<h2>
72+
<a href="#chapter-5">Chapter 5</a>
73+
</h2>
74+
<section id="sub-chapter-11">
75+
<h3>
76+
<a href="#sub-chapter-11">Sub-chapter 5.1</a>
77+
</h3>
78+
</section>
79+
<section id="sub-chapter-12">
80+
<h3>
81+
<a href="#sub-chapter-12">Sub-chapter 5.2</a>
82+
</h3>
83+
</section>
84+
</section>
85+
</article>
86+
87+
<pf-jump-links vertical>
88+
<pf-jump-links-item href="#sub-chapter-1">Sub-chapter 3.1</pf-jump-links-item>
89+
<pf-jump-links-item href="#sub-chapter-2">Sub-chapter 3.2</pf-jump-links-item>
90+
<pf-jump-links-item href="#sub-chapter-3">Sub-chapter 3.3</pf-jump-links-item>
91+
<pf-jump-links-item href="#sub-chapter-4">Sub-chapter 3.4</pf-jump-links-item>
92+
<pf-jump-links-item href="#sub-chapter-5">Sub-chapter 3.5</pf-jump-links-item>
93+
<pf-jump-links-item href="#sub-chapter-6">Sub-chapter 3.6</pf-jump-links-item>
94+
<pf-jump-links-item href="#sub-chapter-7">Sub-chapter 3.7</pf-jump-links-item>
95+
<pf-jump-links-item href="#sub-chapter-8">Sub-chapter 3.8</pf-jump-links-item>
96+
<pf-jump-links-item href="#sub-chapter-9">Sub-chapter 3.9</pf-jump-links-item>
97+
<pf-jump-links-item href="#sub-chapter-10">Sub-chapter 3.10</pf-jump-links-item>
98+
<pf-jump-links-item href="#sub-chapter-11">Sub-chapter 5.1</pf-jump-links-item>
99+
<pf-jump-links-item href="#sub-chapter-12">Sub-chapter 5.2</pf-jump-links-item>
100+
</pf-jump-links>
101+
102+
<script type="module">
103+
import '@patternfly/elements/pf-jump-links/pf-jump-links.js';
104+
</script>

0 commit comments

Comments
 (0)