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 support for toggling styles #6

Merged
merged 2 commits into from
Sep 8, 2014

Conversation

aivot-on
Copy link
Contributor

@aivot-on aivot-on commented Sep 8, 2014

Adds support for multiple css files and easy way to toggle them

Goodnight.css('styles/night.css');
Goodnight.css('styles/nightier.css');
Goodnight.toggle(); // Removes files

Moved night check to its own function, added support for multiple
css files instead of just one.

Created toggle function that can be called if user wants to remove
night styles (or apply them in daytime).

Also changed document.getElementsByTagName('head') to document.head
it removes IE8 support according to MDN
JSHint is much relaxed compared to jshint
JaredCubilla added a commit that referenced this pull request Sep 8, 2014
Add support for toggling styles
@JaredCubilla JaredCubilla merged commit d02010d into JaredCubilla:master Sep 8, 2014
@JaredCubilla
Copy link
Owner

Awesome! Thanks man!

Could you also write a quick note about this in the README?

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.

2 participants