-
Notifications
You must be signed in to change notification settings - Fork 0
/
seamless.html
244 lines (243 loc) · 13.1 KB
/
seamless.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="My personal testing site used to play around with Swedbank Pay's payment solutions. Allows the user to access all of the PayEx script functions and a customizable styling option, all built in.">
<title>Seamless View</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header id="nav-bar">
<button type="button" class="nav-button" onclick="window.location.assign('./index.html')">Index</button>
<button type="button" class="nav-button" onclick="window.location.assign('./seamless.html')">Seamless View Test</button>
<button type="button" class="nav-button" onclick="window.location.assign('./iframe.html')">IFrame Tester</button>
<button type="button" class="nav-button" onclick="window.location.assign('./eligibility-check.html')">Eligibility Check</button>
</header>
<script src="app.js" type="text/javascript" defer></script>
<div id="main-script-input">
<form id="script-input-form">
<label for="script-input">Script URL:</label>
<input id="script-input" type="text">
<button id="script-input-button" type="submit">Launch</button>
</form>
<label for="debug-logger">Logs</label>
<textarea id="debug-logger"></textarea>
</div>
<div id="script-controller">
<button type="button" class="script-button" id="script-open" onclick="openScript()">Open</button>
<button type="button" class="script-button" id="script-update" onclick="openScriptModal()">Update</button>
<button type="button" class="script-button" id="script-refresh" onclick="refreshScript()">Refresh</button>
<button type="button" class="script-button" id="script-close" onclick="closeScript()">Close</button>
<button type="button" class="script-button" id="script-cancel" onclick="cancelScript()">Cancel</button>
<button type="button" class="script-button" id="script-clear-logs" onclick="clearLogBlock()">Empty Logs</button>
</div>
<div id="paymentmenu-container"></div>
<form id="modal">
<div id="modal-list">
<h1>Custom Styling</h1>
<div id="modal-culture" class="modal-options">
<label for="modal-culture-input">Culture</label>
<select id="modal-culture-input" name="culture">
<option value="sv-SE">Svenska</option>
<option value="nb-NO">Norsk</option>
<option value="en-US">English (US)</option>
<option value="da-DK">Dansk</option>
<option value="fi-FI">Suomi</option>
</select>
</div>
<div id="modal-button">
<h2>Primary Button</h2>
<div class="modal-options">
<label for="modal-primary-border-radius">Border Radius</label>
<div>
<input id="modal-primary-border-radius" type="number" name="primary-border-radius"> px
</div>
</div>
<div class="modal-sub-options">
<h3>Enabled</h3>
<div class="modal-options">
<label for="modal-primary-enabled-color">Background Color</label>
<div>
<input id="modal-primary-enabled-color" type="text" name="primary-enabled-color">
</div>
</div>
<div class="modal-options">
<label for="modal-primary-enabled-text-color">Text Color</label>
<div>
<input id="modal-primary-enabled-text-color" type="text" name="primary-enabled-text-color">
</div>
</div>
<div class="modal-options">
<label for="modal-primary-enabled-outline">Outline</label>
<div>
<input id="modal-primary-enabled-outline" type="text" name="primary-enabled-outline">
</div>
</div>
</div>
<div class="modal-sub-options">
<h3>Enabled (Hover)</h3>
<div class="modal-options">
<label for="modal-primary-hover-enabled-color">Background Color</label>
<div>
<input id="modal-primary-hover-enabled-color" type="text" name="primary-enabled-hover-color">
</div>
</div>
<div class="modal-options">
<label for="modal-primary-hover-enabled-text-color">Text Color</label>
<div>
<input id="modal-primary-hover-enabled-text-color" type="text" name="primary-enabled-hover-text-color">
</div>
</div>
<div class="modal-options">
<label for="modal-primary-hover-enabled-outline">Outline</label>
<div>
<input id="modal-primary-hover-enabled-outline" type="text" name="primary-enabled-hover-outline">
</div>
</div>
</div>
<div class="modal-sub-options">
<h3>Disabled</h3>
<div class="modal-options">
<label for="modal-primary-disabled-color">Background Color</label>
<div>
<input id="modal-primary-disabled-color" type="text" name="primary-disabled-color">
</div>
</div>
<div class="modal-options">
<label for="modal-primary-disabled-text-color">Text Color</label>
<div>
<input id="modal-primary-disabled-text-color" type="text" name="primary-disabled-text-color">
</div>
</div>
<div class="modal-options">
<label for="modal-primary-disabled-outline">Outline</label>
<div>
<input id="modal-primary-disabled-outline" type="text" name="primary-disabled-outline">
</div>
</div>
</div>
<div class="modal-sub-options">
<h3>Disabled (Hover)</h3>
<div class="modal-options">
<label for="modal-primary-hover-disabled-color">Background Color</label>
<div>
<input id="modal-primary-hover-disabled-color" type="text" name="primary-disabled-hover-color">
</div>
</div>
<div class="modal-options">
<label for="modal-primary-hover-disabled-text-color">Text Color</label>
<div>
<input id="modal-primary-hover-disabled-text-color" type="text" name="primary-disabled-hover-text-color">
</div>
</div>
<div class="modal-options">
<label for="modal-primary-hover-disabled-outline">Outline</label>
<div>
<input id="modal-primary-hover-disabled-outline" type="text" name="primary-disabled-hover-outline">
</div>
</div>
</div>
</div>
<div id="modal-secondary-button">
<h2>Secondary Button</h2>
<div class="modal-options">
<label for="modal-secondary-border-radius">Border Radius</label>
<div>
<input id="modal-secondary-border-radius" type="number" name="secondary-border-radius"> px
</div>
</div>
<div class="modal-sub-options">
<h3>Enabled</h3>
<div class="modal-options">
<label for="modal-secondary-enabled-color">Background Color</label>
<div>
<input id="modal-secondary-enabled-color" type="text" name="secondary-enabled-color">
</div>
</div>
<div class="modal-options">
<label for="modal-secondary-enabled-text-color">Text Color</label>
<div>
<input id="modal-secondary-enabled-text-color" type="text" name="secondary-enabled-text-color">
</div>
</div>
<div class="modal-options">
<label for="modal-secondary-enabled-outline">Outline</label>
<div>
<input id="modal-secondary-enabled-outline" type="text" name="secondary-enabled-outline">
</div>
</div>
</div>
<div class="modal-sub-options">
<h3>Enabled (Hover)</h3>
<div class="modal-options">
<label for="modal-secondary-enabled-hover-color">Background Color</label>
<div>
<input id="modal-secondary-enabled-hover-color" type="text" name="secondary-enabled-hover-color">
</div>
</div>
<div class="modal-options">
<label for="modal-secondary-enabled-hover-text-color">Text Color</label>
<div>
<input id="modal-secondary-enabled-hover-text-color" type="text" name="secondary-enabled-hover-text-color">
</div>
</div>
<div class="modal-options">
<label for="modal-secondary-enabled-hover-outline">Outline</label>
<div>
<input id="modal-secondary-enabled-hover-outline" type="text" name="secondary-enabled-hover-outline">
</div>
</div>
</div>
<div class="modal-sub-options">
<h3>Disabled</h3>
<div class="modal-options">
<label for="modal-secondary-disabled-color">Background Color</label>
<div>
<input id="modal-secondary-disabled-color" type="text" name="secondary-disabled-color">
</div>
</div>
<div class="modal-options">
<label for="modal-secondary-disabled-text-color">Text Color</label>
<div>
<input id="modal-secondary-disabled-text-color" type="text" name="secondary-disabled-text-color">
</div>
</div>
<div class="modal-options">
<label for="modal-secondary-disabled-outline">Outline</label>
<div>
<input id="modal-secondary-disabled-outline" type="text" name="secondary-disabled-outline">
</div>
</div>
</div>
<div class="modal-sub-options">
<h3>Disabled (Hover)</h3>
<div class="modal-options">
<label for="modal-secondary-disabled-hover-color">Background Color</label>
<div>
<input id="modal-secondary-disabled-hover-color" type="text" name="secondary-disabled-hover-color">
</div>
</div>
<div class="modal-options">
<label for="modal-secondary-disabled-hover-color-text">Text Color</label>
<div>
<input id="modal-secondary-disabled-hover-color-text" type="text" name="secondary-disabled-hover-text-color">
</div>
</div>
<div class="modal-options">
<label for="modal-secondary-disabled-hover-outline">Outline</label>
<div>
<input id="modal-secondary-disabled-hover-outline" type="text" name="secondary-disabled-hover-outline">
</div>
</div>
</div>
</div>
</div>
<div id="modal-navigation">
<button class="modal-buttons" type="submit">Apply Styles</button>
<button class="modal-buttons" type="button" onclick="resetCustomStyle()">Reset Styles</button>
<button class="modal-buttons" type="button" onclick="closeScriptModal()">Close</button>
</div>
</form>
</body>
</html>