-
-
Save deverts/88ed8d013e22614b4c0f9e17910df523 to your computer and use it in GitHub Desktop.
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
<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