wai-website-theme 0.1.6 → 1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. checksums.yaml +5 -5
  2. data/_includes/backtotop.html +1 -0
  3. data/_includes/body-class.html +1 -1
  4. data/_includes/box.html +2 -0
  5. data/_includes/different.html +1 -0
  6. data/_includes/doc-note-msg.html +10 -0
  7. data/_includes/excol.html +13 -12
  8. data/_includes/external.html +1 -0
  9. data/_includes/feedback-box.html +62 -0
  10. data/_includes/footer.html +55 -27
  11. data/_includes/head.html +8 -9
  12. data/_includes/header.html +127 -30
  13. data/_includes/icon.html +6 -6
  14. data/_includes/img.html +1 -1
  15. data/_includes/menuitem.html +13 -0
  16. data/_includes/navlist.html +9 -21
  17. data/_includes/path.html +6 -0
  18. data/_includes/prevnext.html +18 -16
  19. data/_includes/resources.html +3 -3
  20. data/_includes/secondarynav.html +70 -0
  21. data/_includes/sidenav.html +42 -48
  22. data/_includes/sitemap.html +29 -0
  23. data/_includes/video-link.html +5 -0
  24. data/_includes/video-player.html +12 -10
  25. data/_layouts/default.html +30 -10
  26. data/_layouts/home.html +17 -4
  27. data/_layouts/news.html +26 -8
  28. data/_layouts/policy.html +23 -9
  29. data/_layouts/sidenav.html +28 -9
  30. data/_layouts/sidenavsidebar.html +29 -9
  31. data/assets/css/style.css +1 -4407
  32. data/assets/css/style.css.map +1 -1
  33. data/assets/fonts/notosans-bold-subset.woff +0 -0
  34. data/assets/fonts/notosans-bold-subset.woff2 +0 -0
  35. data/assets/fonts/notosans-bolditalic-subset.woff +0 -0
  36. data/assets/fonts/notosans-bolditalic-subset.woff2 +0 -0
  37. data/assets/fonts/notosans-italic-subset.woff +0 -0
  38. data/assets/fonts/notosans-italic-subset.woff2 +0 -0
  39. data/assets/fonts/notosans-regular-subset.woff +0 -0
  40. data/assets/fonts/notosans-regular-subset.woff2 +0 -0
  41. data/assets/images/icons.svg +36 -1
  42. data/assets/images/social-sharing-default.jpg +0 -0
  43. data/assets/images/video-mask-16-9.svg +1 -0
  44. data/assets/images/video-mask-4-3.svg +1 -0
  45. data/assets/images/video-still-accessibility-intro-16-9.jpg +0 -0
  46. data/assets/scripts/details4everybody.js +153 -0
  47. data/assets/scripts/main.js +279 -64
  48. data/assets/search/tipuesearch.js +608 -0
  49. data/assets/search/tipuesearch_content.js +85 -0
  50. data/assets/search/tipuesearch_set.js +74 -0
  51. metadata +29 -6
  52. data/assets/images/.DS_Store +0 -0
  53. data/assets/images/teaser-image@1x.jpg +0 -0
  54. data/assets/images/teaser-image@2x.jpg +0 -0
data/_includes/icon.html CHANGED
@@ -1,6 +1,6 @@
1
- {% if include.name %}{%assign name = include.name%}{% else %}{% assign name="default" %}{% endif %}
2
- {% if include.label %}
3
- <svg aria-label="{{ include.label }}" class="icon-{{ name }} {{include.class}}"><use xlink:href="{{ "/assets/images/icons.svg" | prepend: site.github.url }}#icon-{{ name }}"></use></svg>
4
- {% else %}
5
- <svg aria-hidden="true" class="icon-{{ name }} {{include.class}}"><use xlink:href="{{ "/assets/images/icons.svg" | | prepend: site.github.url }}#icon-{{ name }}"></use></svg>
6
- {% endif %}
1
+ {%- if include.name %}{%assign name = include.name%}{% else %}{% assign name="default" %}{% endif -%}
2
+ {%- if include.label -%}
3
+ <svg aria-label="{{ include.label }}" class="icon-{{ name }} {{include.class}}"><use xlink:href="{{ "/assets/images/icons.svg" | relative_url }}#icon-{{ name }}"></use></svg>
4
+ {%- else -%}
5
+ <svg aria-hidden="true" class="icon-{{ name }} {{include.class}}"><use xlink:href="{{ "/assets/images/icons.svg" | relative_url }}#icon-{{ name }}"></use></svg>
6
+ {%- endif -%}
data/_includes/img.html CHANGED
@@ -1,6 +1,6 @@
1
1
  {% assign url = "/img/" %}
2
2
  {% if page.collection %}{% assign url = url | prepend: page.collection | prepend: '/' %}{% endif %}
3
- {% assign url = url | prepend: site.github.url %}
3
+ {% assign url = url | relative_url %}
4
4
  {% if include.srcset %}
5
5
  {% assign srcseturl = "/img/" %}
6
6
  {% if page.collection %}{% assign srcseturl = srcseturl | prepend: page.collection | prepend: '/' %}{% endif %}
@@ -0,0 +1,13 @@
1
+ {%- unless include.hide -%}
2
+ <li>
3
+ <a class="page-link" {% if include.current %} aria-current="page" {% else %}{% if include.insub%} aria-current="location" {% endif %}{% endif %} href="{{ include.url | relative_url }}"><span>{% comment %}{% if include.url == searchurl %}{% include_cached icon.html name="chevron-right" %} {% endif %}{% endcomment %}{{include.name}}{% if include.different == true %} {% include_cached icon.html name="different-view" label="Different Layout" %}{% endif %}</span></a>
4
+ {{include.submenu}}
5
+ </li>
6
+ {%- else -%}
7
+ {%- if include.current == true -%}
8
+ <li>
9
+ <a class="page-link" {% if include.current %} aria-current="page" {% else %}{% if include.insub%} aria-current="location" {% endif %}{% endif %} href="{{ include.url | relative_url }}"><span>{% comment %}{% if include.url == searchurl %}{% include_cached icon.html name="chevron-right" %} {% endif %}{% endcomment %}{{include.name}}{% if include.different == true %} {% include_cached icon.html name="different-view" label="Different Layout" %}{% endif %}</span></a>
10
+ {{include.submenu}}
11
+ </li>
12
+ {%- endif -%}
13
+ {%- endunless -%}
@@ -1,22 +1,10 @@
1
- <ul{% if include.depth==2 %} class="subnavcontent"{% endif %}{% if include.depth==3 %} class="subsubnav"{% endif %}>
2
- {% if include.depth==1 %}<li role="presentation"></li>{% endif %}
3
- {% for item in include.data %}
4
- {% if include.depth == 1 %}
5
- {% assign the_url = item.name | slugify | prepend: "/sitemap/#" %}
6
- {% else %}
7
- {% assign the_url = item.url %}
8
- {% endif %}
9
- <li{% if item.pages %} class="has-submenu"{% endif %}>
10
- <a{% if include.id %} id="{{item.name | slugify}}"{% endif %} href="{{ site.github.url }}{{the_url}}"><span>{{item.name}}{% comment %}{% if item.pages and include.depth > 1 %} {% include_cached icon.html name="chevron-right" %}{% endif %}{% endcomment %}</span></a>
11
- {% if include.depth>1 %}
12
- {% if item.pages %}{% assign newdepth = include.depth | plus: "1"%}{% include navlist.html data=item.pages depth=newdepth %}{% endif %}
13
- {% endif %}
1
+ {%- for item in include.data -%}
2
+ {%- if forloop.first %}<ul>{% endif -%}
3
+ {%- assign the_url = item.pages.first.url -%}
4
+ {%- unless item.mainnav == false -%}
5
+ <li>
6
+ <a href="{{ the_url | relative_url }}"{% if include.current == the_url %} aria-current="location"{% endif %}><span>{{item.name}}</span></a>
14
7
  </li>
15
- {% if include.depth==1 %}
16
- <li role="presentation" class="subnav">
17
- {% if item.pages %}{% assign newdepth = include.depth | plus: "1"%}{% include navlist.html data=item.pages depth=newdepth %}{% endif %}
18
- </li>
19
- {% endif %}
20
- {% endfor %}
21
- {% if include.depth==1 %}<li role="presentation"></li>{% endif %}
22
- </ul>
8
+ {%- endunless -%}
9
+ {%- if forloop.last %}</ul>{% endif -%}
10
+ {%- endfor -%}
@@ -0,0 +1,6 @@
1
+ {%- assign protocol = include.path | slice: 0, 4 -%}
2
+ {%- if protocol == "http" -%}
3
+ {{ include.path }}
4
+ {%- else -%}
5
+ {{ include.path | relative_url }}
6
+ {%- endif -%}
@@ -1,34 +1,36 @@
1
- {% if page.order %}
2
- {% assign col = site.collections | where: "label", page.collection | first %}
3
- {% if page.group %}
4
- {% assign docs = col.docs | where: "group", page.group %}
5
- {% else %}
6
- {% assign docs = col.docs %}
7
- {% endif %}
1
+ {%- if page.order -%}
2
+ {%- assign col = site.collections | where: "label", page.collection | first -%}
3
+ {%- unless col.prevnext == false -%}
4
+ {%- if page.group -%}
5
+ {%- assign docs = col.docs | where: "group", page.group -%}
6
+ {%- else -%}
7
+ {%- assign docs = col.docs -%}
8
+ {%- endif -%}
8
9
  <nav class="pager" aria-label="Previous/Next Page">
9
10
  <ul>
10
- {% for p in docs %}{% assign tminus = page.order | minus: 1 %}{% if p.order == tminus %}
11
+ {%- for p in docs %}{% assign tminus = page.order | minus: 1 -%}{%- if p.order == tminus -%}
11
12
  <li class="pager--item previous">
12
- <a href="{{p.url | prepend: site.github.url }}">
13
+ <a href="{{p.url | relative_url }}">
13
14
  {% include_cached icon.html name="arrow-left" class="pager--item-icon" %}
14
15
  <span class="pager--item-text">
15
16
  <span class="pager--item-text-direction">Previous:</span>
16
- <span class="pager--item-text-target">{{p.title}}</span>
17
+ <span class="pager--item-text-target">{% if p.nav_title %}{{p.nav_title}}{% else %}{{p.title}}{% endif %}</span>
17
18
  </span>
18
19
  </a>
19
20
  </li>
20
- {% endif %}{% endfor %}
21
- {% for p in docs %}{% assign tplus = page.order | plus: 1 %}{% if p.order == tplus %}
21
+ {%- endif -%}{%- endfor -%}
22
+ {%- for p in docs %}{% assign tplus = page.order | plus: 1 -%}{%- if p.order == tplus -%}
22
23
  <li class="pager--item next">
23
- <a href="{{p.url | prepend: site.github.url }}">
24
+ <a href="{{p.url | relative_url }}">
24
25
  {% include_cached icon.html name="arrow-right" class="pager--item-icon" %}
25
26
  <span class="pager--item-text">
26
27
  <span class="pager--item-text-direction">Next:</span>
27
- <span class="pager--item-text-target">{{p.title}}</span>
28
+ <span class="pager--item-text-target">{% if p.nav_title %}{{p.nav_title}}{% else %}{{p.title}}{% endif %}</span>
28
29
  </span>
29
30
  </a>
30
31
  </li>
31
32
  </ul>
32
- {% endif %}{% endfor %}
33
+ {%- endif -%}{%- endfor -%}
33
34
  </nav>
34
- {% endif %}
35
+ {%- endunless -%}
36
+ {%- endif -%}
@@ -1,10 +1,10 @@
1
- {% include box.html type="start" title="Related WCAG 2.0 resources" id="related" class="large icon" icon="default" %}
2
- <p>These tutorials provide best-practice guidance on implementing accessibility in different situations. This page combined the following WCAG 2.0 success criteria and techniques from different conformance levels:</p>
1
+ {% include box.html type="start" title="Related WCAG resources" id="related" class="large icon" icon="default" %}
2
+ <p>These tutorials provide best-practice guidance on implementing accessibility in different situations. This page combined the following WCAG success criteria and techniques from different conformance levels:</p>
3
3
  {% if page.wcag_success_criteria %}
4
4
  <p><strong>Success Criteria:</strong></p>
5
5
  <ul>
6
6
  {%- for sc in site.data.wcag -%}
7
- {%- if page.wcag_success_criteria contains sc.key -%}<li><a href="https://www.w3.org/WAI/WCAG20/quickref/#qr-{{sc.slug}}"><strong>{{sc.key}}</strong> {{sc.title}}:</a> {{sc.desc}} (Level&nbsp;{{sc.level}})</li>{%- endif -%}
7
+ {%- if page.wcag_success_criteria contains sc.key -%}<li><a href="https://www.w3.org/WAI/WCAG21/quickref/#qr-{{sc.slug}}"><strong>{{sc.key}}</strong> {{sc.title}}:</a> {{sc.desc}} (Level&nbsp;{{sc.level}})</li>{%- endif -%}
8
8
  {%- endfor -%}
9
9
  </ul>
10
10
  {% endif %}
@@ -0,0 +1,70 @@
1
+ {%- if page.parent == "/" -%}
2
+ {%- assign searchurl = page.parent -%}
3
+ {%- else -%}
4
+ {%- assign searchurl = page.url -%}
5
+ {%- endif -%}
6
+ {%- assign col = site.collections | where: "label", page.collection | first -%}
7
+ {%- if col.navigation -%}
8
+ {%- assign currentsubnav = col.navigation -%}
9
+ {%- else -%}
10
+ {%- for item in site.data.navigation -%}
11
+ {%- for i in item.pages -%}
12
+ {%- if i.url == searchurl -%}
13
+ {%- assign currentsubnav = item -%}
14
+ {%- else -%}
15
+ {%- for j in i.pages -%}
16
+ {%- if j.url == searchurl -%}
17
+ {%- assign currentsubnav = item -%}
18
+ {%- else -%}
19
+ {%- for k in j.pages -%}
20
+ {%- if k.url == searchurl -%}
21
+ {%- assign currentsubnav = item -%}
22
+ {%- endif -%}
23
+ {%- endfor -%}
24
+ {%- endif -%}
25
+ {%- endfor -%}
26
+ {%- endif -%}
27
+ {%- endfor -%}
28
+ {%- endfor -%}
29
+ {%- endif -%}
30
+
31
+ {%- for i in currentsubnav.pages -%}
32
+ {%- if forloop.first -%}
33
+ <nav class="sidenav sn-contents" aria-label="Secondary">
34
+ <div class="sidenav--head"><div class="sidenav--head-title"><div class="sidenav--head-subsection">{{ currentsubnav.name }}</div></div></div>
35
+ <ul class="sidenav--list">
36
+ {% endif %}
37
+ {%- assign insub = false -%}
38
+ {%- assign insubsub = false -%}
39
+ {%- capture submenu -%}
40
+ {%- for j in i.pages -%}
41
+ {%- capture subsubmenu -%}
42
+ {%- for k in j.pages -%}
43
+ {%- if forloop.first %}<ul>{% endif -%}
44
+ {%- if k.url == searchurl -%}
45
+ {% assign insub = true %}
46
+ {% assign insubsub = true %}
47
+ {% include menuitem.html name=k.name url=k.url different=k.different hide=k.hide insub=false current=true %}
48
+ {%- else -%}
49
+ {% include menuitem.html name=k.name url=k.url different=k.different hide=k.hide insub=false current=false %}
50
+ {%- endif -%}
51
+ {%- if forloop.last %}</ul>{% endif -%}
52
+ {%- endfor -%}
53
+ {%- endcapture -%}
54
+ {%- if forloop.first %}<ul>{% endif -%}
55
+ {%- if j.url == searchurl -%}
56
+ {% assign insub = true %}
57
+ {% include menuitem.html name=j.name url=j.url different=j.different hide=j.hide insub=insubsub current=true submenu=subsubmenu %}
58
+ {%- else -%}
59
+ {% include menuitem.html name=j.name url=j.url different=j.different hide=j.hide insub=insubsub current=false submenu=subsubmenu %}
60
+ {%- endif -%}
61
+ {%- if forloop.last %}</ul>{% endif -%}
62
+ {%- endfor -%}
63
+ {%- endcapture -%}
64
+ {%- if i.url == searchurl -%}
65
+ {% include menuitem.html name=i.name url=i.url different=i.different hide=i.hide insub=insub current=true submenu=submenu %}
66
+ {%- else -%}
67
+ {% include menuitem.html name=i.name url=i.url different=i.different hide=i.hide insub=insub current=false submenu=submenu %}
68
+ {%- endif -%}
69
+ {%- if forloop.last %}</ul></nav>{% endif -%}
70
+ {%- endfor -%}
@@ -1,65 +1,59 @@
1
1
  {% comment %}
2
2
  The first section creates an array of page urls that are page urls of this collection. They then are compared to all page urls in the list below. Use group in the frontmatter to group pages.
3
3
  {% endcomment %}
4
- {% assign col = site.collections | where: "label", page.collection | first %}
4
+ {%- assign col = site.collections | where: "label", page.collection | first -%}
5
5
  <nav class="sidenav sn-contents" aria-label="Other Pages in this Resource">
6
- <div class="sidenav--head"><div class="sidenav--head-icon">{% if col.icon %}{% include_cached icon.html name=col.icon class="sidenav--head-icon--inner" %}{% endif %}</div><div class="sidenav--head-title"><div class="sidenav--head-subsection">{% if col.shortname %}{{ col.shortname }}{% else %}{{ col.name }}{% endif %}</div>
6
+ <div class="sidenav--head">{% if col.icon %}<div class="sidenav--head-icon">{% include_cached icon.html name=col.icon class="sidenav--head-icon--inner" %}</div>{%- endif -%}<div class="sidenav--head-title"><div class="sidenav--head-subsection">{% if col.shortname %}{{ col.shortname }}{%- else -%}{{ col.name }}{%- endif -%}</div>
7
7
  </div>
8
8
  </div>
9
9
  <ul class="sidenav--list">
10
10
 
11
- {% unless col.groups %}
12
- {% assign documents = col.docs %}
11
+ {%- unless col.groups -%}
12
+ {%- assign documents = col.docs -%}
13
13
 
14
- {% for p in documents %}
14
+ {%- for p in documents -%}
15
15
  {% if forloop.first %}
16
- {% assign pgs = p.url %}
17
- {% else %}
18
- {% assign pgs = pgs | append: "," | append: p.url %}
19
- {% endif %}
20
- {% endfor %}
21
- {% assign pgs = pgs | split: "," %}
22
- {% assign my_pages = site.documents | sort: "order" %}
23
- {% for my_page in my_pages %}
24
- {% unless my_page.nosidenav %}{% if pgs contains my_page.url %}
25
- <li><a class="page-link" {% if my_page.url == page.url %} aria-current="page" {% endif %} href="{{ my_page.url | prepend: site.github.url }}">{% if my_page.url == page.url %}{% include_cached icon.html name="chevron-right" %} {% endif %}{% if my_page.title_icon %}<svg class="icon-in-title" aria-hidden="true"><use xlink:href="{{site.github.url}}{{my_page.title_icon}}"></use></svg> {% endif %}{% if my_page.nav_title %}{{ my_page.nav_title }}{% else %}{{ my_page.title }}{% endif %}</a></li>
26
- {% endif %}{% endunless %}
27
- {% endfor %}
28
- {% else %}
29
- {% for group in col.groups %}
30
-
31
- {% assign documents = col.docs | where: "group", page.group %}
32
-
33
- {% unless my_page.nosidenav %}
34
- <li><a class="page-link" {% if group.name == page.group %} aria-current="location" {% endif %} href="{{ site.github.url }}/{{page.collection}}/{% unless group.name == "index" %}{{ group.name}}/{% endunless%}">{{group.title}}</a>
35
- {% if group.name == page.group %}
16
+ {%- assign pgs = p.url -%}
17
+ {%- else -%}
18
+ {%- assign pgs = pgs | append: "," | append: p.url -%}
19
+ {%- endif -%}
20
+ {%- endfor -%}
21
+ {%- assign pgs = pgs | split: "," -%}
22
+ {%- assign my_pages = site.documents | sort: "order" -%}
23
+ {%- for my_page in my_pages -%}
24
+ {%- unless my_page.nosidenav -%}{%- if pgs contains my_page.url -%}
25
+ <li><a class="page-link" {% if my_page.url == page.url %} aria-current="page" {%- endif -%} href="{{ my_page.url | relative_url }}">{% comment %}{% if my_page.url == page.url %}{% include_cached icon.html name="chevron-right" %} {%- endif -%}{% endcomment%}{% comment %}{% if my_page.title_icon %}<svg class="icon-in-title" aria-hidden="true"><use xlink:href="{{my_page.title_icon | relative_url}}"></use></svg> {% endif %}{% endcomment %}{% if my_page.nav_title %}{{ my_page.nav_title }}{%- else -%}{{ my_page.title }}{%- endif -%}</a></li>
26
+ {%- endif -%}{%- endunless -%}
27
+ {%- endfor -%}
28
+ {%- else -%}
29
+ {%- for group in col.groups -%}
30
+
31
+ {%- assign documents = col.docs | where: "group", page.group -%}
32
+
33
+ {%- unless my_page.nosidenav -%}
34
+ {%- capture elurl %}/{{page.collection}}/{% unless group.name == "index" %}{{ group.name}}/{% endunless%}{% endcapture -%}
35
+ <li><a class="page-link" {% if elurl == page.url %} aria-current="page" {% else %}{% if group.name == page.group %} aria-current="location" {% endif %}{%- endif %} href="{{ elurl | relative_url }}">{{group.title}}</a>
36
+ {%- if group.name == page.group -%}
36
37
  <ul>
37
- {% for p in documents %}
38
+ {%- for p in documents -%}
38
39
  {% if forloop.first %}
39
- {% assign pgs = p.url %}
40
- {% else %}
41
- {% assign pgs = pgs | append: "," | append: p.url %}
42
- {% endif %}
43
- {% endfor %}
44
- {% assign pgs = pgs | split: "," %}
45
- {% assign my_pages = site.documents | sort: "order" %}
46
- {% for my_page in my_pages %}
40
+ {%- assign pgs = p.url -%}
41
+ {%- else -%}
42
+ {%- assign pgs = pgs | append: "," | append: p.url -%}
43
+ {%- endif -%}
44
+ {%- endfor -%}
45
+ {%- assign pgs = pgs | split: "," -%}
46
+ {%- assign my_pages = site.documents | sort: "order" -%}
47
+ {%- for my_page in my_pages -%}
47
48
  {% unless my_page.nosidenav %}{% if pgs contains my_page.url %}
48
- <li><a class="page-link" {% if my_page.url == page.url %} aria-current="page" {% endif %} href="{{ my_page.url | prepend: site.github.url }}">{% if my_page.url == page.url %}{% include_cached icon.html name="chevron-right" %} {% endif %}{% if my_page.title_icon %}<svg class="icon-in-title" aria-hidden="true"><use xlink:href="{{site.github.url}}{{my_page.title_icon}}"></use></svg> {% endif %}{% if my_page.nav_title %}{{ my_page.nav_title }}{% else %}{{ my_page.title }}{% endif %}</a></li>
49
- {% endif %}{% endunless %}
50
- {% endfor %}
51
-
49
+ <li><a class="page-link" {% if my_page.url == page.url %} aria-current="page" {% endif %} href="{{ my_page.url | relative_url }}">{% comment %}{% if my_page.url == page.url %}{% include_cached icon.html name="chevron-right" %} {%- endif -%}{% endcomment %}{% comment %}{% if my_page.title_icon %}<svg class="icon-in-title" aria-hidden="true"><use xlink:href="{{my_page.title_icon | relative_url}}"></use></svg> {% endif %}{% endcomment %}{% if my_page.nav_title %}{{ my_page.nav_title }}{%- else -%}{{ my_page.title }}{%- endif -%}</a></li>
50
+ {%- endif -%}{%- endunless -%}
51
+ {%- endfor -%}
52
52
  </ul>
53
- {% endif %}
53
+ {%- endif -%}
54
54
  </li>
55
- {% endunless %}
56
-
57
- {% endfor%}
58
- {% endunless %}
59
-
60
-
61
-
62
-
63
-
55
+ {%- endunless -%}
56
+ {%- endfor -%}
57
+ {%- endunless -%}
64
58
  </ul>
65
59
  </nav>
@@ -0,0 +1,29 @@
1
+ <ul{% if include.depth == 2 %} class="subnavcontent"{% endif %}{% if include.depth == 3 %} class="subsubnav"{% endif %}>
2
+ {%- for item in include.data -%}
3
+ {%- if include.depth == 1 -%}
4
+ {%- assign the_url = item.name | slugify | prepend: "/sitemap/#" -%}
5
+ {%- else -%}
6
+ {%- assign the_url = item.url -%}
7
+ {%- endif -%}
8
+ <li{% if item.cols %} class="has-submenu"{% endif %}>
9
+ <a{% if include.id %} id="{{item.name | slugify}}"{% endif %} href="{{ the_url }}"><span>{{item.name}}{% comment %}{% if item.pages and include.depth > 1 %} {% include_cached icon.html name="chevron-right" %}{% endif %}{% endcomment %}</span></a>
10
+ {%- if include.depth>1 -%}
11
+ {%- if item.pages %}{% assign newdepth = include.depth | plus: "1"%}{% include navlist.html data=item.pages depth=newdepth %}{% endif -%}
12
+ {%- endif -%}
13
+ </li>
14
+ {%- if include.depth==1 -%}
15
+ <li role="presentation" class="subnav">
16
+ {%- if item.cols -%}
17
+ <div class="col1">
18
+ {%- assign navdata = item.cols[0].pages -%}
19
+ {%- include navlist.html data=navdata depth=2 -%}
20
+ {%- assign navdata = item.cols[1].pages -%}
21
+ {%- include navlist.html data=navdata depth=2 -%}
22
+ {%- assign navdata = item.cols[2].pages -%}
23
+ {%- include navlist.html data=navdata depth=2 -%}
24
+ </div>
25
+ {%- endif -%}
26
+ </li>
27
+ {%- endif -%}
28
+ {%- endfor -%}
29
+ </ul>
@@ -0,0 +1,5 @@
1
+ {%- assign classes = include.class | split: " " -%}
2
+ <a href="{{ include.href | relative_url }}" class="video-link{% for class in classes %} video-link-{{ class }}{% endfor %}{% if include.ratio == "4:3" %} ratio-43{%- endif -%}">
3
+ <img src="{{ include.src | relative_url }}" alt="">
4
+ <span>{{ include.title }}</span>
5
+ </a>
@@ -1,25 +1,27 @@
1
1
  <div class="video-container" data-video-type="">
2
2
  <video preload="metadata" data-youtube-id="{{include.yt-id}}" width="450">
3
- {% assign captions = include.captions | split: ',' %}{% for caption in captions %}{% assign c = caption | split: '|' %}<track src="../cc/{{c[0]}}" label="{{c[2]}}" kind="captions" srclang="{{c[1]}}" default="" />{% endfor %}
4
- {% assign descriptions = include.descriptions | split: ',' %}{% for desc in descriptions %}{% assign d = desc | split: '|' %}<track src="../cc/{{d[0]}}" label="{{d[2]}}" kind="descriptions" srclang="{{d[1]}}" default="" />{% endfor %}
3
+ {%- assign captions = include.captions | split: ',' %}{% for caption in captions %}{% assign c = caption | split: '|' %}<track src="{{c[0] | relative_url }}" label="{{c[2]}}" kind="captions" srclang="{{c[1]}}" {% if forloop.first %}default{% endif %} />{% endfor -%}
4
+ {%- assign subtitles = include.subtitles | split: ',' %}{% for subtitle in subtitles %}{% assign s = subtitle | split: '|' %}<track src="{{s[0] | relative_url }}" label="{{s[2]}}" kind="subtitles" srclang="{{s[1]}}" />{% endfor -%}
5
+ {%- assign descriptions = include.descriptions | split: ',' %}{% for desc in descriptions %}{% assign d = desc | split: '|' %}<track src="{{ d[0] | relative_url }}" label="{{d[2]}}" kind="descriptions" srclang="{{d[1]}}" />{% endfor -%}
5
6
  </video>
6
7
  </div>
7
8
  {% if include.yt-id-ad %}
8
9
  <div class="video-container" data-video-type="audio-described">
9
10
  <video preload="metadata" data-youtube-id="{{include.yt-id-ad}}" width="450">
10
- {% assign captions = include.captions-ad | split: ',' %}{% for caption in captions %}{% assign c = caption | split: '|' %}<track src="../cc/{{c[0]}}" label="{{c[2]}}" kind="captions" srclang="{{c[1]}}" default="" />{% endfor %}
11
- {% assign descriptions = include.descriptions-ad | split: ',' %}{% for desc in descriptions %}{% assign d = desc | split: '|' %}<track src="../cc/{{d[0]}}" label="{{d[2]}}" kind="descriptions" srclang="{{d[1]}}" default="" />{% endfor %}
11
+ {%- assign captions = include.captions-ad | split: ',' %}{% for caption in captions %}{% assign c = caption | split: '|' %}<track src="{{c[0] | relative_url }}" label="{{c[2]}}" kind="captions" srclang="{{c[1]}}" {% if forloop.first %}default{% endif %} />{% endfor -%}
12
+ {%- assign subtitles = include.subtitles-ad | split: ',' %}{% for subtitle in subtitles %}{% assign s = subtitle | split: '|' %}<track src="{{s[0] | relative_url }}" label="{{s[2]}}" kind="subtitles" srclang="{{s[1]}}" />{% endfor -%}
13
+ {%- assign descriptions = include.descriptions-ad | split: ',' %}{% for desc in descriptions %}{% assign d = desc | split: '|' %}<track src="{{ d[0] | relative_url }}" label="{{d[2]}}" kind="descriptions" srclang="{{d[1]}}" />{% endfor -%}
12
14
  </video>
13
15
  </div>
14
- <p><button id="audio_description_button"><svg aria-hidden="true" class="icon-audio-description "><use xlink:href="{{ "/assets/images/icons.svg#icon-audio-description" | prepend: site.github.url }}"></use></svg> <span>Enable Audio Description</span></button></p>
16
+ <p><button id="audio_description_button"><svg aria-hidden="true" class="icon-audio-description "><use xlink:href="{{ "/assets/images/icons.svg#icon-audio-description" | relative_url }}"></use></svg> <span>Enable Audio Description</span></button></p>
15
17
  {% endif %}
16
18
 
17
- <script src="{{ site.github.url }}/assets/ableplayer/thirdparty/modernizr.custom.js"></script>
18
- <script src="{{ site.github.url }}/assets/scripts/jquery.min.js"></script>
19
- <script src="{{ site.github.url }}/assets/ableplayer/thirdparty/js.cookie.js"></script>
20
- <script src="{{ site.github.url }}/assets/ableplayer/build/ableplayer.min.js"></script>
19
+ <script src="{{ "/assets/ableplayer/thirdparty/modernizr.custom.js" | relative_url }}"></script>
20
+ <script src="{{ "/assets/scripts/jquery.min.js" | relative_url }}"></script>
21
+ <script src="{{ "/assets/ableplayer/thirdparty/js.cookie.js" | relative_url }}"></script>
22
+ <script src="{{ "/assets/ableplayer/build/ableplayer.min.js" | relative_url }}"></script>
21
23
  <script>
22
- var youTubeDataAPIKey = "{{site.ytapi}}";
24
+ var youTubeDataAPIKey = "{{site.ytkey}}";
23
25
  var googleApiReady = false;
24
26
  function initGoogleClientApi() {
25
27
  googleApiReady = true;
@@ -1,24 +1,44 @@
1
1
  <!DOCTYPE html>
2
- <html lang="en" prefix="og: http://ogp.me/ns#">
3
- {% include head.html %}
4
- <body id="top" class="{% include body-class.html %}">
2
+ <html class="no-js" lang="en" prefix="og: http://ogp.me/ns#">
3
+ {%- assign timestamp = site.time | date: '%s%N' -%}
4
+ {%- assign timestamp = '?' | append: timestamp -%}
5
+ {% include_cached head.html type="start" timestamp=timestamp %}
6
+ <title>{%if page.doc-note-type == "archived" %}[Archived]{% endif%}{%if page.doc-note-type == "draft" %}[Draft]{% endif%} {{ page.title | escape }} | {{ site.title | escape }} | W3C</title>
7
+ {%- if page.external_css %}<link rel="stylesheet" href="{{ page.external_css | relative_url | append: include.timestamp }}">{% endif -%}
8
+ {%- if page.ext_css %}<link rel="stylesheet" href="{{ page.ext_css | prepend: '/css/' | prepend: page.collection | prepend: '/' | relative_url | append: include.timestamp }}">{% endif -%}
9
+ {%- if page.inline_css %}<style>{{ page.inline_css }}</style>{% endif -%}
10
+ {%- capture seo -%}
11
+ {%- seo title=false -%}
12
+ {%- endcapture -%}
13
+ {{- seo | replace: '<meta name="twitter:card" content="summary" />', '<meta name="twitter:card" content="summary_large_image" />' -}}
14
+ {%- unless page.image -%}{%- if site.twitter.image -%}{% assign twimage = site.twitter.image -%}{%- else -%}{% assign twimage = '/assets/images/social-sharing-default.jpg' -%}{%- endif -%}
15
+ <meta name="twitter:image" property="og:image" content="{{ twimage | relative_url | prepend: site.url }}">
16
+ {%- endunless -%}
17
+ {% include_cached head.html type="end" %}
18
+ <body id="top" class="page-{{page.title | slugify}} {% include_cached body-class.html collection=page.collection doc-note-type=page.doc-note-type %}">
5
19
  {% include header.html %}
20
+ <div class="default-grid with-gap{% unless page.noleftcol %} leftcol{% endunless %}">
6
21
 
7
- <main id="main" class="default-grid with-gap{% unless page.noleftcol %} leftcol{% endunless %}" tabindex="-1">
22
+ {% include secondarynav.html %}
23
+
24
+ <main id="main"{% if page.lang %} lang="{{page.lang}}"{% endif %}>
25
+ <h1>{% if page.title_icon %}<svg class="icon-in-title" aria-hidden="true"><use xlink:href="{{page.title_icon | relative_url}}"></use></svg> {% endif %}{% if page.title_html %}{{ page.title_html }}{% else %}{{ page.title }}{% endif %}</h1>
26
+
27
+ {%- include doc-note-msg.html -%}
8
28
 
9
- <article>
10
- <h1>{% if page.title_icon %}<svg class="icon-in-title" aria-hidden="true"><use xlink:href="{{site.github.url}}{{page.title_icon}}"></use></svg> {% endif %}{{ page.title }}</h1>
11
29
  {{ content }}
12
30
 
13
- {{page.wcag_success_criteria}}{{page.wcag_techniques}}
14
31
  {% if page.wcag_success_criteria or page.wcag_techniques %}
15
32
  {% include resources.html %}
16
33
  {% endif %}
17
34
 
35
+ {% include feedback-box.html %}
36
+
18
37
  {% include prevnext.html %}
19
- </article>
20
- <a class="button button-backtotop" href="#top"><span>{% include_cached icon.html name="arrow-up" %} Back to Top</span></a>
21
- </main>
38
+
39
+ {% include_cached backtotop.html %}
40
+ </main>
41
+ </div>
22
42
 
23
43
  {% include footer.html %}
24
44