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

Function toggleDisableInteraction

src/utils/general.js:771–781  ·  view source on GitHub ↗
(enable)

Source from the content-addressed store, hash-verified

769 * @param {boolean} [enable]
770 */
771export const toggleDisableInteraction = (enable) => {
772 clearTimeout(disableInteractionTimeout);
773
774 if (enable) {
775 addClass(globalObj._dom._htmlDom, TOGGLE_DISABLE_INTERACTION_CLASS);
776 }else {
777 disableInteractionTimeout = setTimeout(() => {
778 removeClass(globalObj._dom._htmlDom, TOGGLE_DISABLE_INTERACTION_CLASS);
779 }, 500);
780 }
781};
782
783const iconStrokes = [
784 'M 19.5 4.5 L 4.5 19.5 M 4.5 4.501 L 19.5 19.5', // X

Callers 2

showFunction · 0.90
hideFunction · 0.90

Calls 2

addClassFunction · 0.85
removeClassFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…