_scripts/modules.js
// chec if a class is present
chec if a class is present
chec if a class is present
function HasClass(elem, clsname) {
	this.elem = elem
	this.clas = clsname
	if(this.elem.classList.length === 0) {
		return false;
	}
	for(var i=0; i<this.elem.classList.length; i++) {
		if(this.elem.classList[i] === this.clas)
			return true
		else
			continue
			return false
	}
}
function HasClass ( elem , clsname ) { this . elem = elem this . clas = clsname if ( this . elem . classList . length === 0 ) { return false ; } for ( var i = 0 ; i < this . elem . classList . length ; i ++ ) { if ( this . elem . classList [ i ] === this . clas ) return true else continue return false } }
chec if a class is present
chec if a class is present
// if the element does not have any class at all return false