Last active
September 29, 2015 16:17
-
-
Save dangerouse/1628619 to your computer and use it in GitHub Desktop.
Cloudsponge Widget - Stylesheet Override
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> | |
<body> | |
<a class="cs_import">Add from Address Book</a> | |
<textarea id="contact_list" style="width:450px;height:82px"></textarea> | |
<script type='text/javascript'> | |
// 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'); | |
// You must contact [email protected] before you can override the widget stylesheet. | |
window.csPageOptions = { | |
textarea_id:'contact_list', | |
// Base the stylesheet off of the one here: https://api.cloudsponge.com/stylesheets/address_books.css | |
// since specifying the stylesheet option will replace the reference in the widget. | |
stylesheet:'https://example.com/stylesheets/override.css' | |
}; | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment