Skip to content

Instantly share code, notes, and snippets.

@deverts

deverts/ceros.js Secret

Created Feb 15, 2018
Embed
What would you like to do?
<script>
(function() {
require.config({
paths: {
Nudge: "<YOUR NUDGE SCRIPT CODE>",
CerosSDK: "//sdk.ceros.com/standalone-player-sdk-v4.min"
}
});
require(["Nudge", "CerosSDK"], function(_, CerosSDK) {
CerosSDK.findExperience()
.fail(function(error) {
console.error(error);
})
.done(function(experience) {
experience.findComponentsByTag("ndg").subscribe(
CerosSDK.EVENTS.CLICKED, function(component) {
ndg(component.payload);
});
});
});
})();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment