-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
61 lines (61 loc) · 2.33 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="description" content="Generate a Wi-Fi QR Code to make connecting to your internet easier. The code is generated entirely clientside by minimal JavaScript to maintain your security. Open source project.">
<title>Wi-Fi QR Code Generator</title>
<link rel="icon" href="./favicon.png" sizes="16x16 32x32 64x64 128x128" type="image/png">
<link rel="stylesheet" href="./main.css">
</head>
<body>
<header class="text-center">
<h1>Wi-Fi QR Code Generator</h1>
</header>
<noscript>
<p class="text-center">This page requires JavaScript to generate QR Codes. Is it disabled?</p>
</noscript>
<main>
<form>
<label>
SSID
<input placeholder="Network name" name="ssid" type="text" minlength="1" maxlength="32" required>
</label>
<label>
Password
<input placeholder="Network password" name="pass" type="password">
</label>
<label>
Security Protocol
<select name="protocol">
<option value="WPA">WPA/WPA2</option>
<option value="WEP">WEP</option>
<option value="nopass">No Password</option>
</select>
</label>
<label>
Hidden SSID
<input name="hidden" type="Checkbox" value="true">
</label>
<button type="submit">Generate</button>
</form>
<section class="output">
<figure class="code"></figure>
<button class="print center">Print</button>
</section>
</main>
<footer class="text-center">
For your security:
<ul>
<li>Minimal and readable JavaScript</li>
<li>One dependency of <a href="https://github.com/soldair/node-qrcode">node-qrcode</a></li>
<li>Hosted with GitHub pages</li>
</ul>
<p>Source: <a href="https://github.com/jamsinclair/wifiqr">https://github.com/jamsinclair/wifiqr</a></p>
<p><strong>QR Code</strong> is registered trademark of DENSO WAVE INCORPORATED</p>
</footer>
<script src="./qrcode.min.js" integrity="sha384-0RsG1yo/crf/1Qc14sho26SXXOTngNCjgJw7fuvXBt9W/OChF/Ijx+aUuBDqQwEk"></script>
<script src="./main.js" integrity="sha384-EYeOBw9mm+0qcv4B+6R992OUXSUilR37mAf02NIa07ihoxS8RV94eCFcRy0uRs1M"></script>
</body>
</html>