Skip to content

Commit

Permalink
Help Section Added
Browse files Browse the repository at this point in the history
  • Loading branch information
labnol committed Dec 14, 2013
1 parent c452fa4 commit 68c93d5
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions js/functions.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var $output, $user, $phrase, $domain, $length, $info;
var $output, $user, $phrase, $domain, $length, $info, $help;

$(document).ready(function () {

Expand All @@ -8,6 +8,7 @@ $(document).ready(function () {
$domain = $('#inputDomain');
$length = $('#inputLength');
$info = $('#outputInfo');
$help = $('#info');

if (localStorage["inputLength"]) {
$('#inputLength').val(localStorage["inputLength"]);
Expand All @@ -29,10 +30,16 @@ $(document).ready(function () {
return false;
});

$("#modal-launcher, #modal-footer").click(function () {
$("#info").toggleClass("active");
$("#modal-launcher").click(function (e) {
$help.addClass("active");
e.preventDefault();
});

$("#modal-footer").click(function (e) {
$help.removeClass("active");
e.preventDefault();
});

$('#showPassword').on('click', function (e) {

var Phrase = clean($phrase.val());
Expand Down

0 comments on commit 68c93d5

Please sign in to comment.