Skip to content

Commit

Permalink
Shorter compile messages. (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob authored Aug 12, 2021
1 parent c9c5c3e commit a7ab0a4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@
toolbar.appendChild( select );

compileButton = document.createElement( 'button' );
compileButton.textContent = 'compile';
compileButton.textContent = 'compiled';
compileButton.addEventListener( 'click', function ( event ) {

compile();
Expand Down Expand Up @@ -565,7 +565,7 @@

console.error( 'VALIDATE_STATUS: ' + gl.getProgramParameter( program, gl.VALIDATE_STATUS ), 'ERROR: ' + gl.getError() );
compileButton.style.color = '#ff0000';
compileButton.textContent = 'compiled with errors';
compileButton.textContent = 'errors';

set_save_button('hidden');

Expand All @@ -583,7 +583,7 @@
currentProgram = program;

compileButton.style.color = '#00ff00';
compileButton.textContent = 'compiled successfully';
compileButton.textContent = 'compiled';

set_save_button('visible');

Expand Down Expand Up @@ -759,7 +759,7 @@
console.error( error );

compileButton.style.color = '#ff0000';
compileButton.textContent = 'compiled with errors';
compileButton.textContent = 'errors';

set_save_button('hidden');

Expand Down

0 comments on commit a7ab0a4

Please sign in to comment.