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

Add Vanilla js version #1

Merged
merged 1 commit into from Dec 12, 2014
Merged

Add Vanilla js version #1

merged 1 commit into from Dec 12, 2014

Conversation

luanmuniz
Copy link
Contributor

This is a try to make a vanilla js version.
I had to put your loader on a site that didn't use jQuery, and because the code was ready, i decided to send this PR.
I don't know if you will like this, the code its a bit ugly.

Anyway, tested in Chrome, Firefox and Opera.
And this suppose to work in IE 9+

The API is the same. The only difference is the way you call the main method:

var preloader = materialPreloader(settingsObject);
preloader.on();
preloader.off();

aaronlumsden added a commit that referenced this pull request Dec 12, 2014
@aaronlumsden aaronlumsden merged commit 896403c into aaronlumsden:master Dec 12, 2014
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

Successfully merging this pull request may close these issues.

None yet

2 participants