| 1 |
(() => { |
| 2 |
const questionItem = document.querySelectorAll('.cb-faq__container'); |
| 3 |
|
| 4 |
for (let i = 0; i < questionItem.length; i++) { |
| 5 |
questionItem[i].addEventListener('click', function() { |
| 6 |
const active = document.querySelector('.cb-faq--opened'); |
| 7 |
active.classList.remove('cb-faq--opened'); |
| 8 |
questionItem[i].classList.toggle('cb-faq--opened'); |
| 9 |
}); |
| 10 |
} |
| 11 |
})(); |
| 12 |
|
| 13 |
function copyDebugInfo() { |
| 14 |
const t = document.getElementById( 'cookiebot-debug-info' ) |
| 15 |
t.select() |
| 16 |
t.setSelectionRange( 0, 99999 ) |
| 17 |
document.execCommand( 'copy' ) |
| 18 |
} |
| 19 |
|