forked from samotari/crypto-terminal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
246 lines (228 loc) · 8.98 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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
<!DOCTYPE html>
<html class="no-js">
<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">
<title>CryptoTerminal</title>
<link href="css/all.min.css" rel="stylesheet">
<!-- favicon -->
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="images/favicon/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="images/favicon/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="images/favicon/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="images/favicon/apple-touch-icon-144x144.png">
<link rel="apple-touch-icon-precomposed" sizes="60x60" href="images/favicon/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="images/favicon/apple-touch-icon-120x120.png">
<link rel="apple-touch-icon-precomposed" sizes="76x76" href="images/favicon/apple-touch-icon-76x76.png">
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="images/favicon/apple-touch-icon-152x152.png">
<link rel="icon" type="image/png" href="images/favicon/favicon-196x196.png" sizes="196x196">
<link rel="icon" type="image/png" href="images/favicon/favicon-96x96.png" sizes="96x96">
<link rel="icon" type="image/png" href="images/favicon/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="images/favicon/favicon-16x16.png" sizes="16x16">
<link rel="icon" type="image/png" href="images/favicon/favicon-128.png" sizes="128x128">
<meta name="application-name" content=" ">
<meta name="msapplication-TileColor" content="#FFFFFF">
<meta name="msapplication-TileImage" content="images/favicon/mstile-144x144.png">
<meta name="msapplication-square70x70logo" content="images/favicon/mstile-70x70.png">
<meta name="msapplication-square150x150logo" content="images/favicon/mstile-150x150.png">
<meta name="msapplication-wide310x150logo" content="images/favicon/mstile-310x150.png">
<meta name="msapplication-square310x310logo" content="images/favicon/mstile-310x310.png">
</head>
<body>
<div id="app"></div>
<noscript>
<p class="page-description">CryptoTerminal requires JavaScript to function.</p>
</noscript>
<script type="text/html" id="template-main">
<div id="header">
<a class="header-button menu"></a>
<a class="header-button home" href="#home"></a>
</div>
<div id="menu">
<a class="menu-item" href="#settings">Settings</a>
<a class="menu-item" href="#payment-history">Payments History</a>
</div>
<div id="menu-cover"></div>
<div id="view">
<div id="view-content"></div>
</div>
<div id="message">
<div id="message-inner">
<div id="message-content"></div>
</div>
</div>
</script>
<script type="text/html" id="template-settings">
<h2 class="page-title">Settings</h2>
<form>
<div class="form">
<div class="form-error error"></div>
<div class="form-group settings">
<div class="form-group-label">General settings</div>
{{#each settings}}
<div class="form-row">
<label for="settings-{{name}}" class="form-label">{{label}}</label>
{{#switch type}}
{{#case "select" break=true}}
<select class="form-field" id="settings-{{key}}" name="{{name}}">
{{#each options}}
<option{{#if selected}} selected{{/if}} value="{{key}}">{{label}}</option>
{{/each}}
</select>
{{/case}}
{{#case "password" break=true}}
<input type="password" name="{{name}}" value="{{value}}">
{{/case}}
{{#default}}
<input type="text" name="{{name}}" value="{{value}}">
{{/default}}
{{/switch}}
</div>
{{/each}}
</div>
<div class="form-group acceptCryptoCurrencies">
<div class="form-group-label">Which currencies do you want to accept?</div>
{{#each paymentMethods}}
<input id="settings-acceptCryptoCurrencies-{{key}}" type="checkbox" name="acceptCryptoCurrencies[]" value="{{key}}"{{#if accepted}} checked{{/if}}>
<label for="settings-acceptCryptoCurrencies-{{key}}" class="button payment-method {{key}}"></label>
{{/each}}
</div>
{{#each paymentMethods}}
<div class="form-group {{key}}{{#if accepted}} accepted{{/if}}">
<div class="form-group-label">{{label}}</div>
{{#each settings}}
<div class="form-row">
<label for="settings-{{../key}}-{{name}}" class="form-label">{{label}}</label>
{{#switch type}}
{{#case "select" break=true}}
<select id="settings-{{../key}}-{{name}}" name="{{../key}}.{{name}}">
{{#each options}}
<option{{#if selected}} selected{{/if}} value="{{key}}">{{label}}</option>
{{/each}}
</select>
{{/case}}
{{#case "password" break=true}}
<input id="settings-{{../key}}-{{name}}" class="form-field" name="{{../key}}.{{name}}" type="password" value="{{value}}">
{{/case}}
{{#default}}
<input id="settings-{{../key}}-{{name}}" class="form-field" name="{{../key}}.{{name}}" type="text" value="{{value}}">
{{/default}}
{{/switch}}
</div>
{{/each}}
</div>
{{/each}}
<div class="form-buttons">
<input class="button form-button save" type="submit" value="Save">
<div class="success"></div>
</div>
</div>
</form>
</script>
<script type="text/html" id="template-pay-enter-amount">
<p class="page-description">Enter amount to be paid</p>
{{> amount}}
<div class="error"></div>
{{> numpad}}
<a class="button continue">Continue</a>
</script>
<script type="text/html" id="template-pay-choose-method">
<p class="page-description">Select payment method</p>
<div class="select-payment-method">
{{#each paymentMethods}}
<a class="button payment-method {{key}}" data-payment-method="{{key}}"></a>
{{/each}}
</div>
<div class="secondary-controls">
<a class="button cancel">Cancel</a>
</div>
</script>
<script type="text/html" id="template-payment-confirmation">
<p class="page-description">Payment successful</p>
<div class="payment-confirmation">
<p>Thank you, the payment has been received</p>
</div>
<div class="secondary-controls">
<a class="button done">Done</a>
</div>
</script>
<script type="text/html" id="template-pay-address">
{{> amount}}
<div class="address-qr-code"></div>
<p class="page-description">Scan the QR code to pay</p>
<div class="address-text"></div>
<div class="secondary-controls">
<a class="button cancel">Cancel</a>
</div>
</script>
<script type="text/html" id="template-pay-success">
<h2 class="page-title">Payment Received</h2>
<p class="page-description">Thank you</p>
</script>
<script type="text/html" id="template-amount">
<div class="amount-wrap">
<div class="amount display">
<div class="amount-value">{{amount.display.value}}</div>
<div class="amount-currency">{{amount.display.currency}}</div>
</div>
<div class="amount crypto">
<div class="amount-value">{{amount.crypto.value}}</div>
<div class="amount-currency">{{amount.crypto.currency}}</div>
</div>
</div>
</script>
<script type="text/html" id="template-numpad">
<div class="numpad">
<a class="numpad-key" data-value="1">1</a>
<a class="numpad-key" data-value="2">2</a>
<a class="numpad-key" data-value="3">3</a>
<a class="numpad-key" data-value="4">4</a>
<a class="numpad-key" data-value="5">5</a>
<a class="numpad-key" data-value="6">6</a>
<a class="numpad-key" data-value="7">7</a>
<a class="numpad-key" data-value="8">8</a>
<a class="numpad-key" data-value="9">9</a>
<a class="numpad-key" data-value=".">.</a>
<a class="numpad-key" data-value="0">0</a>
<a class="numpad-key backspace"><</a>
</div>
</script>
<script type="text/html" id="template-payment-history">
<h2 class="page-title">Payments History</h2>
<div class="payment-history-list">
{{#each payments}}
<div class="payment-history-item" data-payment-id={{id}}>
{{#if confirmed}}
<span class="payment-history-confirmation-circle payment-history-confirmed"></span>
{{else}}
<span class="payment-history-confirmation-circle payment-history-unconfirmed"></span>
{{/if}}
<div class="payment-history-item-body">
<p>{{formatDate timestamp "lll"}}</p>
<P class="payment-history-item-amount">{{amount}} {{currency}}</P>
</div>
</div>
{{/each}}
</div>
</script>
<script type="text/html" id="template-payment-details">
<h2 class="page-title">Payment Details</h2>
{{#if confirmed}}
<div class="payment-details-confirmation-circle payment-details-confirmed">
<span>✓</span><span>Confirmed</span>
</div>
{{else}}
<div class="payment-details-confirmation-circle payment-details-unconfirmed">
<span>Unconfrimed</span>
</div>
{{/if}}
<div class="payment-details-elements">
<span>Date</span>
<p>{{formatDate timestamp "llll"}}</p>
<span>Amount</span>
<p>{{amount}} {{currency}}</p>
</div>
</script>
<script src="js/all.js"></script>
</body>
</html>