-
Notifications
You must be signed in to change notification settings - Fork 0
/
categories.html
38 lines (35 loc) · 1.01 KB
/
categories.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
---
layout: normal
title: Challenge
color: "#ff00b6"
bg_url: "/assets/images/X.svg"
bg_position: "70vw -40vh"
---
<header class="content-siteheader">
<h1>{{ page.title }}</h1>
</header>
{% for cat in site.cats %}
<div class="accordion">
<a class="accordion-btn {% if forloop.first %}active{% endif %}" href="#">
<span><b>{{ cat.title }}</b> <span>{{ cat.subtitle }}</span></span>
</a>
<div class="accordion-panel colored">{{ cat.content | markdownify }}</div>
</div>
{% endfor %}
<!--
<div class="content-footer">
<p><strong>But That's Not All!</strong></p>
<p><strong>Check Back <mark class="accent-tc">Soon</mark> For More Categories.</strong></p>
</div>
-->
<script>
/* Disabled because there is only one challenge. If we get more challenges it would make sense to uncomment this.
var accs = document.getElementsByClassName("accordion-btn");
for (var i = 0; i < accs.length; i++) {
accs[i].addEventListener("click", function(event) {
event.preventDefault();
this.classList.toggle("active");
});
}
*/
</script>