Skip to content

Commit 180d789

Browse files
committed
tweaking input form for 'syntaxur'
1 parent db07706 commit 180d789

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

syntaxur/index.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ <h1>syntaxur</h1>
1515
<textarea id="source" cols="100" rows="20"></textarea>
1616
</p>
1717
<p>
18-
<input id="format" type="button" value="syntaxur">
18+
<input id="format" type="button" value="syntaxur">&nbsp;&nbsp;&nbsp;
19+
<input id="reset" type="reset" value="reset">
1920
</p>
2021
<p>
2122
<div id="time"></div>
@@ -26,6 +27,7 @@ <h1>syntaxur</h1>
2627
<script src="syntaxur.js"></script>
2728
<script src="jquery.js"></script>
2829
<script>
30+
2931
$("#format").click(function(evt){
3032
evt.preventDefault();
3133
evt.stopImmediatePropagation();
@@ -48,6 +50,16 @@ <h1>syntaxur</h1>
4850
});
4951
},500);
5052
});
53+
54+
$("#reset").click(function(evt){
55+
evt.preventDefault();
56+
evt.stopImmediatePropagation();
57+
58+
$("#source").val("");
59+
$("code").empty();
60+
$("#time").empty();
61+
});
62+
5163
</script>
5264

5365
</body>

0 commit comments

Comments
 (0)