function toggleClass(el, cls) {
	try {
		if (el) {
			let target = document.getElementById(el);
			if (cls) {
				if (target.classList.contains(cls)) {
					target.classList.remove(cls);
				} else {
					target.classList.add(cls);
				}
			} else {
				throw new Error('No Class Defined');
			}
		} else {
			throw new Error('No Element Defined');
		}
	} catch (e) {
		console.log(`${e.name}: ${e.message}`);
	}
}
/**
 * Adds or removes a class on a Element by className
 * @param {string} el the Element ID
 * @param {string} cls the class name to toggle
 */
Adds or removes a class on a Element by className
@param {string} el the Element ID
@param {string} cls the class name to toggle
Adds or removes a class on a Element by className @param { string } el the Element ID @param { string } cls the class name to toggle
function toggleClass(el, cls) {
	try {
		if (el) {
			let target = document.getElementById(el);
			if (cls) {
				if (target.classList.contains(cls)) {
					target.classList.remove(cls);
				} else {
					target.classList.add(cls);
				}
			} else {
				throw new Error('No Class Defined');
			}
		} else {
			throw new Error('No Element Defined');
		}
	} catch (e) {
		console.log(`${e.name}: ${e.message}`);
	}
}
function toggleClass ( el , cls ) { try { if ( el ) { let target = document . getElementById ( el ) ; if ( cls ) { if ( target . classList . contains ( cls ) ) { target . classList . remove ( cls ) ; } else { target . classList . add ( cls ) ; } } else { throw new Error ( 'No Class Defined' ) ; } } else { throw new Error ( 'No Element Defined' ) ; } } catch ( e ) { console . log ( ` ${ e . name } ${ e . message } ` ) ; } }
Adds or removes a class on a Element by className
 @param {string} el the Element ID
 @param {string} cls the class name to toggle
Adds or removes a class on a Element by className @param { string } el the Element ID @param { string } cls the class name to toggle