Skip to content

Instantly share code, notes, and snippets.

@suzukieng
Created November 7, 2023 08:43
Show Gist options
  • Save suzukieng/84c5966934a0dbfca86e65e45333184b to your computer and use it in GitHub Desktop.
Save suzukieng/84c5966934a0dbfca86e65e45333184b to your computer and use it in GitHub Desktop.
PDF417 sample layout
<html lang="en">
<head>
<title>PDF417 Age Check</title>
<link rel="stylesheet" type="text/css" href="styles.css"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
</head>
<body>
<div class="container">
<!-- this is where the barcode scanner will live -->
</div>
<dialog id="success" class="success-popup">
<h1 class="popup-name"></h1>
<h2 class="popup-age"></h2>
<form method="dialog">
<button autofocus class="popup-button">OK</button>
</form>
</dialog>
<dialog id="reject" class="reject-popup">
<h1 class="popup-name"></h1>
<h2 class="popup-age"></h2>
<form method="dialog">
<button autofocus class="popup-button">OK</button>
</form>
</dialog>
<!-- our app code -->
<script type="module" src="index.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment