Created
February 20, 2020 13:11
-
-
Save gastonsoto/1e51f4715b9f5419a83e31819956772c 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
function leptonOptiShow(targetIframe="leptonIframeContainer",targetComponent="") { | |
var optiContainer = document.getElementById(targetIframe); | |
optiContainer.classList.add("opti-on"); | |
var newURL = "https://optionline-dev.herokuapp.com/empresa/mariano/opti?access_token=anGteR_zuBLkJDQMHwyk&refresh=true&id_msg=" + targetComponent; | |
document.getElementById("myIframe").src = newURL | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
El código completo de lo que se incrustaría dentro del cliente podría ser (basado en el código de arriba):
Y el código de cada botón:
<a onClick="init("myIframe","myIframeComponent","VER_PROYECTOS",true,true)">Ver Proyectos</a>