Created
April 16, 2022 17:01
-
-
Save dangerouse/f5e9f41fcdeb3d8e26f97803972aa6f2 to your computer and use it in GitHub Desktop.
Inject the Contact Picker via console
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
(function(key, opts, s) { | |
s = document.createElement('script'); | |
s.type = 'text/javascript'; | |
s.async = 1; | |
// assign the src attribute | |
s.src = "https://api.cloudsponge.com/widget/"+key+".js"; | |
// set the script to invoke a callback after it loads | |
s.onload = function() { | |
window.cloudsponge && cloudsponge.init(opts); | |
} | |
// add the script to the page | |
document.body.appendChild(s); | |
})("YOUR CLOUDSPONGE KEY", { | |
// cloudsponge options go here | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps:
<a href="#" class="cloudsponge-launch">Pick Contacts</a>
and update the To field with the attributeclass="cloudsponge-contacts"
.YOUR CLOUDSPONGE KEY
and add any options you want to include. Press enter.