General developer forum

Picture of Adam Morris
Re: How can I include a Python interpreter written in Javascript in Moodle?

You put that file somewhere where the web server has access to it. You could just put into the top level wherever Moodle's code lives, but probably a good idea to name it something a bit esoteric, and set the permissions accordingly.

Then in the src= part you put the url of your site, / and then the name you chose. The web server will then serve up that Javascript and you should be good to go.

Average of ratings: -