Skip to content

Instantly share code, notes, and snippets.

@dangerouse
Last active October 1, 2015 13:57
Show Gist options
  • Save dangerouse/2003911 to your computer and use it in GitHub Desktop.
Save dangerouse/2003911 to your computer and use it in GitHub Desktop.
CloudSponge Widget Reference - Specifying a language
<!DOCTYPE html>
<html>
<head>
<script>
// Asynchronously include the widget library.
// TODO: replace with your widget script
(function(u){
var d=document,s='script',a=d.createElement(s),m=d.getElementsByTagName(s)[0];
a.async=1;a.src=u;m.parentNode.insertBefore(a,m);
})('//api.cloudsponge.com/widget/YOUR_WIDGET_SCRIPT.js');
// extra widget options go here:
window.csPageOptions = {
textarea_id:'contact_list',
locale:'spanish', // this will launch the widget using the language called 'spanish' in your CloudSponge languages
};
</script>
</head>
<body>
<a class="cs_import">Add from Address Book</a>
<textarea id="contact_list" style="width:450px;height:82px"></textarea>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment