mirror of
https://github.com/dmuth/diceware.git
synced 2024-11-24 09:46:30 -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>
|
||||
|
||||
<span class="results_words_key" >Your words are: </span>
|
||||
<span class="results_words_value" ></span>
|
||||
<p/>
|
||||
<div class="results_words_key" >Your words are: </div>
|
||||
<div class="results_words_value" ></div>
|
||||
|
||||
<span class="results_phrase_key" >Your passphrase is: </span>
|
||||
<span class="results_phrase_value" ></span>
|
||||
<p/>
|
||||
<div class="results_phrase_key" >Your passphrase is: </div>
|
||||
<div class="results_phrase_value" ></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
8
main.js
8
main.js
|
@ -73,10 +73,9 @@ function display_row(rows, cb) {
|
|||
var tmp = row.hide().appendTo(".results")
|
||||
.delay(fadein_delay)
|
||||
.fadeIn(duration, function() {
|
||||
jQuery(".results").append("<br clear=\"all\" />");
|
||||
display_row(rows, cb);
|
||||
})
|
||||
.delay(1000).fadeOut(duration);
|
||||
.delay(1000).fadeOut();
|
||||
|
||||
} else {
|
||||
//
|
||||
|
@ -168,6 +167,11 @@ jQuery("#roll_dice").on("click", function(e) {
|
|||
dice_word.html("\"" + roll.word + "\"");
|
||||
row.append(dice_word);
|
||||
|
||||
//
|
||||
// And clear to the next line
|
||||
//
|
||||
row.append("<br clear=\"all\" />");
|
||||
|
||||
rows.push(row);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue