Skip to content

Instantly share code, notes, and snippets.

@dangerouse
Last active October 1, 2015 07:37
Show Gist options
  • Save dangerouse/1947126 to your computer and use it in GitHub Desktop.
Save dangerouse/1947126 to your computer and use it in GitHub Desktop.
CloudSponge Widget Reference - Override base zIndex
<!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 YOUR_WIDGET_SCRIPT 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');
// Replace the stylesheet with valid values.
window.csPageOptions = {
textarea_id:'contact_list',
// the zIndex base value for the overlay is set by floatbox
// it is 90000 by default
floatbox:{
zIndex:1000, // a new zIndex value of your choice!
},
};
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment