-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
executable file
·119 lines (92 loc) · 3 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
<html>
<head>
<meta content="text/html" charset="utf-8">
<link rel="stylesheet" href="assets/global-intuitive-unicorn.css"></link>
</head>
<body>
<form>
<div>
<div>Email address</div>
<input id="email" type="email" onchange="console.log('email')">
</div>
<div>
<div>Phone number</div>
<input id="phone" type="phone" onchange="console.log('phone')">
</div>
<div>
<div>Address Line One</div>
<input style="width:100%" id="address-line-one" type="text">
</div>
<div>
<div>Address Line Two</div>
<input style="width:100%" id="address-line-two" type="text">
</div>
</form>
<script>
window.EdqConfig = {
DEBUG: true,
/** Authorization tokens **/
/* Address */
PRO_WEB_AUTH_TOKEN: 'c5727665-4b88-49f4-bb5b-4d90489325c6',
GLOBAL_PHONE_VALIDATE_AUTH_TOKEN: 'c5727665-4b88-49f4-bb5b-4d90489325c6',
/* Phone */
PHONE_VALIDATE_PLUS_AUTH_TOKEN: 'c5727665-4b88-49f4-bb5b-4d90489325c6',
GLOBAL_PHONE_VALIDATE_AUTH_TOKEN: 'c5727665-4b88-49f4-bb5b-4d90489325c6',
/* Email */
EMAIL_VALIDATE_AUTH_TOKEN: 'c5727665-4b88-49f4-bb5b-4d90489325c6',
/** Inline validation options **/
LOADING_BASE64_ICON: null,
VERIFIED_BASE76_ICON: null,
INVALID_BASE64_ICON: null,
UNKNOWN_BASE64_ICON: null,
/* Email validation options */
EMAIL_ELEMENTS: [document.getElementById('email')],
/* Phone validation options */
PHONE_ELEMENTS: [document.getElementById('phone')],
/* Global Intuitive Options */
GLOBAL_INTUITIVE_ELEMENT: document.getElementById('address-line-one'),
GLOBAL_INTUITIVE_MAPPING: [
{
field: document.getElementById('address-line-one'),
elements: ['address.addressLine1', 'address.addressLine2'],
separator: ', '
},
{
field: document.getElementById('address-line-two'),
elements: ['address.addressLine2']
},
{
field: document.getElementById('address-line-three'),
elements: []
},
{
field: document.getElementById('city'),
elements: [],
},
{
field: document.getElementById('locality'),
elements: []
},
{
field: document.getElementById('postalCode'),
elements: []
},
{
field: document.getElementById('province'),
elements: []
},
{
field: document.getElementById('country'),
elements: []
}
]
};
</script>
<!-- Pegasus -->
<script src="lib/edq.js"></script>
<!-- Unicorn -->
<script src="assets/email-unicorn.js"></script>
<script src="assets/phone-unicorn.js"></script>
<script src="assets/global-intuitive-unicorn.js"></script>
</body>
</html>