Created
May 16, 2020 10:49
-
-
Save venkateshwarv/5ec30c258a5bf46756e305c49d9a4501 to your computer and use it in GitHub Desktop.
Gist for listening to custom events.
This file contains hidden or 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> | |
document.addEventListener('cc-inweb-response', function ($event) { | |
if($event.target.attributes.id === 'widget-usability'){ | |
<!-- react to response submission --> | |
} | |
}) | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment