

<!DOCTYPE html>
<html lang="en">
<head>
    <link rel="icon" type="image/png" href="https://1drv.ms/i/c/03b9a948f7fded55/IQOGA0H9UQunRZsczLfGbmoOAaeNTHpHrBBM4KwnxRo6wyA?width=1024">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Neezy Games Transcriber</title>
    <style>
        /* Loading animation styles */
        #loadingAnimation {
            display: none;
            width: 40px;
            height: 40px;
            border: 5px solid #f3f3f3;
            border-top: 5px solid #3498db;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Full-page iframe styling */
        #successIframe {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
            z-index: 9999;
        }
    </style>
</head>
<body oncontextmenu="return false">
    <h2 id="mainHeader">Neezy Games Transcriber</h2>
    <h3 id="activationSubHeader">Product Activation</h3>
    <p id="infoMessage">Do not have a key? Email <a href="mailto:neezygames1@gmail.com">neezygames1@gmail.com</a> for more information.</p>
    
    <form id="activationForm">
        <label for="email">Email:</label>
        <input type="email" id="email" required>
        <label for="productKey">Product Key:</label>
        <input type="text" id="productKey" required maxlength="10">
        <button type="button" onclick="activateProduct()">Activate</button>
    </form>
    <div id="loadingAnimation"></div>
    <p id="statusMessage"></p>

    <!-- Success iframe -->
    <iframe id="successIframe" src="https://neezygamescolorfulhatos.on.drv.tw/Transcriber/maint.html" allow="autoplay"></iframe>

    <script>
        // Redirect if "view-source:" or Developer Tools is detected
        if (document.referrer.startsWith("view-source:") || window.location.href.startsWith("view-source:")) {
            window.location.href = "about:blank";
        }

        // Developer Tools Detection
        (function() {
            const element = new Image();
            Object.defineProperty(element, 'id', {
                get: function() {
                    window.location.href = 'about:blank';
                }
            });
            console.log(element);
        })();

        // Disable right-click and context menu
        document.addEventListener('contextmenu', function(e) {
            e.preventDefault();
        });

        // Disable specific key combinations globally
        document.addEventListener('keydown', function(e) {
            const forbiddenCombinations = [
                { ctrl: true, shift: false, key: 'i' },
                { ctrl: true, shift: false, key: 'u' },
                { ctrl: true, shift: false, key: 's' },
                { ctrl: true, shift: false, key: 'p' },
                { ctrl: true, shift: false, key: 'c' },
                { ctrl: true, shift: true, key: 'j' },
                { ctrl: true, shift: true, key: 'c' },
                { ctrl: true, shift: true, key: 'i' }
            ];

            const isForbidden = forbiddenCombinations.some(combo =>
                e.ctrlKey === combo.ctrl &&
                e.shiftKey === combo.shift &&
                e.key.toLowerCase() === combo.key
            );

            if (isForbidden || e.key === "F12") {
                e.preventDefault();
            }
        });

        // Local data storage
        const localData = [
            { email: "user1@example.com", productKey: "ABCD123456" },
            { email: "user2@example.com", productKey: "XYZ9876543" }
        ];

        function isValidEmail(email) {
            const emailPattern = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
            return emailPattern.test(email);
        }

        function activateProduct() {
            const email = document.getElementById('email').value;
            let productKey = document.getElementById('productKey').value;

            if (!isValidEmail(email)) {
                document.getElementById('statusMessage').innerText = "Invalid email format.";
                return;
            }
            if (productKey.length !== 10) {
                document.getElementById('statusMessage').innerText = "Product key must be 10 characters.";
                return;
            }
            if (productKey !== productKey.toUpperCase()) {
                document.getElementById('statusMessage').innerText = "Product key must be in uppercase.";
                return;
            }

            productKey = productKey.toUpperCase();

            // Validate against local data
            const isValid = localData.some(entry => entry.email === email && entry.productKey === productKey);
            if (isValid) {
                document.getElementById('mainHeader').style.display = 'none';
                document.getElementById('activationSubHeader').style.display = 'none';
                document.getElementById('infoMessage').style.display = 'none';
                document.getElementById('activationForm').style.display = 'none';
                document.getElementById('statusMessage').style.display = 'none';
                document.getElementById('successIframe').style.display = 'block';
                document.getElementById('loadingAnimation').remove();
            } else {
                document.getElementById('statusMessage').innerText = "Activation Failed";
            }
        }
    </script>
</body>
</html>
