Эх сурвалжийг харах

aggiunto tasto per ricaricare la pagina - con relativa funzione js

Mauro 4 сар өмнө
parent
commit
b4704217cd
1 өөрчлөгдсөн 11 нэмэгдсэн , 1 устгасан
  1. 11 1
      templates/index.tmpl

+ 11 - 1
templates/index.tmpl

@@ -14,6 +14,12 @@
     }
   </script>
 
+  <script>
+    function reloadPage() {
+      location.reload();
+      }
+  </script>
+
 </head>
 <body>
 <div class="d-flex align-items-center justify-content-center" style="height: 200px"><h2>
@@ -38,7 +44,11 @@ Generatore di password del menga!
      </tr>
  </table>
 </div>
-<p></p>
+
+<div class="d-flex align-items-center justify-content-center" style="height: 200px;"><h1>
+  <button type="button" class="btn btn-primary" onclick="reloadPage()">Ricarica</button>
+</div>
+
 <div class="d-flex align-items-center justify-content-center" style="height: 200px"><h3>
 Copyright: Il mio!<br>
 Liberi di generarvi tutte le password che volete<br>