This commit is contained in:
Mateusz Gruszczyński
2025-11-01 21:58:55 +01:00
parent 57d2db2c2f
commit ca0ebd6816
10 changed files with 565 additions and 922 deletions

10
static/js/edit.js Normal file
View File

@@ -0,0 +1,10 @@
// edit.js — drobne UX dla edytora
(() => {
'use strict';
const ta = document.getElementById('haproxy_config');
if (!ta) return;
// Auto-grow (simple)
const auto = () => { ta.style.height = 'auto'; ta.style.height = (ta.scrollHeight + 6) + 'px'; };
ta.addEventListener('input', auto);
auto();
})();