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

awesomeCloud on multiple elements on the same page with the same class #19

Open
dingo-d opened this issue Apr 9, 2015 · 1 comment
Open

Comments

@dingo-d
Copy link

dingo-d commented Apr 9, 2015

I have several elements with the same class on my site that have different tags in them. Is it possible to use the same initialization for every one, or do I need to call it multiple times, adding different classes for each one?

@dingo-d
Copy link
Author

dingo-d commented Apr 9, 2015

Ok, I managed to make it that one canvas is in one element with

$(".element").each(function(){ $(this).awesomeCloud(settings); });

with settings predefined in a variable, but they are still all crammed in one element (even though in DOM they are all in their respective divs)

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