toolness / p5.js-widget

A reusable widget for embedding editable p5 sketches in web pages.
https://toolness.github.io/p5.js-widget/
GNU Lesser General Public License v2.1
161 stars 44 forks source link

Add data-base-url option. #47

Closed toolness closed 8 years ago

toolness commented 8 years ago

This fixes #39 by defaulting the base URL of the sketch to the embedding page. If the embedder wants to explicitly provide a different base URL, they can do so via the data-base-url option, which is documented.