Formatting of passphrase and fixed lingering whitespace issue.

This commit is contained in:
Douglas Muth 2015-04-26 17:14:21 -04:00
parent 0eff75c03b
commit 2b0e6b2c49
2 changed files with 10 additions and 8 deletions

View file

@ -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>

View file

@ -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);
}