Created
July 13, 2016 22:17
-
-
Save flavioso16/1b252e6847452c6a029ae9bf696ded30 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
var scriptFacebook = document.createElement('script'); | |
scriptFacebook.src = 'https://apps.argos4.me/tool/scripts/facebook.js?v=1'; | |
scriptFacebook.onload = function () { | |
argosFacebookShare.init | |
({ | |
facebookAppKey: 431605990305711, | |
facebookAppID: 13, | |
segmentacao: 'Especialmd', | |
authKey: '6opmzhqhswlmobt9', | |
classListener: 'argos-login', | |
callbackSuccessLogin: onSucessOptin, | |
callbackErrorLogin: onErrorOptin | |
}); | |
}; | |
document.head.appendChild(scriptFacebook); | |
function onSucessOptin(response) { | |
console.log('Optin success: ', response) | |
} | |
function onErrorOptin() { | |
console.log('Optin error'); | |
} | |
var scriptChrome = document.createElement('script'); | |
scriptChrome.src = 'https://apps.argos4.me/tool/scripts/chrome.js?v=1'; | |
scriptChrome.onload = function () { | |
argosChromeShare.init | |
({ | |
chromeAppID: 20, | |
authKey: '6opmzhqhswlmobt9', | |
serviceWorkerURI: '/service-worker.min.js', | |
manifestURI: '/manifest.json', | |
subscribe: true, | |
segmentacao: 'Especialmd', | |
welcomeMeta: { | |
title: 'Título Bem-vindo', | |
link: 'https://www.seguroautofacil.com.br', | |
logoURI: 'https://s3-sa-east-1.amazonaws.com/sba-support-files/Superare/superare_logo.png', | |
message: 'Mensagem de Bem vindo!' | |
} | |
}); | |
}; | |
document.head.appendChild(scriptChrome); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment