Skip to content
Snippets Groups Projects
Commit 88c1fd5c authored by Rhys Nute's avatar Rhys Nute
Browse files

QR updates

parent 2d5716cc
No related branches found
No related tags found
1 merge request!27Qr codes
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
<meta name="viewpoint" content="width-device-width, initial-scale=1.0"> <meta name="viewpoint" content="width-device-width, initial-scale=1.0">
<link rel="stylesheet" href="qrstyle.css"> <link rel="stylesheet" href="qrstyle.css">
<title>QR Code</title> <title>QR Code</title>
<script src="html5-qrcode.min.js"></script> <script th:src="@{https://unpkg.com/html5-qrcode}" type="text/javascript"></script>
<script src="scripts/qr-script.js" class="domReady" type="text/javascript"></script> <script th:src="@{scripts/qr-script.js}" class="domReady"></script>
</head> </head>
<body> <body>
......
//qr-script file - R Nute //qr-script file - R Nute
import {Html5QrcodeScanner} from "html5-qrcode"; import {Html5QrcodeScanner} from "html5-qrcode";
import {Html5Qrcode} from "html5-qrcode"; import {Html5Qrcode} from "html5-qrcode";
function domReady(fn){ function domReady(fn){
if ( if (
document.readyState === "complete" || document.readyState === "complete" ||
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment