这是indexloc提供的服务,不要输入任何密码
Skip to content

A small (0,5kB) fill-in to add .hasClass(), .addClass(), .removeClass() and .toggleClass() to every HTML-Element.

Notifications You must be signed in to change notification settings

CasualSuperman/CSSClass

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

CSSClass is a JavaScript microframework which adds the functions .hasClass, .addClass, .removeClass and .toggleClass to the Element prototype.

The usage is easy. Include the script file and just use the functions (they can be chained).

var test = document.getElementById('test');
if (test.hasClass('active'))
	test.addClass('glow');
test.removeClass('active glow').toggleClass('golden');

If you encounter an error or have a feature suggestion please open a new issue on GitHub (https://github.com/EarMaster/CSSClass/).

About

A small (0,5kB) fill-in to add .hasClass(), .addClass(), .removeClass() and .toggleClass() to every HTML-Element.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%