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 );
}
document.getElementById("searchbutton").addEventListener( 'click', function(event) {
document.getElementById( 'searchbutton' ).addEventListener( 'click', function(event) {
doSearch();
}, false );
document.getElementById("searchinput").addEventListener( 'keyup', function( event ) {
document.getElementById( 'searchinput' ).addEventListener( 'keyup', function( event ) {
switch (event.keyCode) {
case 13:
event.preventDefault();