56 lines
1.5 KiB
HTML
56 lines
1.5 KiB
HTML
<html><head>
|
|
<meta http-equiv="content-type" content="text/html; charset=windows-1252">
|
|
<link rel="icon" type="image/x-icon" href="https://ipfs.copylaradio.com/ipfs/QmNwECbSL6xihpS2QLpts8a8Boekk3rEVGeySuzg83jTDA/favicon.ico">
|
|
<title>Astroport Ŋ1 - Ğ1 - IPFS</title>
|
|
<link rel="stylesheet" href="/ipfs/QmVuJCKVp57b3HzwDRAoURonaFwWTwvoqq2Am2JoSQhdPz/index_fichiers/demo.css">
|
|
<script src="G1PalPay_fichiers/jquery-3.6.3.min.js"></script>
|
|
<script src="G1PalPay_fichiers/instascan.min.js"></script>
|
|
</head>
|
|
<body>
|
|
<center>
|
|
<h1>SCANNEZ VOTRE QRCODE (CESIUM)</h1>
|
|
|
|
<video id="preview" style="transform: scaleX(-1);width: 240px;height: 240px;" autoplay="autoplay" class="active"></video>
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
let scanner = new Instascan.Scanner({ video: document.getElementById('preview') });
|
|
scanner.addListener('scan', function (content) {
|
|
alert(content);
|
|
$.ajax({
|
|
url: "http://astroport.localhost:1234",
|
|
data: "qrcode="+content,
|
|
type: 'GET'
|
|
});
|
|
//
|
|
// BORIS STUFF COMES HERE
|
|
|
|
});
|
|
|
|
Instascan.Camera.getCameras().then(function (cameras) {
|
|
|
|
if (cameras.length > 0) {
|
|
|
|
scanner.start(cameras[0]);
|
|
|
|
} else {
|
|
|
|
console.error('No cameras found.');
|
|
|
|
}
|
|
|
|
}).catch(function (e) {
|
|
|
|
console.error(e);
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
<h2> - Activez votre Capsule IPFS - </h2>
|
|
</center>
|
|
|
|
|
|
</body></html>
|