...
Code Block | ||
---|---|---|
| ||
<html> <head> <!-- import your css here --> <link rel="stylesheet" type="text/css" href="https://my.css"> </head> <body> <!-- there should be only one div as child of the body tag --> <div> <!-- the header or the footer content should be here --> <a href="#" id="my_account" class="hide">My account</a> </div> <!-- import your sciptsscripts here --> <script type="text/javascript"> var SecuTixAPI = window.parent.SecuTixAPI; if (!SecuTixAPI.getContact()) { var myAcountLink = document.getElementByHide("my_account"); myAcountLink .classList.remove("hide"); myAcountLink.attributes.href.value = SecuTixAPI.getUrls().account; } </script> </body> </html> |
Accéder à l'API SecuTix
...
Code Block | ||
---|---|---|
| ||
/** * Get the details on loggued contact. Null if not logged. Otherwise: * { * lang: // the contact prefered language * firstName: // the contact first name * lastName: // the contact last name * title: // the contact title * structureName: // if contact belongs to a structure, structure name * } * * @returns {Object} */ getContact: function() {} |
Accès aux urls
...
utilisables
L'API suivante donne accès aux urls utilisables dans les liens.
...