Skip to content

Instantly share code, notes, and snippets.

@dangerouse
Last active July 20, 2016 20:13
Show Gist options
  • Save dangerouse/1953651 to your computer and use it in GitHub Desktop.
Save dangerouse/1953651 to your computer and use it in GitHub Desktop.
CloudSponge Widget Reference - Use Branded Applet
<!DOCTYPE html>
<html>
<head>
<!--
Include the script anywhere on your page, usually in the head
(don't forget to replace `localhost-only` with your CloudSponge key)
-->
<script src="//api.cloudsponge.com/widget/localhost-only.js"></script>
// extra widget configuration
cloudsponge.init({
// change the URL below to use your own hosted copy of the applet
// Follow @CloudSpongeTech for notifications of code changes
appletUrl:'https://api.cloudsponge.com/objects/ContactsApplet_signed.jar'
// NB: Your copy of the applet must be hosted on the same protocol as the address_books.js script.
// This establishes trust with the browser when launching Java and prevents browser
// security warnings when loading the applet.
});
</script>
</head>
<body>
<a class="cloudsponge-launch">Add from Address Book</a>
<textarea class="cloudsponge-contacts"></textarea>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment