-
-
Notifications
You must be signed in to change notification settings - Fork 137
Expand file tree
/
Copy pathall.html
More file actions
107 lines (100 loc) · 3.09 KB
/
all.html
File metadata and controls
107 lines (100 loc) · 3.09 KB
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
---
layout: listing
permalink: /all/
title: All
---
<!-- This page follows the layout of listing.html, located at docs/_layouts/listing.html.
Also, The title for this page is All. On the deployed site, this will look like, All | Creative Commons Resource Archive -->
<!-- This is the resourcenavbar, which contains the category filters. The categories are TOPIC, MEDIUM and LANGUAGE. In this there are two different options for displaying a category,
For example - resourcenavtopicknown and resourcenavtopicunknown -->
<!-- If the user has selected a filter, resourcenavtopicknown will be displayed. otherwise resourcenavtopicunknown will be displayed -->
<aside id="resourcenavbar" aria-label="Resource Filtering Bar">
<article class="resourcenav resourcenavtopicknown">
<h2>Topic</h2>
<p>
<input
type="checkbox"
onclick="location.href=location.href.replace(/&?topic=([^&]$|[^&]*)/i, '');"
checked
/>
{% for topic in site.data.topics %}
<script>
if ("{{topic.string}}" == topic) document.write("{{topic.name}}");
</script>
{% endfor %}
</p>
</article>
<article class="resourcenav resourcenavtopicunknown topic-list">
<h2>Topic</h2>
<ul>
{% for topic in site.data.topics %}
<li>
<input
type="checkbox"
onclick="window.location.search += '&topic={{ topic.string }}';"
/>
<label>{{ topic.name }}</label>
</li>
{% endfor %}
</ul>
</article>
<article class="resourcenav resourcenavmediumknown">
<h2>Medium</h2>
<p>
<input
type="checkbox"
onclick="location.href=location.href.replace(/&?medium=([^&]$|[^&]*)/i, '');"
checked
/>
{% for medium in site.data.media %}
<script>
if ("{{medium.string}}" == medium) document.write("{{medium.name}}");
</script>
{% endfor %}
</p>
</article>
<article class="resourcenav resourcenavmediumunknown medium-list">
<h2>Medium</h2>
<ul>
{% for medium in site.data.media %}
<li>
<input
type="checkbox"
onclick="window.location.search += '&medium={{ medium.string }}';"
/>
<label>{{ medium.name }}</label>
</li>
{% endfor %}
</ul>
</article>
<article class="resourcenav resourcenavlanguageknown">
<h2>Language</h2>
<p>
<input
type="checkbox"
onclick="location.href=location.href.replace(/&?language=([^&]$|[^&]*)/i, '');"
checked
/>
{% for language in site.data.languages %}
<script>
if ("{{language.string}}" == language)
document.write("{{language.name}}");
</script>
{% endfor %}
</p>
</article>
<article class="resourcenav resourcenavlanguageunknown language-list">
<h2>Language</h2>
<ul>
{% for language in site.data.languages %}
<li>
<input
type="checkbox"
onclick="window.location.search += '&language={{ language.string }}';"
/>
<label>{{ language.name }}</label>
</li>
{% endfor %}
</ul>
</article>
</aside>