update
This commit is contained in:
1
assets/static/qrcode/html5-qrcode.min.js
vendored
Normal file
1
assets/static/qrcode/html5-qrcode.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -103,6 +103,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<script src="static/showdown.min.js"></script>
|
<script src="static/showdown.min.js"></script>
|
||||||
<script src="static/qrcode/bwip-min.js"></script>
|
<script src="static/qrcode/bwip-min.js"></script>
|
||||||
|
<script src="static/qrcode/html5-qrcode.min.js"></script>
|
||||||
<script src="static/jquery.js"></script>
|
<script src="static/jquery.js"></script>
|
||||||
<script src="static/gun.js"></script>
|
<script src="static/gun.js"></script>
|
||||||
<script src="static/webrtc.js"></script>
|
<script src="static/webrtc.js"></script>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
PAGES.index = {
|
PAGES.index = {
|
||||||
//navcss: "btn1",
|
//navcss: "btn1",
|
||||||
Title: "Inicio",
|
Title: "Inicio",
|
||||||
index: function () {
|
index: function() {
|
||||||
container.innerHTML = `
|
container.innerHTML = `
|
||||||
<h1>¡Hola, ${SUB_LOGGED_IN_DETAILS.Nombre}!</h1>
|
<h1>¡Hola, ${SUB_LOGGED_IN_DETAILS.Nombre}!</h1>
|
||||||
<em>Utiliza el menú superior para abrir un modulo</em>
|
<em>Utiliza el menú superior para abrir un modulo</em>
|
||||||
@@ -9,4 +9,22 @@ PAGES.index = {
|
|||||||
<button class="btn1" onclick="LogOutTeleSec()">Cerrar sesión</button>
|
<button class="btn1" onclick="LogOutTeleSec()">Cerrar sesión</button>
|
||||||
`;
|
`;
|
||||||
},
|
},
|
||||||
|
edit: function(mid) {
|
||||||
|
var qrscan = safeuuid()
|
||||||
|
container.innerHTML = `
|
||||||
|
<h1>Buscar con Aztec</h1>
|
||||||
|
<div id="${qrscan}"></div>
|
||||||
|
<br><br>`;
|
||||||
|
const html5QrCode = new Html5Qrcode(
|
||||||
|
qrscan, { formatsToSupport: [Html5QrcodeSupportedFormats.AZTEC] });
|
||||||
|
const qrCodeSuccessCallback = (decodedText, decodedResult) => {
|
||||||
|
/* handle success */
|
||||||
|
alert(decodedText)
|
||||||
|
html5QrCode.stop()
|
||||||
|
};
|
||||||
|
const config = { fps: 10, qrbox: { width: 250, height: 250 } };
|
||||||
|
|
||||||
|
// If you want to prefer front camera
|
||||||
|
html5QrCode.start({ facingMode: "user" }, config, qrCodeSuccessCallback);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
Reference in New Issue
Block a user