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

Auto Load #2

Closed
BarbaraEster opened this issue Mar 5, 2014 · 3 comments
Closed

Auto Load #2

BarbaraEster opened this issue Mar 5, 2014 · 3 comments
Labels

Comments

@BarbaraEster
Copy link

how can I call automatically when you open the page?

@vodkabears
Copy link
Owner

Hello! You can change hash on start.

Add this to the end of the page:

<script>
location.hash = 'data-remodal-id value';
</script>

But, in fact, thank for the issue, right now i realized that i didn't make public collection of instances after zepto support. Also i will add chaining support.
I will fix it today or tomorrow and you will be able to do it in this ways too:

<script>
var inst = $.remodal.lookup[$('[data-remodal-id=modal]').data('remodal')];
inst.open();
</script>

or create it and open with js:

<script>
$('[data-remodal-id=show]').remodal().open();
</script>

@BarbaraEster
Copy link
Author

obrigado amigo. ^^

@vodkabears
Copy link
Owner

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

No branches or pull requests

2 participants