Add missing GRID_SIZE option to example env and decrease to 15, add profile page with username and pattern change, add logout, fix clear buttons submitting, add Posts table for later use, prevent timing attacks during pattern equal check

This commit is contained in:
csd4ni3l
2025-10-23 15:51:22 +02:00
parent cc7f906000
commit 810b925387
9 changed files with 382 additions and 15 deletions

View File

@@ -25,7 +25,7 @@
</div>
<div class="buttons">
<button type="submit" class="btn btn-primary me-2" id="registerBtn">Register</button>
<button id="clearBtn" class="btn btn-danger">Clear</button>
<button type="button" id="clearBtn" class="btn btn-danger">Clear</button>
</div>
</div>
</form>
@@ -75,9 +75,6 @@ function draw(e) {
ctx.fillRect(cellX - CELL_SIZE / 3, cellY - CELL_SIZE / 3, CELL_SIZE, CELL_SIZE);
}
}
else {
console.log(pixel);
}
}
function drawGrid() {