<!DOCTYPE html>
<html>
    <head>
        <title> work in progress </title>
    </head>
    <body>
        <h1> my awesome space </h1>
        <p> test button </p>
        <input id = 'test' autocomplete="off"> code box thing </input>

        <script>
            setInterval(function () {
                if (document.getElementById('test').value === 'abcdef') {
                    var a = prompt('bug found?')
                    if (a === 'yes') {
                        visit('https://raw.githubusercontent.com/Elite4r/Resent-Client/main/index.html')
                    }
                    document.getElementById('test').value = ''
                }
            }, 1000)
            function visit(web) {
                var game = window.open(
                    "",
                    "Math",
                    "width=" + screen.width + ",height=" + screen.height + ",resizable=yes,scrollbars=no,toolbar=no,menubar=no,location=no,directories=no,status=no,top=0,left=0,popup=false"
                );
                // fetch html for game and display it in the new window
                fetch(web)
                    .then((response) => response.text())
                    .then((html) => {
                        game.document.write(html);
                        game.document.title = "debug space";
                        game.document.close();
                    });
            }
        </script>
    </body>
</html>