<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Bot Verification</title>
    <script>
        function onSubmit() {
            document.getElementById('lsrecaptcha-form').submit();
        }


        document.addEventListener("DOMContentLoaded", function () {
            const form = document.getElementById("lsrecaptcha-form");
            const widget = document.getElementById("altcha");

            if (widget) {
                widget.addEventListener("verified", function (event) {
                    console.log("Altcha verified:", event.detail);
                    form.submit();
                });
            }
        });

    </script>
    <style>
        body {
        height: 100%;
        }
        .panel {
        padding: 30px;
        max-width: 425px;
        margin: 10% auto;
        box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.2);
        }
        .title {
        font-size: 1.5em;
        font-weight: 100;
        margin-top: 10px;
        text-align: center;
        }
        .recaptcha-center {
        margin-top: 35px;
        margin-bottom: 20px;
        margin-left: 13%;
        margin-right: 13%;
        display: block;
        }
    </style>
</head>
<body>
    <div class="panel">
        <h3 class="title">ampletech.co.za: Verifying that you are not a robot...</h3>
        <form id="lsrecaptcha-form" method="POST" action="/.lsrecap/recaptcha?">

            <altcha-widget id="altcha" challengeurl="/.lsrecap/recaptcha" name="payload" theme="light" auto="onload" hide="true" hidefooter="true" hidelogo="true" floating="auto"></altcha-widget>

        </form>
    </div>

    <script type="module" src="https://cdn.jsdelivr.net/npm/altcha/dist/altcha.js" async defer>

    </script>
</body>
</html>
