From a7ab0a44fb066362192367b88c21330744dea8df Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Thu, 12 Aug 2021 12:13:39 +0100 Subject: [PATCH] Shorter compile messages. (#68) --- static/index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/static/index.html b/static/index.html index 61e0bf9..61d74fd 100755 --- a/static/index.html +++ b/static/index.html @@ -250,7 +250,7 @@ toolbar.appendChild( select ); compileButton = document.createElement( 'button' ); - compileButton.textContent = 'compile'; + compileButton.textContent = 'compiled'; compileButton.addEventListener( 'click', function ( event ) { compile(); @@ -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'); @@ -583,7 +583,7 @@ currentProgram = program; compileButton.style.color = '#00ff00'; - compileButton.textContent = 'compiled successfully'; + compileButton.textContent = 'compiled'; set_save_button('visible'); @@ -759,7 +759,7 @@ console.error( error ); compileButton.style.color = '#ff0000'; - compileButton.textContent = 'compiled with errors'; + compileButton.textContent = 'errors'; set_save_button('hidden');