| 
 | 1 | +  const secretwords = ["fakeuser", "notexter", "frwendsec"]  | 
 | 2 | +  const wordlist =  ["fekeusa", "nttss", "okay"]  | 
 | 3 | +  const w0ord = ["bloxcraft-wins-offi", "bloxyubg", "goldenmonmn", "cookenmone"];  | 
 | 4 | +  const word = ["Some", "BetaSigma", "School"]  | 
 | 5 | +    | 
 | 6 | +  const urlparma = "code-378297"  | 
 | 7 | +  const openPopup = document.getElementById("openPopup");  | 
 | 8 | +  const popupOverlay = document.getElementById("popupOverlay");  | 
 | 9 | +  const closePopup = document.getElementById("closePopup");  | 
 | 10 | +  const submitCode = document.getElementById("submitCode");  | 
 | 11 | +  const secretInput = document.getElementById("secretInput");  | 
 | 12 | +  const message = document.getElementById("message");  | 
 | 13 | + | 
 | 14 | +  openPopup.addEventListener("click", () => {  | 
 | 15 | +    popupOverlay.style.display = "flex";  | 
 | 16 | +    secretInput.focus();  | 
 | 17 | +  });  | 
 | 18 | + | 
 | 19 | +  closePopup.addEventListener("click", () => {  | 
 | 20 | +    popupOverlay.style.display = "none";  | 
 | 21 | +    message.textContent = "";  | 
 | 22 | +    secretInput.value = "";  | 
 | 23 | +  });  | 
 | 24 | + | 
 | 25 | +  submitCode.addEventListener("click", () => {  | 
 | 26 | +    const code = secretInput.value.trim();  | 
 | 27 | +    if (w0ord.includes(code)) {  | 
 | 28 | +        | 
 | 29 | +      window.location.href = `/apps/secret-code/${urlparma}`;  | 
 | 30 | +    } else {  | 
 | 31 | +       | 
 | 32 | +      message.textContent = "❌ Wrong! Try Again!";  | 
 | 33 | +    }  | 
 | 34 | +  });  | 
 | 35 | + | 
 | 36 | +    | 
 | 37 | +  secretInput.addEventListener("keydown", (e) => {  | 
 | 38 | +    if (e.key === "Enter") submitCode.click();  | 
 | 39 | +  });  | 
0 commit comments