Skip to content

Commit

Permalink
Add a second submit button, below the source
Browse files Browse the repository at this point in the history
  • Loading branch information
Einar Lielmanis committed Apr 3, 2013
1 parent 3999117 commit fa6e597
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,21 +59,19 @@
margin-left: 25px;
}

button#submit {
clear: both;
margin-top: 5px;
button.submit {
width: 100%;
padding: 10px 0;
cursor: pointer;
margin: 0;
}


#source {
width: 100%;
padding-left: 0;
padding-right: 0;
}

button#submit em {
button.submit em {
font-size: 11px;
font-style: normal;
color: #999;
Expand Down Expand Up @@ -324,7 +322,7 @@
beautify();
}
})
$('#submit').click(beautify);
$('.submit').click(beautify);
$('select').change(beautify);


Expand Down Expand Up @@ -387,8 +385,11 @@
</div>


<button id="submit"><strong>Beautify JavaScript or HTML</strong> <em>(ctrl-enter)</em></button>
<div style="line-height: 0">
<button class="submit"><strong>Beautify JavaScript or HTML</strong> <em>(ctrl-enter)</em></button>
<textarea id="source" rows="30" cols="160"></textarea>
<button class="submit"><strong>Beautify JavaScript or HTML</strong> <em>(ctrl-enter)</em></button>
</div>

<div class="blurb">
<div style="float:right; width: 210px;">
Expand Down

0 comments on commit fa6e597

Please sign in to comment.