/** * @package ogre-captcha * @author cleverogre * @copyright 2026 CleverOgre * @license GLP-3.0-or-later * @version 1.2.0 * @since 1.2.0 */ (() => { document.addEventListener('DOMContentLoaded', () => { if (typeof window['CAP_FLOATING_DYNAMIC'] === 'undefined') return; const element = document.body.querySelector(CAP_FLOATING_DYNAMIC['selector']); if (element === null) return; for (const [name, value] of Object.entries(CAP_FLOATING_DYNAMIC['attributes'])) { element.setAttribute(name, value); } // Trigger MutationObserver const parent = element.parentElement; parent.removeChild(element); parent.appendChild(element); }); })();