mirror of
https://github.com/dmuth/diceware.git
synced 2024-11-21 16:36:28 -05:00
Formatting of passphrase and fixed lingering whitespace issue.
This commit is contained in:
parent
0eff75c03b
commit
2b0e6b2c49
2 changed files with 10 additions and 8 deletions
10
index.html
10
index.html
|
@ -80,13 +80,11 @@
|
||||||
<div class="dice_word" style="float: left; padding-left: 20px; padding-top: 25px; ">
|
<div class="dice_word" style="float: left; padding-left: 20px; padding-top: 25px; ">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<span class="results_words_key" >Your words are: </span>
|
<div class="results_words_key" >Your words are: </div>
|
||||||
<span class="results_words_value" ></span>
|
<div class="results_words_value" ></div>
|
||||||
<p/>
|
|
||||||
|
|
||||||
<span class="results_phrase_key" >Your passphrase is: </span>
|
<div class="results_phrase_key" >Your passphrase is: </div>
|
||||||
<span class="results_phrase_value" ></span>
|
<div class="results_phrase_value" ></div>
|
||||||
<p/>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
8
main.js
8
main.js
|
@ -73,10 +73,9 @@ function display_row(rows, cb) {
|
||||||
var tmp = row.hide().appendTo(".results")
|
var tmp = row.hide().appendTo(".results")
|
||||||
.delay(fadein_delay)
|
.delay(fadein_delay)
|
||||||
.fadeIn(duration, function() {
|
.fadeIn(duration, function() {
|
||||||
jQuery(".results").append("<br clear=\"all\" />");
|
|
||||||
display_row(rows, cb);
|
display_row(rows, cb);
|
||||||
})
|
})
|
||||||
.delay(1000).fadeOut(duration);
|
.delay(1000).fadeOut();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
//
|
//
|
||||||
|
@ -168,6 +167,11 @@ jQuery("#roll_dice").on("click", function(e) {
|
||||||
dice_word.html("\"" + roll.word + "\"");
|
dice_word.html("\"" + roll.word + "\"");
|
||||||
row.append(dice_word);
|
row.append(dice_word);
|
||||||
|
|
||||||
|
//
|
||||||
|
// And clear to the next line
|
||||||
|
//
|
||||||
|
row.append("<br clear=\"all\" />");
|
||||||
|
|
||||||
rows.push(row);
|
rows.push(row);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue