<div id="age-verification-popup" style="display:none;">
    <h2>Are you over 18?</h2>
    <button id="yes-button">Yes</button>
    <button id="no-button">No</button>
</div>

<script>
    $(document).ready(function () {
        if (!localStorage.getItem("isOver18")) {
            $("#age-verification-popup").show();
        }

        $("#yes-button").click(function () {
            localStorage.setItem("isOver18", true);
            $("#age-verification-popup").hide();
        });

        $("#no-button").click(function () {
            window.location.href = "/UnderAge";
        });
    });
</script>
