<!doctypehtml><html lang=en><meta charset=UTF-8><meta content="width=device-width,initial-scale=1"name=viewport><title>Generate Key</title><style>body{background-color:#0d0d0d;color:#fff;font-family:Arial,sans-serif;text-align:center;padding:20px}.container{background-color:#1e1e1e;border-radius:10px;padding:20px;margin:auto;width:90%;max-width:600px;box-shadow:0 0 10px rgba(0,0,0,.5)}.ads-box{background-color:#333;color:#fff;padding:15px;border-radius:10px;margin-bottom:20px;font-size:16px;font-weight:700}.textbox{width:80%;padding:10px;border:2px solid #b3b3b3;border-radius:5px;font-size:18px;margin-bottom:10px;text-align:center;background-color:#333;color:#fff}.button{background-color:#5865f2;color:#fff;padding:15px 20px;border:none;border-radius:5px;cursor:pointer;font-size:18px;transition:all .3s ease;margin-top:10px}.button:disabled{background-color:#444;cursor:not-allowed}.button:hover:enabled{background-color:#4a55bf}.green-button{background-color:#4caf50;color:#fff;padding:10px 15px;border:none;border-radius:5px;cursor:pointer;font-size:16px;transition:all .3s ease;display:none}.green-button:hover{background-color:#45a049}.button-container{display:flex;justify-content:center;gap:10px;margin-top:10px}.error-message,.success-message{margin-top:15px;font-weight:700}.success-message{color:#4caf50}.error-message{color:red}iframe{width:100%;height:250px;border:none;border-radius:10px}.loading{font-size:18px;color:#ff0;font-weight:700;display:none}.dots{font-size:30px;color:#5865f2;animation:blink 1s infinite}@keyframes blink{50%{opacity:0}}</style><script>document.addEventListener('DOMContentLoaded', function () {
            const keyBox = document.getElementById('generatedKey');
            const copyKeyButton = document.getElementById('copyKeyButton');
            const generateKeyButton = document.getElementById('generateKeyButton');
            const successMessage = document.getElementById('successMessage');
            const errorMessage = document.getElementById('errorMessage');
            const adContainer = document.getElementById('adContainer');
            const timerDisplay = document.getElementById('timerDisplay');
            const loadingMessage = document.getElementById('loadingMessage');
            const dots = document.getElementById('dots');
            const discordLink = document.getElementById('discordLink');

            let adWatched = false;

            // Initialize with button disabled
            generateKeyButton.disabled = true;

            // Timer logic will only start after ad is clicked
            let timer = 10;
            let countdown;

            // Embed an alternative ad (a 10-second placeholder ad video)
            const adVideo = document.createElement('iframe');
            adVideo.src = 'https://www.youtube.com/embed/YOUR_VIDEO_ID_HERE?autoplay=1';  // Replace with your actual video ID
            adVideo.setAttribute('allow', 'autoplay');
            adContainer.appendChild(adVideo);

            // Automatically start the timer 2 seconds after the page is loaded
            setTimeout(startAdTimer, 2000);

            generateKeyButton.addEventListener('click', function () {
                if (!adWatched) {
                    errorMessage.textContent = 'Please watch the ad first.';
                    return;
                }

                if (sessionStorage.getItem('generatedKey')) {
                    errorMessage.textContent = 'You can only generate one key per session.';
                    setTimeout(() => {
                        errorMessage.textContent = '';
                    }, 1500); // Show the message for 1.5 seconds
                    return;
                }

                loadingMessage.style.display = 'block'; // Show "Creating Key..." animation
                dots.style.display = 'inline'; // Show dots

                setTimeout(() => {
                    const key = 'Key_' + Math.random().toString(36).substr(2, 18);
                    sessionStorage.setItem('generatedKey', key);
                    localStorage.setItem('temporaryKey', key);
                    keyBox.value = key;
                    copyKeyButton.style.display = 'inline-block';
                    successMessage.textContent = 'Key generated successfully!';
                    loadingMessage.style.display = 'none'; // Hide animation
                    dots.style.display = 'none'; // Hide dots
                }, 3000); // 3-second delay for key generation (simulate creation process)
            });

            function startAdTimer() {
                timerDisplay.textContent = `Please wait ${timer} seconds...`;

                countdown = setInterval(() => {
                    timer -= 1;
                    timerDisplay.textContent = `Please wait ${timer} seconds...`;
                    if (timer === 0) {
                        clearInterval(countdown);
                        adWatched = true;
                        generateKeyButton.disabled = false; // Enable button after ad is watched
                        successMessage.textContent = 'You can now generate your key!';
                    }
                }, 1000);
            }

            function copyKey() {
                keyBox.select();
                navigator.clipboard.writeText(keyBox.value).then(() => {
                    successMessage.textContent = 'Key copied to clipboard!';
                });
            }

            // Event listener for the ad to start the timer after it's clicked
            adVideo.addEventListener('click', function () {
                if (!adWatched) {
                    adWatched = true;
                    startAdTimer();
                }
            });

            document.getElementById('copyKeyButton').addEventListener('click', copyKey);
        });</script><div class=container><div class=ads-box id=adContainer><p id=timerDisplay>Please wait 10 seconds...</div><h1>Generate Your Key</h1><input class=textbox id=generatedKey placeholder="Your key will appear here..."readonly><div class=loading id=loadingMessage>Creating key<span class=dots id=dots>...</span></div><div class=button-container><button class=button id=generateKeyButton>Generate Key</button><button class=green-button id=copyKeyButton>Copy Key</button></div><div class=success-message id=successMessage></div><div class=error-message id=errorMessage></div><p>If you encounter any issues, join our<a href=https://discord.gg/8jU5FTbnAF id=discordLink style=color:#7289da>Discord Server</a></div>