# cookiebot/4.7.4/assets/js/backend/support-page.js

Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA &amp; Google Consent Mode, version 4.7.4. 19 lines.

- Page: https://pluginprobe.com/plugins/cookiebot/4.7.4/code/assets/js/backend/support-page.js
- Raw: https://pluginprobe.com/plugins/cookiebot/4.7.4/raw/assets/js/backend/support-page.js
- Modified: 2025-04-29T15:45:42+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/cookiebot/4.7.4/code/assets/js/backend/support-page.js#L10-L20`.

```javascript
(() => {
const questionItem = document.querySelectorAll('.cb-faq__container');

for (let i = 0; i < questionItem.length; i++) {
    questionItem[i].addEventListener('click', function() {
        const active = document.querySelector('.cb-faq--opened');
        active.classList.remove('cb-faq--opened');
        questionItem[i].classList.toggle('cb-faq--opened');
    });
}
})();

function copyDebugInfo() {
    const t = document.getElementById( 'cookiebot-debug-info' )
    t.select()
    t.setSelectionRange( 0, 99999 )
    document.execCommand( 'copy' )
}

```
