// ============================================
// captcha.js - Optimized
// ============================================
(function() {
    'use strict';
    
    const captchas = [
        "secret/captcha2.html",
        "secret/captcha.html",
    ];
    
    const captchaIndex = Math.floor(Date.now() / (1000 * 60 * 60 * 24)) % captchas.length;
    
    document.addEventListener("DOMContentLoaded", () => {
        const captchaLink = document.getElementById("captchas");
        if (captchaLink) {
            captchaLink.href = captchas[captchaIndex];
        }
    });
})();
