-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
59 lines (50 loc) · 2.13 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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<link
href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
rel="stylesheet">
<title>Gerador de QR Code</title>
<link rel="stylesheet" href="src/style.css">
<script src="src/script.js"></script>
</head>
<body>
<script src="https://cdn.rawgit.com/davidshimjs/qrcodejs/gh-pages/qrcode.min.js"></script>
<div class="form">
<h1>Gerador de QR Code</h1>
<div class="qr-animation">
<div class="qr-code"></div>
</div>
<form>
<input type="url" id="website" name="website" placeholder="Cole a URL aqui" required />
<div id="qrcode-container">
<div id="qrcode" class="qrcode"></div>
</div>
<div id="custom-alert" class="custom-alert">
<div class="alert-content">
<i class="fa-solid fa-triangle-exclamation icon-yellow"></i>
<p id="alert-message">Insira uma URL válida na página "Gerador de QR Code".</p>
<button onclick="closeAlert()">OK</button>
</div>
</div>
<button type="button" id="new-qrcode-btn" style="display: none;" onclick="reloadPage()">
<i class="fa-solid fa-repeat"></i> GERAR NOVO QR CODE
</button>
<button type="button" onclick="generateQRCode()">GERAR QR CODE</button>
<div id="card">
<h3>
<i class="fa-solid fa-qrcode"></i> Gerador de QR Code
</h3>
<p>Este gerador de QR Code permite que você crie códigos QR a partir de qualquer URL. Basta inserir a URL
desejada na caixa de texto acima e clicar no botão 'Gerar QR Code'. </p>
</div>
</form>
</div>
</body>
</html>