Initial commit: Notes Manager App (notes.braetter-int.de)

- Python/Flask Backend
- SQLAlchemy Models (notes, tasks, templates, users)
- Gunicorn + Nginx Deploy-Konfiguration
- Static Assets (CSS/JS)
- Jinja2 Templates
This commit is contained in:
2026-04-15 09:28:33 +02:00
commit 5c7ce5d0ca
24 changed files with 1666 additions and 0 deletions

14
app/static/js/app.js Executable file
View File

@@ -0,0 +1,14 @@
document.addEventListener('DOMContentLoaded', () => {
const content = document.getElementById('content');
document.querySelectorAll('.template-btn').forEach(btn => {
btn.addEventListener('click', () => {
if (!content) return;
const tpl = btn.getAttribute('data-template');
if (content.value.trim() && !confirm('Vorhandenen Inhalt durch Vorlage ersetzen?')) {
return;
}
content.value = tpl;
content.focus();
});
});
});