2023-11-06 20:17:14 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
2024-04-12 14:07:48 +00:00
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
|
|
|
<meta name="description" content="" />
|
|
|
|
<meta name="author" content="" />
|
2023-11-06 20:17:14 +00:00
|
|
|
|
2024-04-12 14:07:48 +00:00
|
|
|
<title>Sistem Absensi - Halaman Scan</title>
|
2023-11-06 20:17:14 +00:00
|
|
|
|
|
|
|
<!-- Main Styles -->
|
2024-04-12 14:07:48 +00:00
|
|
|
<link rel="stylesheet" href="assets/styles/style-horizontal.min.css" />
|
2023-11-06 20:17:14 +00:00
|
|
|
|
|
|
|
<!-- mCustomScrollbar -->
|
2024-04-12 14:07:48 +00:00
|
|
|
<link rel="stylesheet" href="assets/plugin/mCustomScrollbar/jquery.mCustomScrollbar.min.css" />
|
2023-11-06 20:17:14 +00:00
|
|
|
|
|
|
|
<!-- Waves Effect -->
|
2024-04-12 14:07:48 +00:00
|
|
|
<link rel="stylesheet" href="assets/plugin/waves/waves.min.css" />
|
2023-11-06 20:17:14 +00:00
|
|
|
|
|
|
|
<!-- Sweet Alert -->
|
2024-04-12 14:07:48 +00:00
|
|
|
<link rel="stylesheet" href="assets/plugin/sweet-alert/sweetalert.css" />
|
2023-11-06 20:17:14 +00:00
|
|
|
|
|
|
|
<!-- Color Picker -->
|
2024-04-12 14:07:48 +00:00
|
|
|
<link rel="stylesheet" href="assets/color-switcher/color-switcher.min.css" />
|
|
|
|
</head>
|
2023-11-06 20:17:14 +00:00
|
|
|
|
2024-04-12 14:07:48 +00:00
|
|
|
<body>
|
2023-11-06 20:17:14 +00:00
|
|
|
<header class="fixed-header">
|
2024-04-12 14:07:48 +00:00
|
|
|
<div class="header-top">
|
|
|
|
<div class="container">
|
|
|
|
<div class="pull-left">
|
|
|
|
<a href="" class="logo">Sistem Absensi</a>
|
|
|
|
</div>
|
|
|
|
<!-- /.pull-left -->
|
|
|
|
|
|
|
|
<!-- /.pull-right -->
|
2023-11-06 20:17:14 +00:00
|
|
|
</div>
|
2024-04-12 14:07:48 +00:00
|
|
|
<!-- /.container -->
|
|
|
|
</div>
|
|
|
|
<!-- /.header-top -->
|
2023-11-06 20:17:14 +00:00
|
|
|
|
2024-04-12 14:07:48 +00:00
|
|
|
<!-- /.nav-horizontal -->
|
2023-11-06 20:17:14 +00:00
|
|
|
</header>
|
|
|
|
<!-- /.fixed-header -->
|
|
|
|
|
|
|
|
<div id="wrapper">
|
2024-04-12 14:07:48 +00:00
|
|
|
<div class="main-content container">
|
|
|
|
<div class="row small-spacing">
|
|
|
|
<div class="col-lg-4 col-md-4 col-xs-12">
|
|
|
|
<div class="box-content bg-warning text-white">
|
|
|
|
<h4 class="box-title">Loading...</h4>
|
2023-11-06 20:17:14 +00:00
|
|
|
</div>
|
2024-04-12 14:07:48 +00:00
|
|
|
<!-- /.box-content -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- create a button on center of this -->
|
2023-11-06 20:17:14 +00:00
|
|
|
|
2024-04-12 14:07:48 +00:00
|
|
|
<footer class="footer">
|
|
|
|
<ul class="list-inline">
|
|
|
|
<li>2023 © Naufal.</li>
|
|
|
|
<!-- <li><a href="#">Privacy</a></li>
|
2023-11-06 20:17:14 +00:00
|
|
|
<li><a href="#">Terms</a></li>
|
|
|
|
<li><a href="#">Help</a></li> -->
|
2024-04-12 14:07:48 +00:00
|
|
|
</ul>
|
|
|
|
</footer>
|
|
|
|
</div>
|
|
|
|
<!-- /.main-content -->
|
|
|
|
</div>
|
|
|
|
<!--/#wrapper -->
|
2023-11-06 20:17:14 +00:00
|
|
|
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
|
|
|
<!--[if lt IE 9]>
|
2024-04-12 14:07:48 +00:00
|
|
|
<script src="assets/script/html5shiv.min.js"></script>
|
|
|
|
<script src="assets/script/respond.min.js"></script>
|
|
|
|
<![endif]-->
|
2023-11-06 20:17:14 +00:00
|
|
|
<!--
|
|
|
|
================================================== -->
|
|
|
|
<!-- Placed at the end of the document so the pages load faster -->
|
|
|
|
<script src="assets/scripts/jquery.min.js"></script>
|
|
|
|
<script src="assets/scripts/modernizr.min.js"></script>
|
|
|
|
<script src="assets/plugin/bootstrap/js/bootstrap.min.js"></script>
|
|
|
|
<script src="assets/plugin/mCustomScrollbar/jquery.mCustomScrollbar.concat.min.js"></script>
|
|
|
|
<script src="assets/plugin/nprogress/nprogress.js"></script>
|
|
|
|
<script src="assets/plugin/sweet-alert/sweetalert.min.js"></script>
|
|
|
|
<script src="assets/plugin/waves/waves.min.js"></script>
|
|
|
|
<!-- Full Screen Plugin -->
|
|
|
|
<script src="assets/plugin/fullscreen/jquery.fullscreen-min.js"></script>
|
|
|
|
|
|
|
|
<script src="assets/scripts/main.min.js"></script>
|
|
|
|
<script src="assets/block/jquery.blockUI.js"></script>
|
|
|
|
<script>
|
2024-04-12 14:07:48 +00:00
|
|
|
$.blockUI({
|
|
|
|
message: "Sedang Proses Database",
|
|
|
|
css: {
|
|
|
|
border: "none",
|
|
|
|
padding: "15px",
|
|
|
|
backgroundColor: "#000",
|
|
|
|
"-webkit-border-radius": "10px",
|
|
|
|
"-moz-border-radius": "10px",
|
|
|
|
opacity: 0.5,
|
|
|
|
color: "#fff",
|
|
|
|
},
|
|
|
|
});
|
|
|
|
function checkScanStatus() {
|
|
|
|
// Make an AJAX request to the /scan_status route
|
|
|
|
$.ajax({
|
|
|
|
url: "http://127.0.0.1:5000/scan_status",
|
|
|
|
type: "GET",
|
|
|
|
dataType: "json",
|
|
|
|
success: function (data) {
|
|
|
|
// Handle the response data
|
|
|
|
console.log(data.scan_status);
|
|
|
|
// $("#result").text("Title: " + data.title);
|
|
|
|
if (data.scan_status == false) {
|
|
|
|
window.location.href = "http://127.0.0.1:5000/";
|
2023-11-06 20:17:14 +00:00
|
|
|
}
|
2024-04-12 14:07:48 +00:00
|
|
|
},
|
|
|
|
error: function (xhr, status, error) {
|
|
|
|
// Handle errors
|
|
|
|
console.log("Error: " + error);
|
|
|
|
},
|
2023-11-06 20:17:14 +00:00
|
|
|
});
|
2024-04-12 14:07:48 +00:00
|
|
|
}
|
2023-11-06 20:17:14 +00:00
|
|
|
|
2024-04-12 14:07:48 +00:00
|
|
|
// Periodically check the scan status every 2 seconds
|
|
|
|
setInterval(checkScanStatus, 2000);
|
2023-11-06 20:17:14 +00:00
|
|
|
</script>
|
2024-04-12 14:07:48 +00:00
|
|
|
</body>
|
|
|
|
</html>
|