File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ">
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 >
You can’t perform that action at this time.
0 commit comments