Skip to content

Instantly share code, notes, and snippets.

@YerlinMatu
Created February 3, 2019 02:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YerlinMatu/2a8f65b41646fa5d6a6e70743d4fb603 to your computer and use it in GitHub Desktop.
Save YerlinMatu/2a8f65b41646fa5d6a6e70743d4fb603 to your computer and use it in GitHub Desktop.
Button Network
(function () {
var options = {
whatsapp: "+57 350 8780527", // WhatsApp number
call: "+57 350 8780527", // Call phone number
call_to_action: "¿En qué podemos ayudarte? :)", // Call to action
button_color: "#666666", // Color of button
position: "right", // Position may be 'right' or 'left'
order: "whatsapp,call", // Order of buttons
};
var proto = document.location.protocol, host = "whatshelp.io", url = proto + "//static." + host;
var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = url + '/widget-send-button/js/init.js';
s.onload = function () { WhWidgetSendButton.init(host, proto, options); };
var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x);
})();
@YerlinMatu
Copy link
Author

Init

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment