style: refonte visuelle — CSS custom Inter, navbar claire, cards modernes, assets js

This commit is contained in:
Cedric Abonnel
2026-05-08 13:39:49 +02:00
parent 7bf05b05dd
commit 6ba1c18764
6 changed files with 445 additions and 28 deletions
+25
View File
@@ -0,0 +1,25 @@
// varlog — app.js
document.addEventListener('DOMContentLoaded', function () {
// Auto-resize textarea au chargement et à la saisie
document.querySelectorAll('textarea.form-control').forEach(function (ta) {
function resize() {
ta.style.height = 'auto';
ta.style.height = ta.scrollHeight + 'px';
}
ta.addEventListener('input', resize);
resize();
});
// Ctrl+Enter (ou Cmd+Enter) pour soumettre le formulaire de post
var form = document.querySelector('form[method="POST"]');
if (form) {
form.addEventListener('keydown', function (e) {
if ((e.ctrlKey || e.metaKey) && e.key === 'Enter') {
form.submit();
}
});
}
});