|
148 | 148 | // @description:zu Yengeza izimpendulo ze-AI ku-DuckDuckGo (inikwa amandla yi-GPT-4o!) |
149 | 149 | // @author KudoAI |
150 | 150 | // @namespace https://kudoai.com |
151 | | -// @version 2025.5.17.15 |
| 151 | +// @version 2025.5.17.16 |
152 | 152 | // @license MIT |
153 | 153 | // @icon https://assets.ddgpt.com/images/icons/duckduckgpt/icon48.png?v=06af076 |
154 | 154 | // @icon64 https://assets.ddgpt.com/images/icons/duckduckgpt/icon64.png?v=06af076 |
|
1037 | 1037 | } |
1038 | 1038 |
|
1039 | 1039 | // Update footer content |
1040 | | - footerContent.setAttribute('class', '') // reset for re-fade |
| 1040 | + app.footerContent.setAttribute('class', '') // reset for re-fade |
1041 | 1041 | const newFooterContent = destinationURL ? dom.create.anchor(destinationURL) |
1042 | 1042 | : dom.create.elem('span') |
1043 | | - footerContent.replaceWith(newFooterContent) ; footerContent = newFooterContent |
1044 | | - footerContent.classList.add('fade-in', 'anchored-hidden') |
1045 | | - footerContent.textContent = chosenAd.text |
1046 | | - footerContent.setAttribute('title', chosenAd.tooltip || '') |
1047 | | - setTimeout(() => footerContent.classList.add('active'), 100) // to trigger fade |
| 1043 | + app.footerContent.replaceWith(newFooterContent) ; app.footerContent = newFooterContent |
| 1044 | + app.footerContent.classList.add('fade-in', 'anchored-hidden') |
| 1045 | + app.footerContent.textContent = chosenAd.text |
| 1046 | + app.footerContent.setAttribute('title', chosenAd.tooltip || '') |
| 1047 | + setTimeout(() => app.footerContent.classList.add('active'), 100) // to trigger fade |
1048 | 1048 | adSelected = true ; break |
1049 | 1049 | } |
1050 | 1050 | if (adSelected) break // out of campaign loop after ad selection |
|
3099 | 3099 |
|
3100 | 3100 | // Create/classify/fill feedback FOOTER |
3101 | 3101 | app.footer = dom.create.elem('footer', { class: 'fade-in anchored-hidden' }) |
3102 | | - let footerContent = dom.create.anchor('#', app.msgs.link_shareFeedback, { target: '_self' }) |
3103 | | - footerContent.onclick = () => modals.open('feedback') |
3104 | | - app.footer.append(footerContent) |
| 3102 | + app.footerContent = dom.create.anchor('#', app.msgs.link_shareFeedback, { target: '_self' }) |
| 3103 | + app.footerContent.onclick = () => modals.open('feedback') |
| 3104 | + app.footer.append(app.footerContent) |
3105 | 3105 |
|
3106 | 3106 | // Check for active TEXT CAMPAIGNS to replace footer CTA |
3107 | 3107 | update.footerContent() |
|
0 commit comments