<!DOCTYPE html>
<html lang="en">

<head>
    <title>Anticode | Log Cards</title>
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
      <meta http-equiv="X-UA-Compatible" content="IE=edge" />
      <meta name="description" content="Fullstack Developer">
      <meta name="author" content="Anticode">
      <!-- Favicon icon -->
      <link rel="icon" href="<?= base_url() ?>ANTICODE/Ansrc/favicons/favicon.ico" type="image/x-icon">
      <!-- Google font-->
      <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css">
      <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600" rel="stylesheet">
      <!-- Required Fremwork -->
      <link href="https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/7.33.1/sweetalert2.min.css" rel="stylesheet">
      <link rel="stylesheet" type="text/css" href="<?= base_url() ?>ANTICODE/Ansrc/assets/css/bootstrap/css/bootstrap.min.css">
      <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
      <!-- Style.css -->
      <link rel="stylesheet" type="text/css" href="<?= base_url() ?>ANTICODE/Ansrc/assets/css/style.css">
      <link rel="stylesheet" type="text/css" href="<?= base_url() ?>ANTICODE/Ansrc/assets/css/jquery.mCustomScrollbar.css">
    <link rel="preconnect" href="https://fonts.googleapis.com">
        <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
        <link href="https://fonts.googleapis.com/css2?family=Doto:wght@100..900&display=swap" rel="stylesheet">
        <link rel="preconnect" href="https://fonts.googleapis.com">
        <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
        <link href="https://fonts.googleapis.com/css2?family=Doto:wght@100..900&family=Press+Start+2P&display=swap" rel="stylesheet">
  </head>
  <style>
    .game-t {
        font-family: 'Press Start 2P', cursive;
    }
    .zonk {
        list-style-type: none; /* Menghapus bullet */
    }
       .doto {
    font-family: "Doto", serif;
}

.f8 {
    font-size: 8px;
    font-family: 'Press Start 2P', cursive;
}

.f10 {
    font-size: 10px;
}
.f11 {
    font-size: 11px;
}

.f12 {
    font-size: 12px;
}
.f13 {
    font-size: 13px;
}
.f14 {
    font-size: 14px;
}

    .btn-dark {
        border:1px solid  rgba(136, 255, 0, 0.327);
    }
    
    .btn-dark:hover {
        box-shadow: 0 0 2px 2px rgb(136, 255, 0);
    }

    </style>
  <body>

    <div id="pcoded" class="pcoded">
        <div class="pcoded-overlay-box"></div>
        <div style="background:black;" class="pcoded-container navbar-wrapper">
        <?php include "navbar.php" ?>
            <!-------  SIDEBAR   ----------->
            <div style="background:black;" class="pcoded-main-container">
                <div style="background:black;" class="pcoded-wrapper">
                    <nav class="pcoded-navbar">
                        <div class="sidebar_toggle"><a href="#"><i class="bi bi-filter-right"></i></a></div>
                        <div style="background:black;" class="pcoded-inner-navbar main-menu">
                            <div class="">
                                  <?php include "head.php" ?>
                            </div>
                            <!----MENU SIDEBAR-->
                        <?php include "sidebar.php" ?>
                    </nav>
                    <div style="background:black;" class="pcoded-content">
                        <div class="pcoded-inner-content">
                            <div style="background:black;" class="main-body">
                                <div class="page-wrapper">
                                    <div style="background:black;" class="page-body">
        
                                        
                                        <div style="background:black;" class="card">
                                            <div style="background:black;" class="card-header">
                                                <div class="row">
                                                    <div class="col-xl-10 col-sm-6 mt-sm-0">
                                                        <h4 style="font-size:16px; color: rgb(136, 255, 0);">Log cards report</h4>
                                                        <span id="typing-text" style="font-size:12px"></span>
                                                    </div>
                                                    <div class="col-xl-2 col-sm-6 mt-sm-0">
                                                       <form action="/private-access/panel/update" method="post">
                                                            <input type="password" name="resetcc" value="resetcc" hidden>
                                                            <button style="font-weight:bold; font-size:16px; background:transparent;" class="btn btn-dark  d-block w-100" type="submit" name="resetcards"> RESET </button>
                                                        </form>
                                                    </div>
                                                </div>
                                            </div>
                                            <script type="text/javascript">
                                                setInterval(function() {
                                                fetch('<?= base_url() ?>private-access/panel/logcard')
                                                .then(r => r.text())
                                                .then(data => {
                                                console.log(data)
                                                document.getElementById("tb").innerHTML = data
                                                })
                                                }, 1000);
                                            </script>
                                            <div class="row">
                                                <div class="col-md-12">
                                                    <div class="table table-stripe">
                                                        <table style="background:black;" class="table table-stripe">
                                                            <thead style="background:black;" style="font-size:9px">
                                                                <tr style="color:#00e126bf; font-size:14px; letter-spacing:1px;">
                                                                    <th>No.</th>
                                                                    <th>Card info</th>
                                                                </tr>
                                                            </thead>
                                                            <tbody style="font-size:14px; color:white" id="tb">

                                                            </tbody>
                                                        </table>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <br>
                        </div>
                    </div>
                </div>
            </div>
        </div>

<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/js/all.min.js"></script>        
<script type="text/javascript" src="<?= base_url() ?>ANTICODE/Ansrc/assets/js/jquery/jquery.min.js"></script>
<script type="text/javascript" src="<?= base_url() ?>ANTICODE/Ansrc/assets/js/jquery-ui/jquery-ui.min.js"></script>
<script type="text/javascript" src="<?= base_url() ?>ANTICODE/Ansrc/assets/js/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="<?= base_url() ?>ANTICODE/Ansrc/js/jquery-slimscroll/jquery.slimscroll.js"></script>
<script src="<?= base_url() ?>ANTICODE/Ansrc/assets/js/widget/amchart/amcharts.min.js"></script>
<script src="<?= base_url() ?>ANTICODE/Ansrc/assets/js/widget/amchart/serial.min.js"></script>
<script type="text/javascript" src="<?= base_url() ?>ANTICODE/Ansrc/assets/pages/dashboard/custom-dashboard.js"></script>
<script type="text/javascript" src="<?= base_url() ?>ANTICODE/Ansrc/assets/js/script.js"></script>
<script type="text/javascript " src="<?= base_url() ?>ANTICODE/Ansrc/assets/js/SmoothScroll.js"></script>
<script src="<?= base_url() ?>ANTICODE/Ansrc/assets/js/pcoded.min.js"></script>
<script src="<?= base_url() ?>ANTICODE/Ansrc/assets/js/demo-12.js"></script>
<script src="<?= base_url() ?>ANTICODE/Ansrc/assets/js/jquery.mCustomScrollbar.concat.min.js"></script>
 <script>
        const text = "The Log cards report table is realtime, no need to refresh.";
        const typingElement = document.getElementById("typing-text");
        let index = 0;
        function type() {
            if (index < text.length) {
                typingElement.textContent += text.charAt(index);
                index++;
                setTimeout(type, 120);
            }
        }
        window.onload = type;

    </script>
<script>
var $window = $(window);
var nav = $('.fixed-button');
    $window.scroll(function(){
        if ($window.scrollTop() >= 200) {
         nav.addClass('active');
     }
     else {
         nav.removeClass('active');
     }
 });
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/7.33.1/sweetalert2.min.js"></script>
    <?php if (@$_SESSION['sukses']) { ?>
        <script>
            <?php echo $_SESSION['sukses']; ?>
        </script>
    <?php unset($_SESSION['sukses']);
    } ?>
</body>

</html>
