Minor edits

master
Hauke D 7 years ago
parent 93c3bf4e38
commit e79f03687e

@ -37,6 +37,7 @@ iframe.perleditor {
border: 1px solid black; border: 1px solid black;
width: 100%; width: 100%;
max-width: 50em; max-width: 50em;
margin: 0.2em 0;
} }
</style> </style>

@ -35,7 +35,7 @@ If not, see http://perldoc.perl.org/index-licence.html
<script> <script>
"use strict"; "use strict";
var mergeStdOutErr = 0; //TODO Later: make an options hash instead of individual variable(s)? var mergeStdOutErr = 0; // Possible To-Do for Later: could make an options hash
var perlRunner; // the Perl runner iframe found by findPerlRunner() var perlRunner; // the Perl runner iframe found by findPerlRunner()
var buttonBlockers = {}; // for updateButtonState() var buttonBlockers = {}; // for updateButtonState()
var lastExitStatus; // for runnerState() var lastExitStatus; // for runnerState()
@ -135,7 +135,8 @@ window.addEventListener('message', function (event) {
else console.warn("Perl Editor ignoring unknown message:",data); else console.warn("Perl Editor ignoring unknown message:",data);
}); });
function parseCmdLine(str) { //TODO: there's a better way to do this function parseCmdLine(str) {
// not the prettiest code but it works
var re = /"((?:\\"|\\\\|[^"])*)"|'((?:\\'|\\\\|[^'])*)'|(\S+)/g; var re = /"((?:\\"|\\\\|[^"])*)"|'((?:\\'|\\\\|[^'])*)'|(\S+)/g;
var argv = []; var argv = [];
var match; var match;

@ -31,6 +31,9 @@ If not, see http://perldoc.perl.org/index-licence.html
using window.* and especially document.* using window.* and especially document.*
https://developer.mozilla.org/en-US/docs/Web/API/Worker/Worker https://developer.mozilla.org/en-US/docs/Web/API/Worker/Worker
https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts
Of course, at some point I should investigate how difficult it really
is to re-start an Emscripten program...
--> -->
<script src="../webperl.js"></script> <script src="../webperl.js"></script>

Loading…
Cancel
Save