first commit
This commit is contained in:
Executable
+20
@@ -0,0 +1,20 @@
|
||||
// ============================================
|
||||
// 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];
|
||||
}
|
||||
});
|
||||
})();
|
||||
Reference in New Issue
Block a user