js/app.js
/**
 * @description Generic method which adds/removes/updates class being passed as arguments
 * @param element
 * @param className
 * @param isAppend
 */
@description Generic method which adds/removes/updates class being passed as arguments
@param element
@param className
@param isAppend
@description Generic method which adds / removes / updates class being passed as arguments @param element @param className @param isAppend
function updateClass(element, className, isAppend) {
    if (isAppend) {
        element.classList.add(className);
    } else {
        element.className = className;
    }
}
function updateClass ( element , className , isAppend ) { if ( isAppend ) { element . classList . add ( className ) ; } else { element . className = className ; } }
@description Generic method which adds/removes/updates class being passed as arguments
 @param element
 @param className
 @param isAppend
@description Generic method which adds / removes / updates class being passed as arguments @param element @param className @param isAppend