Updated demo.html

master
Hauke D 7 years ago
parent aa2cf82a03
commit f70e5a09f4

@ -31,18 +31,30 @@ If not, see http://perldoc.perl.org/index-licence.html
- STDIN is currently not supported, workaround is to supply files on command line - STDIN is currently not supported, workaround is to supply files on command line
--> -->
<iframe name="perlrunner" sandbox="allow-scripts" <style>
src="perlrunner.html" style="display:none;"></iframe> iframe.perleditor {
display: block;
border: 1px solid black;
width: 100%;
max-width: 50em;
}
</style>
<iframe id="perl1" sandbox="allow-scripts allow-modals" </head>
style="border:1px solid black;width:100%;max-width:50em;height:8em;"></iframe> <body>
<iframe id="perl2" sandbox="allow-scripts allow-modals"
style="border:1px solid black;width:100%;max-width:50em;height:40em;"></iframe> <iframe name="perlrunner" sandbox="allow-scripts" src="perlrunner.html" style="display:none;"></iframe>
<iframe id="perl1" sandbox="allow-scripts allow-modals" class="perleditor" style="height:10em;"></iframe>
<script> <script>
document.getElementById('perl1').src = document.getElementById('perl1').src =
"perleditor.html#" + encodeURIComponent(JSON.stringify( { "perleditor.html#" + encodeURIComponent(JSON.stringify( {
cmdline: "perl -e 'print \"Hello, World!\"'", cmdline: "perl -e 'print \"Hello, World!\"'",
} )); } ));
</script>
<iframe id="perl2" sandbox="allow-scripts allow-modals" class="perleditor" style="height:40em;"></iframe>
<script>
document.getElementById('perl2').src = document.getElementById('perl2').src =
"perleditor.html#" + encodeURIComponent(JSON.stringify( { "perleditor.html#" + encodeURIComponent(JSON.stringify( {
cmdline: "perl devoweler.pl mytext.txt other.txt", cmdline: "perl devoweler.pl mytext.txt other.txt",
@ -57,7 +69,5 @@ document.getElementById('perl2').src =
} )); } ));
</script> </script>
</head>
<body>
</body> </body>
</html> </html>

Loading…
Cancel
Save