Commit da315491 authored by Lucas Saliés Brum's avatar Lucas Saliés Brum 🖐🏻

Autocommit por GitLab.sh: alterações: add 'js/script.js'

parent 572379f8
$(function() { $(function() {
if(localStorage.getItem('senha')) {
$("#senha").val(localStorage.getItem('senha'));
}
var clipboard = new ClipboardJS('.copiar'); var clipboard = new ClipboardJS('.copiar');
function recupera() { function recupera() {
...@@ -8,6 +13,7 @@ $(function() { ...@@ -8,6 +13,7 @@ $(function() {
data: $("#formulario").serialize(), data: $("#formulario").serialize(),
success: function(data) { success: function(data) {
$("#senha").val(data); $("#senha").val(data);
localStorage.setItem('senha', data);
} }
}); });
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment