-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
215 lines (215 loc) · 13.9 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta content="IE=edge" http-equiv="X-UA-Compatible" />
<meta content="width=device-width, initial-scale=1" name="viewport" />
<link rel="manifest" href="manifest.json?v=202310211730">
<title>QR Code Generator</title>
<link rel="icon" type="image/png" sizes="16x16" href="static/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="static/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="48x48" href="static/favicon-48x48.png">
<link rel="apple-touch-icon" sizes="180x180" href="static/apple-touch-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="static/android-chrome-192x192.png">
<link rel="icon" type="image/png" sizes="512x512" href="static/android-chrome-512x512.png">
<meta name="theme-color" content="#212529">
<link crossorigin="anonymous" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" />
<link crossorigin="anonymous" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" rel="stylesheet" referrerpolicy="no-referrer" />
<link href="static/style.css?v=202310212056" rel="stylesheet" />
<script crossorigin="anonymous" src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script crossorigin="anonymous" src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js"></script>
<script crossorigin="anonymous" src="https://cdn.jsdelivr.net/npm/[email protected]/jquery.qrcode.min.js"></script>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container-fluid">
<a class="navbar-brand" href="./"><span aria-hidden="true" class="fas fa-qrcode"></span>
<span aria-hidden="true" class="fas fa-cogs"></span> QR Codes</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav me-auto mb-2 mb-lg-0"></ul>
<ul class="navbar-nav ms-auto">
<li class="nav-item">
<a class="nav-link" href="https://github.com/RAHB-REALTORS-Association/qrcodes" target="_blank" rel="noopener noreferrer">
<span aria-hidden="true" class="fab fa-github"></span> GitHub
</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container">
<div class="container bg-light p-5 my-3 rounded text-center">
<img src="static/qrcodes.png" alt="QR Codes" width="64px" />
<p class="lead">
A simple QR code generator supporting URL, Email, SMS, WiFi, Geotag, vCard and vCal.
</p>
</div>
<form class="mt-2" id="qrForm">
<div class="d-flex flex-wrap justify-content-center mb-3" id="qrTypeBtnGroup">
<button type="button" class="btn btn-primary btn-lg m-2" data-qrtype="URL"><i class="fas fa-globe"></i> URL</button>
<button type="button" class="btn btn-secondary btn-lg m-2" data-qrtype="Text"><i class="fas fa-font"></i> Text</button>
<button type="button" class="btn btn-secondary btn-lg m-2" data-qrtype="Email"><i class="fas fa-envelope"></i> Email</button>
<button type="button" class="btn btn-secondary btn-lg m-2" data-qrtype="SMS"><i class="fas fa-mobile"></i> SMS</button>
<button type="button" class="btn btn-secondary btn-lg m-2" data-qrtype="WiFi"><i class="fas fa-wifi"></i> WiFi</button>
<button type="button" class="btn btn-secondary btn-lg m-2" data-qrtype="Geotag"><i class="fas fa-map-marker-alt"></i> Geo</button>
<button type="button" class="btn btn-secondary btn-lg m-2" data-qrtype="vCard"><i class="fas fa-address-card"></i> vCard</button>
<button type="button" class="btn btn-secondary btn-lg m-2" data-qrtype="vCalendar"><i class="fas fa-calendar-alt"></i> vCal</button>
</div>
<div class="container-narrow">
<div id="urlDiv" class="mb-3">
<input class="form-control btn-lg" id="url" name="url" type="text" placeholder="Enter URL" />
</div>
<div id="textDiv" style="display: none">
<textarea class="form-control btn-lg mb-3" id="plainText" name="plainText" placeholder="Text"></textarea>
</div>
<div id="emailDiv" style="display: none">
<div class="mb-3">
<input class="form-control btn-lg" id="emailTo" name="emailTo" type="text" placeholder="To:" />
</div>
<div class="mb-3">
<input class="form-control btn-lg" id="emailSubject" name="emailSubject" type="text" placeholder="Subject" />
</div>
<div class="mb-3">
<textarea class="form-control btn-lg" id="emailBody" name="emailBody" placeholder="Body"></textarea>
</div>
</div>
<div id="smsDiv" style="display: none">
<div class="mb-3">
<input class="form-control btn-lg" id="smsNumber" name="smsNumber" type="text" placeholder="Number" />
</div>
<div class="mb-3">
<textarea class="form-control btn-lg" id="smsMessage" name="smsMessage" placeholder="Message"></textarea>
</div>
</div>
<div id="wifiDiv" style="display: none">
<div class="mb-3">
<input class="form-control btn-lg" id="ssid" name="ssid" type="text" placeholder="SSID" />
</div>
<div class="mb-3">
<input class="form-control btn-lg" id="password" name="password" type="text" placeholder="Password" />
</div>
<div class="mb-3">
<select class="form-select btn-lg" id="networkType" name="networkType">
<option value="WPA">WPA/WPA2</option>
<option value="WEP">WEP</option>
</select>
</div>
</div>
<div id="geotagDiv" style="display: none;">
<div class="mb-3">
<input class="form-control btn-lg" id="latitude" name="latitude" type="text" placeholder="Latitude" />
</div>
<div class="mb-3">
<input class="form-control btn-lg" id="longitude" name="longitude" type="text" placeholder="Longitude" />
</div>
</div>
<div id="vCardDiv" style="display: none;">
<div class="row">
<div class="col-md-6 mb-3">
<input class="form-control" id="firstName" name="firstName" type="text" placeholder="First Name" />
</div>
<div class="col-md-6 mb-3">
<input class="form-control" id="lastName" name="lastName" type="text" placeholder="Last Name" />
</div>
</div>
<div class="mb-3">
<input class="form-control" id="email" name="email" type="text" placeholder="Email" autocomplete="email" />
</div>
<div class="row">
<div class="col-md-6 mb-3">
<input class="form-control" id="phone" name="phone" type="text" placeholder="Phone" autocomplete="tel" />
</div>
<div class="col-md-6 mb-3">
<input class="form-control" id="mobile" name="mobile" type="text" placeholder="Mobile" />
</div>
</div>
<div class="mb-3">
<input class="form-control" id="street" name="street" type="text" placeholder="Street" />
</div>
<div class="row">
<div class="col-md-6 mb-3">
<input class="form-control" id="city" name="city" type="text" placeholder="City" />
</div>
<div class="col-md-6 mb-3">
<input class="form-control" id="state" name="state" type="text" placeholder="State" />
</div>
</div>
<div class="row">
<div class="col-md-6 mb-3">
<input class="form-control" id="zip" name="zip" type="text" placeholder="Zip" />
</div>
<div class="col-md-6 mb-3">
<input class="form-control" id="country" name="country" type="text" placeholder="Country" autocomplete="country" />
</div>
</div>
<div class="row">
<div class="col-md-6 mb-3">
<input class="form-control" id="company" name="company" type="text" placeholder="Company" autocomplete="organization" />
</div>
<div class="col-md-6 mb-3">
<input class="form-control" id="jobTitle" name="jobTitle" type="text" placeholder="Job Title" />
</div>
</div>
<div class="mb-3">
<input class="form-control" id="website" name="website" type="text" placeholder="Website" />
</div>
</div>
<div id="vCalendarDiv" style="display: none;">
<div class="mb-2">
<input class="form-control" id="eventName" name="eventName" type="text" placeholder="Event Name" />
</div>
<div class="row">
<label class="col-md-12 mb-1 ms-1" for="startDate">Start:</label>
<div class="col-md-6 mb-2">
<input class="form-control" id="startDate" name="startDate" type="date" placeholder="Start Date" />
</div>
<div class="col-md-6 mb-2">
<input class="form-control" id="startTime" name="startTime" type="time" placeholder="Start Time" />
</div>
</div>
<div class="row">
<label class="col-md-12 mb-1 ms-1" for="endDate">End:</label>
<div class="col-md-6 mb-3">
<input class="form-control" id="endDate" name="endDate" type="date" placeholder="End Date" />
</div>
<div class="col-md-6 mb-3">
<input class="form-control" id="endTime" name="endTime" type="time" placeholder="End Time" />
</div>
</div>
<div class="mb-3">
<input class="form-control" id="timezone" name="timezone" type="text" placeholder="Timezone" />
</div>
<div class="mb-3">
<input class="form-control" id="organizer" name="organizer" type="text" placeholder="Organizer" />
</div>
<div class="mb-3">
<input class="form-control" id="location" name="location" type="text" placeholder="Location" />
</div>
<div class="mb-3">
<input class="form-control" id="eventUrl" name="eventUrl" type="text" placeholder="URL" />
</div>
<div class="mb-3">
<input class="form-control" id="description" name="description" type="text" placeholder="Description" />
</div>
</div>
<div class="d-flex mt-4">
<button class="btn btn-primary btn-lg ms-auto btn-generate" onclick="generateQRCode()" type="button">
Generate QR <i class="fas fa-qrcode"></i>
</button>
</div>
</div>
</form>
<div id="qrcode" class="my-4 d-flex justify-content-center container-narrow"></div>
<!-- Scroll to Top Button -->
<div class="scroll-to-top position-fixed bottom-0 end-0 me-4 mb-5">
<a id="scrollToTopButton" class="js-scroll-trigger d-block text-center text-white rounded-circle p-2 fade-out">
<i class="fas fa-angle-up fa-2x"></i>
</a>
</div>
</div>
<script src="static/generator.js?v=202310212056"></script>
</body>
</html>