mirror of
https://github.com/csd4ni3l/loginween.git
synced 2026-01-01 04:23:48 +01:00
Make Posts id autoincrement, make working posts page on home which shows the pumpkins and comment, reduce bloat by making a lightbtn setup function, fix XSS
This commit is contained in:
@@ -90,18 +90,7 @@ img.addEventListener('load', function() {
|
||||
setInterval(update, 1500);
|
||||
});
|
||||
|
||||
|
||||
let lit = false;
|
||||
document.getElementById("lightBtn").addEventListener('click', function(event) {
|
||||
if (lit) {
|
||||
lit = false;
|
||||
unlight_pumpkin(ctx, CELL_SIZE, pattern.slice(0, pattern.length - last_days));
|
||||
}
|
||||
else {
|
||||
lit = true;
|
||||
light_pumpkin(ctx, CELL_SIZE, pattern.slice(0, pattern.length - last_days));
|
||||
}
|
||||
});
|
||||
setup_lightbtn(ctx, CELL_SIZE, "lightBtn", pattern.slice(0, pattern.length - last_days));
|
||||
</script>
|
||||
|
||||
{% endblock body %}
|
||||
Reference in New Issue
Block a user