MCPcopy
hub / github.com/orestbida/cookieconsent / addClass

Function addClass

src/utils/general.js:118–118  ·  view source on GitHub ↗
(elem, className)

Source from the content-addressed store, hash-verified

116 * @param {string} className
117 */
118export const addClass = (elem, className) => elem.classList.add(className);
119
120/**
121 * @param {HTMLElement} elem

Callers 12

addModalClassFunction · 0.90
setLayoutFunction · 0.90
handleRtlLanguageFunction · 0.90
showFunction · 0.90
showPreferencesFunction · 0.90
createPreferencesModalFunction · 0.90
createToggleLabelFunction · 0.90
createConsentModalFunction · 0.90
general.test.jsFile · 0.90
addClassCmFunction · 0.85
addClassPmFunction · 0.85
toggleDisableInteractionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…