|
9 | 9 | body {
|
10 | 10 |
|
11 | 11 | background-color: #000000;
|
12 |
| - margin: 0px; |
| 12 | + margin: 0; |
| 13 | + padding: 0; |
13 | 14 | overflow: hidden;
|
14 | 15 |
|
15 | 16 | }
|
|
180 | 181 | return;
|
181 | 182 | }
|
182 | 183 |
|
183 |
| - var effect = document.createElement( 'div' ); |
184 |
| - document.body.appendChild( effect ); |
185 |
| - |
186 | 184 | canvas = document.createElement( 'canvas' );
|
187 |
| - effect.appendChild( canvas ); |
| 185 | + canvas.style.display = 'block'; |
| 186 | + document.body.appendChild( canvas ); |
188 | 187 |
|
189 | 188 | //
|
190 | 189 |
|
|
607 | 606 | currentProgram = program;
|
608 | 607 |
|
609 | 608 | compileButton.style.color = '#00ff00';
|
610 |
| - compileButton.textContent = 'compiled succesfully'; |
| 609 | + compileButton.textContent = 'compiled successfully'; |
611 | 610 |
|
612 | 611 | set_save_button('visible');
|
613 | 612 |
|
|
794 | 793 | indexEnd = error.indexOf(':', index);
|
795 | 794 | if (indexEnd > index) {
|
796 | 795 | lineNum = parseInt(error.substring(index, indexEnd));
|
797 |
| - index = indexEnd + 1; |
798 |
| - indexEnd = error.indexOf("ERROR: 0:", index); |
799 |
| - lineError = htmlEncode((indexEnd > index) ? error.substring(index, indexEnd) : error.substring(index)); |
800 |
| - line = code.setMarker(lineNum - 1, '<abbr title="' + lineError + '">' + lineNum + '</abbr>', "errorMarker"); |
801 |
| - code.setLineClass(line, "errorLine"); |
802 |
| - errorLines.push(line); |
| 796 | + if ((!isNaN(lineNum)) && (lineNum > 0)) { |
| 797 | + index = indexEnd + 1; |
| 798 | + indexEnd = error.indexOf("ERROR: 0:", index); |
| 799 | + lineError = htmlEncode((indexEnd > index) ? error.substring(index, indexEnd) : error.substring(index)); |
| 800 | + line = code.setMarker(lineNum - 1, '<abbr title="' + lineError + '">' + lineNum + '</abbr>', "errorMarker"); |
| 801 | + code.setLineClass(line, "errorLine"); |
| 802 | + errorLines.push(line); |
| 803 | + } |
803 | 804 | }
|
804 | 805 | }
|
805 | 806 |
|
|
0 commit comments