Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow embedder to specify default widget options in p5-widget.js's script tag #49

Open
toolness opened this issue Apr 16, 2016 · 0 comments

Comments

@toolness
Copy link
Owner

For example, if an embedder has 10 widgets on their page and wants to specify a different p5 version for each of them, it'd be nice if they could just do:

<script src="//toolness.github.io/p5.js-widget/p5-widget.js"
        data-p5-version="0.4.2"></script>

Instead of having to explicitly specify the data-p5-version on all 10 <script type="text/p5"> elements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant