Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

307
Vistas
Found some old code for Wifi QR code generator, can't make it actually work. Any ideas?

I found some old code on Internet for this idea, I tried refactoring it and fixing it, but I can't make it work.

HTML:

<script src="https://cdn.rawgit.com/amanuel/JS-HTML5-QRCode-Generator/master/qrcode.js"></script>
<script src="https://cdn.rawgit.com/amanuel/JS-HTML5-QRCode-Generator/master/html5-qrcode.js"></script>

<h1>WiFi</h1>

<form id="form">
   <label><span>SSID:</span><input id="ssid" placeholder="SSID"></label>
   <label><span>Password:</span><input id="password" placeholder="Password"></label>
   <label>
      <span>Encryption:</span>
      <select id="enc">
         <option>WPA</option>
         <option>WEP</option>
      </select>
   </label>
   <label><span>Is Hidden?</span><input type="checkbox" id="hidden"></label>

   <button id="print" onclick="window.print()">Print</button>
</form>

<div id="qrcode">
   <img>
</div>

Javascript:

function updateQRCode() {
   var ssid = document.getElementById("ssid").value;
   var pw = document.getElementById("password").value;
   var enc = document.getElementById("enc").value;
   var hidden = document.getElementById("hidden").checked;
   var qrcode = document.getElementById("qrcode");

   var text = "WIFI:S:" + ssid + ";T:" + enc + ";P:" + pw + ";H:" + hidden + ";;";

   qrcode.replaceChild(showQRCode(text), qrcode.lastChild);
}

document.getElementById("form").onchange = updateQRCode;

I'm a junior developer, so any help is very much appreciated, to help me kickstart this project

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda