Sha256: 330b5f7e177ef391657eabdabcf99aea9f932b9786798a09dc74566ff8d9483f
Contents?: true
Size: 732 Bytes
Versions: 5
Compression:
Stored size: 732 Bytes
Contents
<!-- Tabler Core --> <script src="https://unpkg.com/@tabler/core@1.0.0-beta9/dist/js/tabler.min.js"></script> <!-- bring back data-confirm --> <script> document.addEventListener("click", (event) => { if (!event.target.matches("[data-confirm]")) return; if (!window.confirm(event.target.dataset["confirm"])) event.preventDefault(); }); </script> <!-- validation rails --> <script> document.addEventListener("DOMContentLoaded", () => { document.querySelectorAll(".field_with_errors").forEach((element) => { const field = element.firstChild; field.classList.add("is-invalid"); element.parentNode.insertBefore(field, element); element.parentNode.removeChild(element); }) }); </script>
Version data entries
5 entries across 5 versions & 1 rubygems