Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

301
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!