Last active
January 21, 2020 17:10
-
-
Save leifermendez/22f1d2313e5454f235c607cd0a2396ed to your computer and use it in GitHub Desktop.
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 type='text/javascript'> | |
| function loadCallback() { | |
| window['KairosSDK'].check(); | |
| window['KairosSDK']['DataClient']['enviroment'] = 'prod'; | |
| window['KairosSDK']['DataClient']['idToken'] = 3; | |
| window['KairosSDK']['DataClient']['redirect'] = window.location.origin; | |
| } | |
| ! function() { | |
| const e = "https://www.kairosapp.es"; | |
| let t = document.createElement("script"); | |
| t.type = "text/javascript", t.async = !0, t.src = e + "/assets/sdk/sdk-stable.js"; | |
| let a = document.getElementsByTagName("script")[0]; | |
| a.parentNode.insertBefore(t, a), a.onload = function() { | |
| let t = document.createElement("iframe"), | |
| a = document.getElementsByTagName("body")[0]; | |
| t.style.display = "none", t.id = "iframe_kairos_app_sdk", t.src = e + "/assets/sdk/sdk-iframe.html", t.onreadystatechange = function() { | |
| t.readyState | |
| }, a.appendChild(t), t.onload = loadCallback | |
| } | |
| }(); | |
| // execute your script immediately here | |
| //SDKName('some arguments'); | |
| </script> |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Este código se debe insertar en la pagina a usar en el "index.html"