Skip to content

Instantly share code, notes, and snippets.

@gsimone
Last active August 29, 2015 14:21
Show Gist options
  • Select an option

  • Save gsimone/6cc122792b340d0da825 to your computer and use it in GitHub Desktop.

Select an option

Save gsimone/6cc122792b340d0da825 to your computer and use it in GitHub Desktop.
options = {
// class for the scripts to be loaded on demand
scriptsClass: 'ce-elm',
// custom HTML for the banner
bannerHTML: '<a href="#" class="ce-trigger">Enable</a>',
// banner classes
bannerClasses: {
container: 'ce-banner',
trigger: 'ce-trigger'
},
// settings for the cookie that stores consent
cookie: {
name: 'ce-consent',
truthyValue: 'Y',
duration: 365
}
// events that trigger consent
triggers: {
scroll: false,
clickAnywhere: false
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment