-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo-native.html
32 lines (31 loc) · 1.05 KB
/
demo-native.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, minimal-ui">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="import" href="registration-form.html">
</head>
<body>
<registration-form
id="first-form"
firstname="Alexandr"
lastname="Evtushenko"
email="[email protected]"
password="123"></registration-form>
<registration-form
id="second-form"
firstname="Abc"
lastname="Def"
email="[email protected]"
password="456"></registration-form>
<script>
document.getElementById('first-form').addEventListener('done', function(e) {
alert("First form!\n" + JSON.stringify(e.data.data));
});
document.getElementById('second-form').addEventListener('done', function(e) {
alert("Second form!\n" + JSON.stringify(e.data.data));
});
</script>
</body>
</html>