Spaces:
Running
Running
File size: 9,562 Bytes
f3d0444 7f4b895 f3d0444 7f4b895 f3d0444 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>FaceOnLive OpenKYC</title>
<link rel="shortcut icon" href="/static/img/favicon.ico">
<!-- material icons -->
<link
href="https://fonts.googleapis.com/css?family=Material+Icons|Material+Icons+Outlined|Material+Icons+Two+Tone|Material+Icons+Round|Material+Icons+Sharp"
rel="stylesheet">
<!-- Font Awesome -->
<link href="https://use.fontawesome.com/releases/v5.8.2/css/all.css" rel="stylesheet">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,700&display=swap" rel="stylesheet">
<!-- Bootstrap core CSS -->
<link href="/static/vendor/mdbootstrap/bootstrap.min.css" rel="stylesheet">
<!-- Material Design Bootstrap -->
<link href="/static/vendor/mdbootstrap/mdb.min.css" rel="stylesheet">
<!-- other css library based on page -->
<link rel="stylesheet" href="/static/vendor/croppie/croppie.min.css">
<!-- global css -->
<link href="/static/ui/scss/bundle.min.css" rel="stylesheet">
<!-- css based on page -->
<link rel="stylesheet" href="/static/ui/scss/ocr_file.css">
</head>
<body>
<div class="wrapper">
<!-- Page Loader -->
<div class="loader">
<div class="spinner-border" role="status">
<span class="sr-only"></span>
</div>
</div>
<!-- Header -->
<header>
<div class="header-left">
<div class="container">
<a href="/id_type/" class="btn btn-link" id="btn-back"><span
class="material-icons-outlined">arrow_back_ios</span></a>
</div>
</div>
<div class="header-middle">
<div class="container">
</div>
</div>
<div class="header-right">
<div class="container">
</div>
</div>
</header>
<!-- Content -->
<main>
<form method="post" id="form-ocr" autocomplete="off">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
<div class="row page-header">
<div class="col-12 text-center">
{% if id_type == 'ic_front' %}
ID Card - Front Side
{% elif id_type == 'ic_back' %}
ID Card - Back Side
{% else %}
Passport
{% endif %}
</div>
</div>
<div class="row page-subheader">
<div class="col-12">
<div class="default-container">
<p class="mb-0 text-center">
Frame your ID Document and capture.<br/>
All corners should be visible. Avoid the shadow zone.
</p>
<!--ol class="mb-0 pl-3">
<li>Environment is not dark or dimmed.</li>
<li>Text and/or image are visible and not cut-off.</li>
<li>Image is clear and not blurred.</li>
</ol-->
</div>
<div class="webcam-container text-center" style="display: none;">
Please adjust the ID to ensure all information is within the box.
</div>
</div>
</div>
<div class="row page-content">
<div class="col-12 d-flex justify-content-center">
<input type="hidden" name="ocr_file" id="id_ocr_file">
<div class="default-container">
{% if id_type == 'ic_front' %}
<lottie-player src="/static/img/lottie/ocr_id_front.json" background="transparent" speed="1"
style="width: 300px; height: 300px;" loop autoplay></lottie-player>
{% elif id_type == 'ic_back' %}
<lottie-player src="/static/img/lottie/ocr_id_back.json" background="transparent" speed="1"
style="width: 300px; height: 300px;" loop autoplay></lottie-player>
{% else %}
<lottie-player src="/static/img/lottie/ocr_passport.json" background="transparent" speed="1"
style="width: 300px; height: 300px;" loop autoplay></lottie-player>
{% endif %}
</div>
<div class="preview-container" style="display: none;">
<img id="img-preview">
</div>
</div>
</div>
<div class="row page-footer">
<div class="col-12">
<div class="row default-container">
<div class="col-6">
<label class="btn btn-outline-primary btn-side">
Upload
<input type="file" class="file-upload" accept="image/*" hidden>
</label>
</div>
<div class="col-6">
<label class="btn btn-primary btn-side">
Take
<input type="file" class="file-capture" accept="image/*" capture="camera" hidden>
</label>
</div>
</div>
<div class="row preview-container" style="display: none;">
<div class="col-6 mb-3 d-flex justify-content-center">
<label class="btn btn-outline-primary btn-side">
Retake
<input type="file" class="file-capture" accept="image/*" capture="camera" hidden>
</label>
</div>
<div class="col-6 mb-3 d-flex justify-content-center">
<button type="button" class="btn btn-primary btn-side" id="btn-next">Next</button>
</div>
</div>
</div>
</div>
</form>
</main>
<!-- Footer -->
<footer>
<div class="container powered">
<img src="/static/img/faceonlive.png" width="42" /> 
<div>
<span class="text-c-neutral">Powered by</span><br />
<a href="https://www.faceonlive.com" target="_blank" rel="noopener noreferrer">FaceOnLive</a>
</div>
</div>
</footer>
{% if error_model %}
<!-- Error Modal -->
<div class="modal fade auto-show" id="error-modal-0" data-backdrop="static" data-keyboard="false" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-sm">
<div class="modal-content">
<div class="modal-header">
<div class="modal-title mx-auto">Please Retake ID</div>
</div>
<div class="modal-body">
<p>Error parsing ID Document, please ensure there is no obstacles or glare and All corners should be visible.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary mx-auto" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
{% endif %}
</div>
<!-- django js translation -->
<script type="text/javascript" src="/static/jsi18n.js"></script>
<!-- data js -->
<!-- JQuery -->
<script type="text/javascript" src="/static/vendor/mdbootstrap/jquery.min.js"></script>
<!-- Bootstrap tooltips -->
<script type="text/javascript" src="/static/vendor/mdbootstrap/popper.min.js"></script>
<!-- Bootstrap core JavaScript -->
<script type="text/javascript" src="/static/vendor/mdbootstrap/bootstrap.min.js"></script>
<!-- MDB core JavaScript -->
<script type="text/javascript" src="/static/vendor/mdbootstrap/mdb.min.js"></script>
<!-- other js library based on page -->
<script type="text/javascript" src="/static/vendor/compressorjs/compressor.min.js"></script>
<script type="text/javascript" src="/static/vendor/croppie/croppie.min.js"></script>
<script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script>
<!-- global js -->
<script type="text/javascript" src="/static/ui/js/base.js"></script>
<!-- js based on page -->
<script type="text/javascript" src="/static/ui/js/ocr_file.js"></script>
</body>
</html> |