scripts.html 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Title</title>
  6. </head>
  7. <body>
  8. <div th:fragment="div-scripts">
  9. <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/umd/popper.min.js"
  10. integrity="sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r"
  11. crossorigin="anonymous"></script>
  12. <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.6/dist/js/bootstrap.min.js"
  13. integrity="sha384-RuyvpeZCxMJCqVUGFI0Do1mQrods/hhxYlcVfGPOfQtPJh0JCw12tUAZ/Mv10S7D"
  14. crossorigin="anonymous"></script>
  15. <script src="https://cdn.jsdelivr.net/npm/autonumeric@4.5.4/dist/autoNumeric.min.js"></script>
  16. <script>
  17. AutoNumeric.multiple('.autodecimal', {
  18. digitGroupSeparator: '.',
  19. decimalCharacter: ',',
  20. decimalPlaces: 2,
  21. unformatOnSubmit: true
  22. });
  23. AutoNumeric.multiple('.autonumeric', {
  24. digitGroupSeparator: '.',
  25. decimalCharacter: ',',
  26. decimalPlaces: 0,
  27. unformatOnSubmit: true
  28. });
  29. </script>
  30. </div>
  31. </body>
  32. </html>