#26 - Loading animation + success message fix

This commit was merged in pull request #31.
This commit is contained in:
Martin Slachta
2026-06-22 11:20:28 +02:00
parent c754e18a82
commit 97ee8fc991
32 changed files with 597 additions and 175 deletions
@@ -0,0 +1,13 @@
function esc_html(str) {
return String(str)
.replace(/&/g, '&')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
.replace(/"/g, '&quot;')
.replace(/'/g, '&#039;');
}
export function reset_form_button_renderer(symbols) {
const label = symbols.label ?? 'Odeslat znova';
return `<button type="button" class="rsv-form-btn" data-rsv-reset>${esc_html(label)}</button>`;
}