1
4
Fork 1

Označení hotových kroků

master
Emil Miler 4 years ago
parent ed53c0488e
commit fb28ad5455

@ -18,5 +18,7 @@ ol {
font-size:2em;
color:$primary;
}
&.completed { opacity: .4; }
}
}

@ -65,5 +65,6 @@
</main>
{% endblock content %}
{% block script %}{% endblock script %}
</body>
</html>

@ -47,3 +47,12 @@
</main>
{% endblock content %}
{% block script %}
<script>
let list_items = document.querySelectorAll('ol li');
for(let i=0; i<list_items.length; i++){
list_items[i].addEventListener('click', function(){ this.classList.toggle("completed"); }, false);
}
</script>
{% endblock script %}

Loading…
Cancel
Save