Cleanup code style.

This commit is contained in:
Benjamin Tan 2018-02-08 11:22:01 +08:00
parent fb97d99bff
commit 18e7dd2173
3 changed files with 99 additions and 101 deletions

View File

@ -65,5 +65,3 @@ probePage.open( inputFile, function( status ) {
} }
} ); } );

View File

@ -178,11 +178,11 @@ function Hilitor(id, tag)
dom.wrapper.appendChild( searchElement ); dom.wrapper.appendChild( searchElement );
} }
document.getElementById("searchbutton").addEventListener( 'click', function(event) { document.getElementById( 'searchbutton' ).addEventListener( 'click', function(event) {
doSearch(); doSearch();
}, false ); }, false );
document.getElementById("searchinput").addEventListener( 'keyup', function( event ) { document.getElementById( 'searchinput' ).addEventListener( 'keyup', function( event ) {
switch (event.keyCode) { switch (event.keyCode) {
case 13: case 13:
event.preventDefault(); event.preventDefault();