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
<script src="https://embedded.colmeia.me/v1/colmeia-embedded.js"></script> | |
<script> | |
ColmeiaEmbeddedChat.initialize('HYGbLgzJyKKRhmP3WhrfHWThjdfpfKSb', { | |
title: "Título", // Título da caixa de chat, | |
description: "Descrição", // Descrição durante o preenchimento do formulário, | |
display: { | |
position: "bottom-right", // bottom-left, bottom-right | |
mode: "button", // button, programmatically, instantly | |
/*header: { //objeto opcional | |
show: true // default true |
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
function el(tag, tags) { | |
const element = document.createElement(tag); | |
if (tags) { | |
const tagsKeys = Object.keys(tags); | |
tagsKeys.forEach(function (key) { | |
element[key] = tags[key]; | |
}); | |
} |
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
openssl ecparam -name prime256v1 -genkey -noout -out ecdsa-private.pem | |
openssl ec -in ecdsa-private.pem -pubout -out ecdsa-public.pem |
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
/** | |
* | |
* EventEmitter | |
* @description Events emitter and handler with pre-cached and timed emitters | |
* @author Fernando Costa <[email protected]> | |
* | |
*/ | |
interface IEventEmitter{ | |
listeners: any |