-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathhello-world.html
More file actions
32 lines (27 loc) · 894 Bytes
/
hello-world.html
File metadata and controls
32 lines (27 loc) · 894 Bytes
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>
<body>
<!--
Any widget integration must do three things:
1) include the widget script,
2) provide a way for the end user to launch the widget and,
3) do something with the user's contacts.
This basic integration does all.
-->
<!--
Include the script anywhere on your page, usually in the head
(don't forget to replace `localhost-only` with your CloudSponge key)
-->
<script src="https://api.cloudsponge.com/widget/localhost-only.js"></script>
<!--
#2 provide a way for the end user to launch the widget:
Any link with a class="cloudsponge-launch" will start the import process.
-->
<a class="cloudsponge-launch">Add from Address Book</a>
<!--
#3 do something with the user's contacts:
This textarea will be populated with the contacts returned by CloudSponge.
-->
<textarea class="cloudsponge-contacts"></textarea>
</body>
</html>