-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
170 lines (159 loc) · 6.93 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
<html>
<head>
<title>Tangle Frost - IOTA QR Sandbox</title>
<meta charset="UTF-8" />
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet">
<style>
.qr-text {
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
font-size: 5px;
line-height: 1;
}
</style>
</head>
<body class="container">
<br/>
<div class="d-flex">
<img src="./images/logo.png" />
<div class="flex-fill ml-3">
<h3>Tangle Frost</h3>
<div>IOTA QR Sandbox</div>
</div>
</div>
<div class="row">
<div class="col">
<hr/>
</div>
</div>
<div class="row">
<div class="col">
<p>Demonstration of the IOTA QR Code generation library
<a href="https://github.com/tangle-frost/iota-qr-lib" target="_blank">https://github.com/tangle-frost/iota-qr-lib</a>
</p>
<p>Use the forms below to generate QR codes for your data.</p>
<p>
<b>Please note Trinity wallet does not yet consume the Amount or Tag fields for Payment Data.</b>
<br/> See
<a href="https://docs.iota.works/trinity/information/qr" target="_blank">https://docs.iota.works/trinity/information/qr</a> for more details.
</p>
</div>
</div>
<div class="row">
<div class="col">
<hr/>
</div>
</div>
<div class="row">
<div class="col">
<h2>Payment Data</h2>
<p>Enter your data in the form to generate a QR code for Payment Data.</p>
<div class="form-group form-inline">
<label for="testAddress">Address (Trytes) </label>
<input class="form-control form-control-sm" id="testAddress" value="" />
</div>
<div class="form-group form-inline">
<label for="testAmount">Amount (IOTA) </label>
<input class="form-control form-control-sm" id="testAmount" value="" />
</div>
<div class="form-group form-inline">
<label for="testTag">Tag (Trytes) </label>
<input class="form-control form-control-sm" id="testTag" value="" />
</div>
<div class="form-group form-inline">
<label for="testMessage">Message (Plain Text) </label>
<input class="form-control form-control-sm" id="testMessage" value="" />
</div>
<div class="form-group form-inline">
<label for="testRenderType">Render Type </label>
<select class="form-control form-control-sm" id="testRenderType">
<option>jpg</option>
<option>png</option>
<option>svg</option>
<option>txt</option>
<option>canvas</option>
</select>
</div>
<div class="form-group form-inline">
<label for="testTypeNumber">QR Type Number (0 for auto) </label>
<input class="form-control form-control-sm" id="testTypeNumber" value="16" />
</div>
<div class="form-group form-inline">
<label for="testCellSize">Cell Size </label>
<input class="form-control form-control-sm" id="testCellSize" value="5" />
</div>
<div class="form-group form-inline">
<label for="testMarginSize">Margin Size </label>
<input class="form-control form-control-sm" id="testMarginSize" value="10" />
</div>
<div class="form-group form-inline">
<label for="testForeground">Forground Color </label>
<input class="form-control form-control-sm" id="testForeground" value="#000000" />
</div>
<div class="form-group form-inline">
<label for="testBackground">Background Color </label>
<input class="form-control form-control-sm" id="testBackground" value="#FFFFFF" />
</div>
<button class="btn btn-primary" id="btnPaymentData">Generate QR Code for Payment Data</button>
</div>
<div class="col">
<h2 for="outputQR2">Result</h2>
<div id="outputQR">No result generated yet.</div>
</div>
</div>
<div class="row">
<div class="col">
<hr/>
</div>
</div>
<div class="row">
<div class="col">
<h2>Address Only</h2>
<p>Enter your data in the form to generate a QR code for Address.</p>
<div class="form-group form-inline">
<label for="testAddress2">Address (Trytes) </label>
<input class="form-control form-control-sm" id="testAddress2" value="" />
</div>
<div class="form-group form-inline">
<label for="testRenderType2">Render Type </label>
<select class="form-control form-control-sm" id="testRenderType2">
<option>jpg</option>
<option>png</option>
<option>svg</option>
<option>txt</option>
<option>canvas</option>
</select>
</div>
<div class="form-group form-inline">
<label for="testCellSize2">Cell Size </label>
<input class="form-control form-control-sm" id="testCellSize2" value="5" />
</div>
<div class="form-group form-inline">
<label for="testMarginSize2">Margin Size </label>
<input class="form-control form-control-sm" id="testMarginSize2" value="10" />
</div>
<div class="form-group form-inline">
<label for="testForeground2">Forground Color </label>
<input class="form-control form-control-sm" id="testForeground2" value="#000000" />
</div>
<div class="form-group form-inline">
<label for="testBackground2">Background Color </label>
<input class="form-control form-control-sm" id="testBackground2" value="#FFFFFF" />
</div>
<button class="btn btn-primary" id="btnAddress">Generate QR Code for Address</button>
</div>
<div class="col">
<h2 for="outputQR2">Result</h2>
<div id="outputQR2">No result generated yet.</div>
</div>
</div>
<div class="row">
<div class="col">
<hr/>
<p>You can find the original source for this sandbox at
<a href="https://github.com/tangle-frost/iota-qr-sandbox" target="_blank">https://github.com/tangle-frost/iota-qr-sandbox</a>
</p>
</div>
</div>
<script src="src/index.ts"></script>
</body>
</html>