aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/www/demos/feed.html
blob: fef16b7dc5bcecbce179180c95a330a73bd3fe5b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
---
layout: layout.vto
name: Feed
---

<main>
    <h1>Feeds</h1>

    <script type="module" src="/dist/js/feed.js"></script>

    <p>
      Keyboard navigation:
      <ul>
        <li><kbd><kbd>PageUp</kbd></kbd> Previous article</li>
        <li><kbd><kbd>PageDown</kbd></kbd> Next article</li>
        <li><kbd><kbd>Ctrl</kbd></kbd>+<kbd><kbd>Home</kbd></kbd> First focusable before feed</li>
        <li><kbd><kbd>Ctrl</kbd></kbd>+<kbd><kbd>End</kbd></kbd> First focusable after feed</li>
        <li><kbd><kbd>Alt</kbd></kbd>+<kbd><kbd>PageUp</kbd></kbd> Previous article in parent feed</li>
        <li><kbd><kbd>Alt</kbd></kbd>+<kbd><kbd>PageDown</kbd></kbd> First focusable in nested feed</li>
      </ul>
    </p>
    <a href="#">A focusable element before the feeds</a>
    <div role="feed">
      <article class="box" aria-labelledby="f1-a1-label">
         <h2 id="f1-a1-label">Article 1</h2>
         <p>Some content for the article.</p>
         <a href="#">A focusable link</a>
      </article>
      <article class="box" aria-labelledby="f1-a2-label">
         <h2 id="f1-a2-label">Article 2</h2>
         <p>Some content for the article.</p>
         <a href="#">A focusable link</a>
      </article>
      <article class="box" aria-labelledby="f1-a3-label">
         <h2 id="f1-a3-label">Article 3</h2>
         <p>Some content for the article.</p>
         <a href="#">A focusable link</a>
      </article>
    </div>

    <a href="#">A focusable element betweeen feeds</a>

    <div role="feed">
      <article class="box" aria-labelledby="f2-a1-label">
         <h2 id="f2-a1-label">Article 1</h2>
         <p>Some content for the article.</p>
         <a href="#">A focusable link</a>
         <div role="feed">
          <article class="box ok" aria-labelledby="f2-a1-c1-label">
            <h3 id="f2-a1-c1-label">Comment #1</h3>
            <p>Some content for the comment.</p>
            <a href="#">Link 1</a> <a href="#">Link 2</a>
          </article>
          <article class="box ok" aria-labelledby="f2-a1-c2-label">
            <h3 id="f2-a1-c2-label">Comment #2</h3>
            <p>Some content for the comment.</p>
            <a href="#">Link 1</a> <a href="#">Link 2</a>
          </article>
         </div>
      </article>
      <article class="box" aria-labelledby="f2-a2-label">
         <h2 id="f2-a2-label">Article 2</h2>
         <p>Some content for the article.</p>
         <a href="#">A focusable link</a>
         <div role="feed">
          <article class="box ok" aria-labelledby="f2-a2-c1-label">
            <h3 id="f2-a2-c1-label">Comment #1</h3>
            <p>Some content for the comment.</p>
            <a href="#">Link 1</a> <a href="#">Link 2</a>
          </article>
          <article class="box ok" aria-labelledby="f2-a2-c2-label">
            <h3 id="f2-a2-c2-label">Comment #2</h3>
            <p>Some content for the comment.</p>
            <a href="#">Link 1</a> <a href="#">Link 2</a>
          </article>
         </div>
      </article>
    </div>
    <a href="#">A focusable element after the feeds</a>
</main>