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

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

parent 2ca9a293
$(function() {
$("#numeros").prop("checked", false);
//$("#numeros").prop("checked", false);
if(localStorage.getItem('senha')) {
$("#senha").val(localStorage.getItem('senha'));
......@@ -12,7 +12,6 @@ $(function() {
if(localStorage.getItem('minusculas')) {
$('input[name="minusculas"]').prop("checked", localStorage.getItem('minusculas'));
//$("#minusculas").prop("checked", localStorage.getItem('minusculas') )
}
if(localStorage.getItem('maiusculas')) {
......@@ -59,18 +58,34 @@ $(function() {
});
$('#minusculas').change(function() {
localStorage.setItem('minusculas', $(this).is(':checked'));
if ($(this).prop("checked")) {
localStorage.setItem('minusculas', true);
} else {
localStorage.setItem('minusculas', false);
}
});
$('#maiusculas').change(function() {
localStorage.setItem('maiusculas', $(this).is(':checked'));
if ($(this).prop("checked")) {
localStorage.setItem('maiusculas', true);
} else {
localStorage.setItem('maiusculas', false);
}
});
$('#numeros').change(function() {
localStorage.setItem('numeros', $(this).is(':checked'));
if ($(this).prop("checked")) {
localStorage.setItem('numeros', true);
} else {
localStorage.setItem('numeros', false);
}
});
$('#simbolos').change(function() {
localStorage.setItem('simbolos', $(this).is(':checked'));
if ($(this).prop("checked")) {
localStorage.setItem('numeros', true);
} else {
localStorage.setItem('numeros', false);
}
});
});
\ No newline at end of file
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