-
Notifications
You must be signed in to change notification settings - Fork 254
/
collections.html
65 lines (55 loc) · 2.33 KB
/
collections.html
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
---
title: Collections
layout: table
sectionid: collection-index
---
<h1 style="margin-left: auto;margin-right: auto;">Collections</h1>
<p style="margin-left: auto;margin-right: auto;">
This list below contains pointers to official and community-contributed dev container assets, including Features and
Templates.
Collections on this list are continuously crawled for liveness, and can be presented in UX of spec supporting tools
(i.e. it will be presented in the GitHub Codespaces and VS Code Dev Containers UX).
</p>
<p>
To add your own collection to this list, please create a PR editing <a
href="https://github.com/devcontainers/devcontainers.github.io/blob/gh-pages/_data/collection-index.yml">this
yaml file</a>.
</p>
<input type="text" id="searchInput" placeholder="Search">
<br>
<br>
<table id="collectionTable" class="tg">
<tr>
<td class="tg-0lax"><b>Name</b></td>
<td class="tg-0lax"><b>Maintainer</b></td>
<td class="tg-0lax"><b>Repository</b></td>
</tr>
{% for c in site.data.collection-index %}
<tr>
<td class="tg-0lax">{{ c.name }}</td>
<td class="tg-0lax"><a rel="nofollow" href="{{ c.contact | strip_html }}">{{ c.maintainer | strip_html }}</a>
</td>
<td class="tg-0lax"><a rel="nofollow" href="{{ c.repository | strip_html }}">{{ c.repository | strip_html
}}</a>
</td>
</tr>
{% endfor %}
</table>
<script>
const searchInput = document.getElementById('searchInput');
const collectionTable = document.getElementById('collectionTable');
const rows = collectionTable.getElementsByTagName('tr');
searchInput.addEventListener('input', function () {
const searchValue = searchInput.value.toLowerCase();
for (let i = 1; i < rows.length; i++) {
const name = rows[i].getElementsByTagName('td')[0].textContent.toLowerCase();
const maintainer = rows[i].getElementsByTagName('td')[1].textContent.toLowerCase();
const repository = rows[i].getElementsByTagName('td')[2].textContent.toLowerCase();
if (name.includes(searchValue) || maintainer.includes(searchValue) || repository.includes(searchValue)) {
rows[i].style.display = '';
} else {
rows[i].style.display = 'none';
}
}
});
</script>