-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
84 lines (73 loc) · 3.31 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE html>
<html lang="en">
<head>
<title>gen QRCODE</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#222" />
<link rel="icon" type="image/x-icon" href="engine/barcode.png">
<link rel="stylesheet" href="engine/bulma-1.0.2.min.css">
<link rel="stylesheet" href="engine/style.css">
<script type="text/javascript" src="engine/qrcode.min.js"></script>
</head>
<body>
<section class="hero is-fullheight">
<div class="hero-body">
<div class="container">
<div class="columns">
<div class="column">
<div class="gen-intro">
<img src="engine/barcode.png">
<h1 class="title is-1 color5">gen QRCODE</h1>
<p>
user interface for generating qr codes with custom links in simple steps. the qr code does not expire and can be used wherever you need. based on <a href="https://github.com/davidshimjs" target="_blank">@davidshimjs</a> code.
</p>
<p>
you need to host your content separately.
</p>
</div>
<div class="gen-form">
<form id="gen">
<label class="label">insert your link</label>
<input type="text" id="genInput" class="input" placeholder="Add your link here..." />
<div class="has-text-centered">
<button type="submit" class="button is-large">generate</button>
</div>
</form>
</div>
</div>
<div class="column">
<div class="gen-result">
<h1 class="title is-3 color2">RESULT</h1>
<h2 class="subtitle is-5">
click with right button or touch and press to save image
<br>Resolution: 2000 x 2000px
<br>Format: .PNG
</h2>
<div id="qrcode" class="box hero is-light"></div>
<p>redirecting to </p>
<p class="tag is-warning" id="genLink">https://fuoricorp.com</p>
</div>
</div>
</div>
</div>
</div>
</section>
<script type="text/javascript">
var qrcode = new QRCode("qrcode", {
text: "fuoricorp.com",
width: 2000,
height: 2000,
colorDark: "#000000",
colorLight: "#ffffff",
correctLevel: QRCode.CorrectLevel.H
});
document.getElementById("gen").addEventListener("submit", function(event) {
event.preventDefault();
var link = document.getElementById("genInput").value;
qrcode.makeCode(link);
document.getElementById("genLink").innerText = "Redirecting to: " + link;
});
</script>
</body>
</html>