Last active
October 1, 2015 13:57
-
-
Save dangerouse/2003911 to your computer and use it in GitHub Desktop.
CloudSponge Widget Reference - Specifying a language
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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