-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
187 lines (142 loc) · 8.44 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="ctp_style.css"/>
<link rel="stylesheet" href="https://djqizrxa6f10j.cloudfront.net/ecwid-sdk/css/1.3.2/ecwid-app-ui.css"/>
<script src="https://djqizrxa6f10j.cloudfront.net/ecwid-sdk/js/1.2.5/ecwid-app.js"></script>
</head>
<body class='normalized'>
<!-- Back button block START -->
<div onclick="goBack();" class="content-control-menu-nav" style="">
<a class="horizontal-icolink icolink-small icolink-prepend">
<span class="icon-arr-left"></span> <span class="gwt-InlineLabel">BACK</span>
</a>
</div>
<!-- Back button block END -->
<!-- Main app block START -->
<div class="settings-page main">
<div class="settings-page__header">
<div class="settings-page__titles settings-page__titles--left">
<h1 class="settings-page__title">Cointopay.com Payment Application</h1>
<div class="settings-page__subtitle">Supported for Ecwid.com</div>
</div>
</div>
<!-- APP SETTINGS AREA START -->
<div class="settings-page__section settings" style="padding-bottom: 0.1px">
<div class="settings-page__titles settings-page__titles--left">
<h2 class="settings-page__title"></h2>
<div class="settings-page__subtitle"></div>
</div>
<div class="named-area">
<div class="named-area__header">
<div class="named-area__titles"><h4 class="named-area__title h4">Set up the application</h4>
<span class="named-area__subtitle">Please, provide the necessary information to start receiving payments from Cointopay.com</span></div>
<div class="named-area__description"></div>
<div class="named-area__additional"></div>
</div>
<div class="named-area__body">
<!-- Instructions title block START -->
<!-- Check input element for example of how to set data attributes to save to storage later -->
<div class="a-card a-card--normal">
<div class="a-card__paddings">
<div class="titled-items-list">
<div class="titled-items-list__item">
<div class="fieldset" style="width: 100%">
<div class="fieldset__title">Merchant ID</div>
<div class="field field--medium field--filled">
<span class="fieldset__svg-icon"></span>
<label class="field__label">Merchant ID</label>
<!-- Instruction title input. Use data attributes as below to save and update the value to/from application storage via functions.js -->
<input data-name="merchantId" id="merchantId" data-visibility="private" type="text" class="field__input" tabindex="4" maxlength="64">
<div class="field__placeholder">Merchant ID</div>
<span class="field-state--success">
<svg xmlns="http://www.w3.org/2000/svg" width="26px" height="26px" viewBox="0 0 26 26" focusable="false"><path d="M5 12l5.02 4.9L21.15 4c.65-.66 1.71-.66 2.36 0 .65.67.65 1.74 0 2.4l-12.3 14.1c-.33.33-.76.5-1.18.5-.43 0-.86-.17-1.18-.5l-6.21-6.1c-.65-.66-.65-1.74 0-2.41.65-.65 1.71-.65 2.36.01z"></path></svg>
</span>
<span class="field-state--close">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 16 16" enable-background="new 0 0 16 16" xml:space="preserve" focusable="false"><path d="M15.6,15.5c-0.53,0.53-1.38,0.53-1.91,0L8.05,9.87L2.31,15.6c-0.53,0.53-1.38,0.53-1.91,0c-0.53-0.53-0.53-1.38,0-1.9l5.65-5.64L0.4,2.4c-0.53-0.53-0.53-1.38,0-1.91c0.53-0.53,1.38-0.53,1.91,0l5.64,5.63l5.74-5.73c0.53-0.53,1.38-0.53,1.91,0c0.53,0.53,0.53,1.38,0,1.91L9.94,7.94l5.66,5.65C16.12,14.12,16.12,14.97,15.6,15.5z"></path></svg>
</span>
</div>
<div class="field__error" aria-hidden="true" style="display: none;"></div>
<div class="fieldset__note">Check Cointopay.com -> Account -> Account details -> Account/Merchant ID</div>
</div>
<div class="fieldset" style="width: 100%">
<div class="fieldset__title">Security Code</div>
<div class="field field--medium field--filled">
<span class="fieldset__svg-icon"></span>
<label class="field__label">Security Code</label>
<!-- Instruction title input. Use data attributes as below to save and update the value to/from application storage via functions.js -->
<input data-name="secretCode" data-visibility="private" type="text" class="field__input" tabindex="4" maxlength="64">
<div class="field__placeholder">Security Code</div>
<span class="field-state--success">
<svg xmlns="http://www.w3.org/2000/svg" width="26px" height="26px" viewBox="0 0 26 26" focusable="false"><path d="M5 12l5.02 4.9L21.15 4c.65-.66 1.71-.66 2.36 0 .65.67.65 1.74 0 2.4l-12.3 14.1c-.33.33-.76.5-1.18.5-.43 0-.86-.17-1.18-.5l-6.21-6.1c-.65-.66-.65-1.74 0-2.41.65-.65 1.71-.65 2.36.01z"></path></svg>
</span>
<span class="field-state--close">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 16 16" enable-background="new 0 0 16 16" xml:space="preserve" focusable="false"><path d="M15.6,15.5c-0.53,0.53-1.38,0.53-1.91,0L8.05,9.87L2.31,15.6c-0.53,0.53-1.38,0.53-1.91,0c-0.53-0.53-0.53-1.38,0-1.9l5.65-5.64L0.4,2.4c-0.53-0.53-0.53-1.38,0-1.91c0.53-0.53,1.38-0.53,1.91,0l5.64,5.63l5.74-5.73c0.53-0.53,1.38-0.53,1.91,0c0.53,0.53,0.53,1.38,0,1.91L9.94,7.94l5.66,5.65C16.12,14.12,16.12,14.97,15.6,15.5z"></path></svg>
</span>
</div>
<div class="field__error" aria-hidden="true" style="display: none;"></div>
<div class="fieldset__note">Check Cointopay.com -> Account -> Account details -> Security code</div>
</div>
<div class="fieldset" style="width: 100%">
<div class="fieldset__title">Select default checkout currency</div>
<div class="field field_crypto field--medium field--filled">
<span class="fieldset__svg-icon"></span>
<label class="field__label">Select default checkout currency</label>
<!-- Instruction title input. Use data attributes as below to save and update the value to/from application storage via functions.js -->
<select data-name="cryptoCurrency" id="crypto_currency" data-visibility="private" class="field__select" tabindex="4" style="width:100%;"></select>
<span class="field-state--success">
<svg xmlns="http://www.w3.org/2000/svg" width="26px" height="26px" viewBox="0 0 26 26" focusable="false"><path d="M5 12l5.02 4.9L21.15 4c.65-.66 1.71-.66 2.36 0 .65.67.65 1.74 0 2.4l-12.3 14.1c-.33.33-.76.5-1.18.5-.43 0-.86-.17-1.18-.5l-6.21-6.1c-.65-.66-.65-1.74 0-2.41.65-.65 1.71-.65 2.36.01z"></path></svg>
</span>
<span class="field-state--close">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 16 16" enable-background="new 0 0 16 16" xml:space="preserve" focusable="false"><path d="M15.6,15.5c-0.53,0.53-1.38,0.53-1.91,0L8.05,9.87L2.31,15.6c-0.53,0.53-1.38,0.53-1.91,0c-0.53-0.53-0.53-1.38,0-1.9l5.65-5.64L0.4,2.4c-0.53-0.53-0.53-1.38,0-1.91c0.53-0.53,1.38-0.53,1.91,0l5.64,5.63l5.74-5.73c0.53-0.53,1.38-0.53,1.91,0c0.53,0.53,0.53,1.38,0,1.91L9.94,7.94l5.66,5.65C16.12,14.12,16.12,14.97,15.6,15.5z"></path></svg>
</span>
</div>
<div class="field__error" aria-hidden="true" style="display: none;"></div>
<div class="fieldset__note">Check Cointopay.com -> Account -> Wallet currencies -> Active currencies to enable more crypto currencies</div>
</div>
</div>
</div>
</div>
</div>
<!-- APP SETTINGS AREA END -->
</div>
</div>
</div>
<!-- End contents of third tab -->
<script src='functions.js'></script>
<script src="https://djqizrxa6f10j.cloudfront.net/ecwid-sdk/css/1.3.2/ecwid-app-ui.min.js"></script>
<script>
// Autosave feature for fields. Complimentary JS for the one from SDK above
(function initFieldset() {
var elms = document.querySelectorAll('.field__input, .field__select, .field__textarea, .radio');
for (var i = 0; i < elms.length; i++) {
elms[i].addEventListener('blur', function(e) {
checkFieldChange(this);
if (this.classList.contains('field__input') || this.classList.contains('field__textarea')) {
saveUserData();
}
}, false);
elms[i].addEventListener('change', function() {
if (this.value) {
saveUserData();
}
else {
saveUserData();
}
}, false);
elms[i].addEventListener('click', function() {
if (this.value) {
saveUserData();
}
else {
saveUserData();
}
}, false);
}
})();
</script>
</div>
<!-- Main app block END -->
</body>
</html>