Commit 8e164653 authored by Toby Hodges's avatar Toby Hodges

Merge branch '61-activity-logic' into 'master'

Fix error in Jekyll logic

Closes #61 and #60

See merge request !48
parents 97f07da5 b8e87d0f
Pipeline #10687 passed with stage
in 1 minute and 20 seconds
......@@ -57,8 +57,10 @@ function change_exercises_content_by_platform(form_control){
{% for platform in page.exercises %}
document.getElementById("{{ platform[0] | slugify }}-exercises-div").style.display = 'none';
{% endfor %}
{% if page.exercises %}
if (!form_control || document.getElementById(form_control).value == "default-exercises") {
set_exercises_view_defaults();
{% endif %}
{% for platform in page.exercises %}
} else if (document.getElementById(form_control).value == "{{ platform[0] | slugify }}-exercises") {
document.getElementById("{{ platform[0] | slugify }}-exercises-div").style.display = 'block';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment