Skip to content

Commit

Permalink
Update to 0.2
Browse files Browse the repository at this point in the history
Automatically reset form after set time if result pass has been set.
  • Loading branch information
jeremycaris committed Mar 29, 2019
1 parent 2905105 commit 9e6f341
Show file tree
Hide file tree
Showing 7 changed files with 2,117 additions and 6 deletions.
8 changes: 4 additions & 4 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007

Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.

Expand Down Expand Up @@ -645,7 +645,7 @@ the "copyright" line and a pointer to where the full notice is found.
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
along with this program. If not, see <http://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

Expand All @@ -664,11 +664,11 @@ might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.
<http://www.gnu.org/licenses/>.

The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
7 changes: 7 additions & 0 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@
color: red;
}

#passgrinder #pg-message #reset {
font-style: italic;
width: 100%;
text-align: center;
color: dimgray;
}

#passgrinder .toggle-password {
cursor: pointer;
}
Expand Down
Binary file modified assets/images/passgrinder-full.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2,091 changes: 2,091 additions & 0 deletions assets/images/passgrinder.ai

Large diffs are not rendered by default.

14 changes: 13 additions & 1 deletion assets/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ jQuery( document ).ready( function($) {
$("#pg-result").hide();
$('#pg-message #success').html("");
$('#pg-message #fail').html("");
$('#pg-message #reset').html("");
});
});

Expand Down Expand Up @@ -126,12 +127,23 @@ jQuery( document ).ready( function($) {
input.attr("type", "password");
userstate = null;
}


// Send response
if ( response.success == true ) {
$('#pg-message #success').html( response.data );
} else {
$('#pg-message #fail').html( response.data );
}

// Auto reset form after time
if ( $("#pg-result-pass").val() ) {
setTimeout( function() {
$("#passgrinder-form").trigger('reset');
$('#pg-message #reset').html("Form has automatically reset to protect your password.");
console.log( "PassGrinder: For automatically reset" );
}, 30000);
}

});

});
Expand Down
1 change: 1 addition & 0 deletions inc/class-passgrinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ public function shortcode_form($atts) {
<div id="pg-message" class="form-group row">
<span id="success"></span>
<span id="fail"></span>
<span id="reset"></span>
</div>
</form>
Expand Down
2 changes: 1 addition & 1 deletion passgrinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Description:
Author: Jeremy Caris
Author URI: https://passgrinder.com/
Version: 0.1
Version: 0.2
Category: utility
*/
Expand Down

0 comments on commit 9e6f341

Please sign in to comment.