Added some bling to the easter egg.
This commit is contained in:
parent
e03988f28a
commit
c9b86e846b
1 changed files with 7 additions and 0 deletions
|
@ -1,5 +1,11 @@
|
||||||
{% extends 'layout.html' %}
|
{% extends 'layout.html' %}
|
||||||
|
|
||||||
|
{% block style %}
|
||||||
|
.clicked {
|
||||||
|
outline: 2px solid red;
|
||||||
|
}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="container">
|
<div class="container">
|
||||||
{% for x in range(level + 3) %}
|
{% for x in range(level + 3) %}
|
||||||
|
@ -21,6 +27,7 @@
|
||||||
|
|
||||||
document.querySelectorAll('.form-check-input').forEach(checkbox => {
|
document.querySelectorAll('.form-check-input').forEach(checkbox => {
|
||||||
checkbox.addEventListener('change', function() {
|
checkbox.addEventListener('change', function() {
|
||||||
|
checkbox.classList.toggle('clicked');
|
||||||
const [x, y] = this.id.split('-').slice(1).map(Number);
|
const [x, y] = this.id.split('-').slice(1).map(Number);
|
||||||
const neighbors = [
|
const neighbors = [
|
||||||
[x - 1, y],
|
[x - 1, y],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue