-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
121 lines (112 loc) · 6.16 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>QR Code Generator</title>
<script type="module" src="out.js"></script>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor" crossorigin="anonymous">
</head>
<body>
<div class="container-sm mt-3 mb-3">
<div class="card">
<div class="card-header">
Create Cheer Box Labels
</div>
<div class="card-body">
<p class="col text-center" style="font-size: 14px;">
This webpage generates printable QR code labels for Cheer Boxes. Box details can be provided by
exporting the "cheerbox_master" spreadsheet or by copying and pasting specific rows (note: the
header <em>must</em> be included in your selection when you copy, so consider using filters to
limit the rows included in your selection).
</p>
<div class="row">
<div class="col-md-6 p-3">
<h4 class="text-center">Upload <small class="text-muted">from Excel</small></h4>
<div class="mb-3 mt-4 row">
<div class="card">
<div class="card-body">
<div class="p-3">
<input class="form-control form-control-lg" id="exportFileInput" type="file" accept=".xlsx">
</div>
<ol>
<li>Open the "cheerbox_master" Excel spreadsheet</li>
<li>Navigate to "File" > "Save As" > "Download a Copy"</li>
<li>Click the file upload above and select the just-downloaded ".xlsx" file</li>
</ol>
</div>
</div>
</div>
</div>
<div class="col-md-6 p-3">
<h4 class="text-center">Paste <small class="text-muted">from Excel</small></h4>
<div class="mb-3 mt-4 row">
<div class="card">
<div class="card-body">
<div class="p-3">
<div class="input-group input-group-lg">
<input id="exportPasteInput" type="text" class="form-control" placeholder="Click here and paste rows">
</div>
</div>
<ol>
<li>Open the "cheerbox_master" spreadsheet and "qr_export" sheet</li>
<li>Select one or more rows in the spreadsheet and copy them with CTRL+C</li>
<li>Click into the text field above and paste with CTRL+V</li>
</ol>
</div>
</div>
</div>
</div>
</div>
<div class="d-flex justify-content-center">
<button type="submit" id="createLabels" class="btn btn-primary btn-lg">Create Cheer Box Labels</button>
</div>
<hr />
<div class="container" style="max-height: 200px; overflow-y: auto;">
<table class="table table-sm" id="previewTable">
<thead>
<tr>
<th>Code</th>
<th>Phase</th>
<th>Volunteer</th>
<th>Last Name</th>
<th>First Name</th>
<th>Address</th>
<th>City</th>
<th>State</th>
<th>Zip Code</th>
</tr>
</thead>
<tbody id="previewTableBody"></tbody>
</table>
<div id="previewTableText" class="text-muted " style="text-align: center;">
<em>A preview of your export data will appear here.</em>
</div>
</div>
<hr />
<p class="col text-center" style="font-size: 14px;">
This webpage will generate labels for the dimensions specified below.
</p>
<div class="d-flex justify-content-center">
<div class="row">
<label class="col-sm-4 col-form-label">Label Dimensions:</label>
<div class="col-sm-4">
<div class="input-group">
<input id="labelWidth" type="text" class="form-control" placeholder="Width (inches)">
<span class="input-group-text">inches</span>
</div>
</div>
<div class="col-sm-4">
<div class="input-group">
<input id="labelHeight" type="text" class="form-control" placeholder="Height (inches)">
<span class="input-group-text">inches</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="renderOutputContainer" style="display: none"></div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-pprn3073KE6tl6bjs2QrFaJGz5/SUsLqktiwsUTF55Jfv3qYSDhgCecCxMW52nD2" crossorigin="anonymous"></script>
</body>
</html>