index.tmpl 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
  5. <!-- versione 5.3.x -->
  6. <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
  7. <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
  8. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  9. <script>
  10. function copyVal(valore) {
  11. var text = document.getElementById(valore).getAttribute("value");
  12. navigator.clipboard.writeText(text);
  13. }
  14. </script>
  15. </head>
  16. <body>
  17. <div class="d-flex align-items-center justify-content-center" style="height: 200px"><h2>
  18. Generatore di password del menga!
  19. </div>
  20. <div class="d-flex align-items-center justify-content-center" style="height: 400px;"><h1>
  21. <table class='table'>
  22. <tr>
  23. <td><div class="text-center p-2 m-2 bg-info text-white shadow rounded-2 justify-content-center" id='Password1' onclick="copyVal('Password1');" value='{{ .Password1 }}'>{{ .Password1 }}</div></td>
  24. </tr>
  25. <tr>
  26. <td><div class="text-center p-2 m-2 bg-info text-white shadow rounded-2 justify-content-center" id='Password2' onclick="copyVal('Password2');" value='{{ .Password2 }}'>{{ .Password2 }}</div></td>
  27. </tr>
  28. <tr>
  29. <td><div class="text-center p-2 m-2 bg-info text-white shadow rounded-2 justify-content-center" id='Password3' onclick="copyVal('Password3');" value='{{ .Password3 }}'>{{ .Password3 }}</div></td>
  30. </tr>
  31. <tr>
  32. <td><div class="text-center p-2 m-2 bg-info text-white shadow rounded-2 justify-content-center" id='Password4' onclick="copyVal('Password4');" value='{{ .Password4 }}'>{{ .Password4 }}</div></td>
  33. </tr>
  34. </table>
  35. </div>
  36. <p></p>
  37. <div class="d-flex align-items-center justify-content-center" style="height: 200px"><h3>
  38. Copyright: Il mio!<br>
  39. Liberi di generarvi tutte le password che volete<br>
  40. ma se esagerate!....<br>
  41. MCMLXVI@puppamelo.it
  42. </div>
  43. </body>
  44. </html>