diff --git a/inventory/templates/coffee.html b/inventory/templates/coffee.html index 62ee55e..f3b5ab2 100644 --- a/inventory/templates/coffee.html +++ b/inventory/templates/coffee.html @@ -1,5 +1,11 @@ {% extends 'layout.html' %} +{% block style %} +.clicked { + outline: 2px solid red; +} +{% endblock %} + {% block content %}
{% for x in range(level + 3) %} @@ -21,6 +27,7 @@ document.querySelectorAll('.form-check-input').forEach(checkbox => { checkbox.addEventListener('change', function() { + checkbox.classList.toggle('clicked'); const [x, y] = this.id.split('-').slice(1).map(Number); const neighbors = [ [x - 1, y],