diff --git a/experiments/democode/demo.html b/experiments/democode/demo.html deleted file mode 100644 index 63bc81e..0000000 --- a/experiments/democode/demo.html +++ /dev/null @@ -1,19 +0,0 @@ - - -
- -
+This page demonstrates the embeddable
+🕸️🐪 WebPerl
+Code Demo Editor, which can be embedded using <iframe> elements, including
+sandboxing.
+The documentation is contained in the source of this page, please use
+the "View Source" function of your browser to view it, or have a look at
+the project sources on GitHub.
+
This is a simple example of running a oneliner:
+ + + + + + +This example includes several files:
+ + + + + + + + diff --git a/web/democode/perleditor.css b/web/democode/perleditor.css new file mode 100644 index 0000000..62f566c --- /dev/null +++ b/web/democode/perleditor.css @@ -0,0 +1,83 @@ + +body { + margin: 0.4em; +} +.text { + font-family: Calibri, Ubuntu, "Droid Sans", Tahoma, Arial, Helvetica, sans-serif; + font-size: 0.9em; +} +pre,textarea,code,.code,.filename,.CodeMirror { + font-family: Consolas, "Ubuntu Mono", "Droid Sans Mono", "Lucida Console", "Courier New", Courier, monospace; +} +pre { + margin: 0; +} +a { + text-decoration: none; +} + +.CodeMirror { + border: 1px solid lightgrey; + height: auto; +} +.CodeMirror-scroll { + max-height: 12em; +} + +.codewithfn { + margin-top: 0.4em; +} +.fnfuncs { + cursor: default; +} +.filename { + display: inline-block; + border: 0; + padding: 1px; + min-width: 1em; + cursor: auto; +} +.filefuncs { + display: inline-block; + padding-top: 2px; + position: absolute; + right: 0.2em; +} +.fakelink { + color: darkblue; + cursor: pointer; +} +.badfilename { + background-color: rgba(255,200,200,255); + /* also has a placeholder text */ + min-width: 10em; +} + +#perlctrl { + margin-top: 0.3em; +} + +#misctools { + display: inline-block; + border: 1px solid grey; + padding: 1px 0.8em 1px 0.5em; + margin-top: 0.5em; +} +#runnerstate { + margin-top: 0.2em; + margin-bottom: 0.3em; +} +#runnererrors { + background-color: rgba(255,200,200,255); + margin-top: 0.3em; + margin-bottom: 0.3em; + padding: 0.1em 0.2em; +} + +#inputhere, #outputhere { + text-align: right; +} + +#footer { + margin-top: 0.5em; +} diff --git a/web/democode/perleditor.html b/web/democode/perleditor.html new file mode 100644 index 0000000..aed7ffa --- /dev/null +++ b/web/democode/perleditor.html @@ -0,0 +1,470 @@ + + + + +