<?php if(empty($connection) AND !isset($_COOKIE['siswa'])){
    header('location:../404');
}else{
    
if(!empty($data_user['descriptor'])){
    echo'<span class="descriptor d-none">true</span>';
}else{
    echo'<span class="descriptor d-none">false</span>';
}
echo'

<main class="flex-shrink-0 main has-footer s-widodo.com">
    <div class="main-container s-widodo.com">
        <div class="container s-widodo.com">
            <div class="card mb-4 s-widodo.com">
            <div class="card-body s-widodo.com text-center">

                <div class="webcame-recognition mt-2">
                    <div class="video-recognition">
                        <video id="video" class="vidDisplay" autoplay muted playsinline width="320" height="240"></video>
                        <div class="overlay-recognition">
                            <div class="scan-line"></div>
                            <div class="result-label" id="status">Loading..</div>
                        </div>
                    </div>

                    <div class="Controls-camera s-widodo.com">
                        <button class="btn btn-primary btn-md btn-save" id="capture" disabled onclick="capture()" title="Take Photo">
                            <i class="fas fa-camera"></i> Take Photo
                        </button>
                    </div>
                </div>

            </div>
        </div>  
    </div>
</main>';
}?>