This commit is contained in:
naielv
2025-08-11 21:59:23 +02:00
parent 09fa34007b
commit fe5c54ff3e
3 changed files with 22 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@@ -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>

View File

@@ -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);
}
}; };