Menu

Tree [bc9c80] default tip /
 History

Read Only access


File Date Author Commit
 grmod 2025-04-18 Lee Harr Lee Harr [0d6286] add clock example. make alpha example more robust
 static 2025-05-08 Lee Harr Lee Harr [bc9c80] only show func/class in term if test/run is suc...
 .hgignore 2024-07-17 Lee Harr Lee Harr [df6418] move external libraries to separate folder
 README 2024-09-01 Lee Harr Lee Harr [8107b8] improve readme
 TODO 2025-05-08 Lee Harr Lee Harr [bc9c80] only show func/class in term if test/run is suc...
 build.grmod 2024-06-28 Lee Harr Lee Harr [8920e6] initial
 favicon.ico 2024-06-28 Lee Harr Lee Harr [8920e6] initial
 index.html 2025-03-18 Lee Harr Lee Harr [5a7ec9] enable/disable new/del buttons

Read Me

These files are not saved in the repo and are needed to run:
    library-name {library home page}
        (version tested/built with) [install/unpack in]

    pyodide {https://pyodide.org/en/stable/}
        (pyodide-core-0.26.1) [static/js/external/pyodide/]

    jquery {https://jquery.com/}
        (jquery-3.3.1.min.js) [static/js/external/]

    jquery-terminal {https://terminal.jcubic.pl/}
        (jquery.terminal.2.39.0.min.js) [static/js/external/]
        (jquery.terminal.2.39.0.min.css) [static/css/external/]

    codemirror-6 {https://codemirror.net/}
        (https://github.com/RPGillespie6/codemirror-quickstart) [static/js/external/cm6.bundle.js]
        (codemirror.css) [static/css/external/]

    fabric.js {http://fabricjs.com/} (Should be optional. Maybe not yet.)
        (fabric-5.2.0.js) [static/js/external/]


Site must be served with proper headers to allow the javascript sharedBuffer to work.
It also must be served over https unless you are serving only localhost (127.0.0.1)

    (Settings tested with nginx-1.22.1)
    add_header Access-Control-Allow-Origin "localhost"; # or your site base url
    add_header Cross-Origin-Embedder-Policy "require-corp";
    add_header Cross-Origin-Opener-Policy "same-origin";

    (Also on nginx-1.22.1)
    Need to set up serving .mjs files as application/javascript
    I've used two methods, both times, but I believe only one is needed.
        (be sure after making changes to mime/type configuration that you clear your browser cache! -- as well as restart the http server)

        1) Add mjs to the application/javascript line in mime.types
        2) Add a types section directly to nginx.conf
        types {
            		application/javascript js mjs;
        }

        Then restart server AND clear your browser cache!

    Also may need to add serving wasm files as application/wasm
        This was on an older version of nginx (1.10.3) so this line may already be there in newer versions
            I added the line directly to mime.types:
                application/wasm wasm;
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.