|
|
|
@ -260,7 +260,6 @@ function setupInputFile (inp) {
|
|
|
|
fetchUrl(inp.url, cfn.cm);
|
|
|
|
fetchUrl(inp.url, cfn.cm);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//TODO: implement a "get URL" feature
|
|
|
|
|
|
|
|
function getFileData () {
|
|
|
|
function getFileData () {
|
|
|
|
var filedata = {};
|
|
|
|
var filedata = {};
|
|
|
|
// script
|
|
|
|
// script
|
|
|
|
@ -291,6 +290,19 @@ $(function () {
|
|
|
|
var hashdata = window.location.hash.substr(1);
|
|
|
|
var hashdata = window.location.hash.substr(1);
|
|
|
|
var hash = hashdata.length>0 ? JSON.parse(decodeURIComponent(hashdata)) : {};
|
|
|
|
var hash = hashdata.length>0 ? JSON.parse(decodeURIComponent(hashdata)) : {};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('#copyurl').click(function () {
|
|
|
|
|
|
|
|
var pageurl = $('#pageurl');
|
|
|
|
|
|
|
|
var data = getFileData();
|
|
|
|
|
|
|
|
data.cmdline = $('#argv').val();
|
|
|
|
|
|
|
|
var loc = new URL(window.location);
|
|
|
|
|
|
|
|
loc.hash = encodeURIComponent(JSON.stringify(data));
|
|
|
|
|
|
|
|
pageurl.val(loc);
|
|
|
|
|
|
|
|
pageurl.show();
|
|
|
|
|
|
|
|
pageurl[0].select();
|
|
|
|
|
|
|
|
document.execCommand("copy");
|
|
|
|
|
|
|
|
pageurl.hide();
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$('#addinput').click(function () {
|
|
|
|
$('#addinput').click(function () {
|
|
|
|
setupInputFile( {} );
|
|
|
|
setupInputFile( {} );
|
|
|
|
});
|
|
|
|
});
|
|
|
|
@ -385,8 +397,16 @@ $(function () {
|
|
|
|
<input type="text" id="argv" class="code" value='perl' />
|
|
|
|
<input type="text" id="argv" class="code" value='perl' />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div id="runnerstate" class="text">
|
|
|
|
<div class="text small">
|
|
|
|
Loading...
|
|
|
|
<textarea id="pageurl" style="display:none;"></textarea>
|
|
|
|
|
|
|
|
<div id="misctools">
|
|
|
|
|
|
|
|
Tools
|
|
|
|
|
|
|
|
<div id="misctools_reveal">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span id="copyurl" class="fakelink">Copy Frame URL</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<span id="runnerstate">Loading...</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div id="runnererrors" style="display:none;">
|
|
|
|
<div id="runnererrors" style="display:none;">
|
|
|
|
|