Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <HTML>
- <HEAD>
- <TITLE>App Example Page</TITLE>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
- <style>
- html, body { width: 100%; height: 100%; margin: 0; }
- </style>
- </HEAD>
- <BODY>
- <CENTER>
- <H1>App</H1>
- </CENTER>
- <div id="elementid"></div>
- <script src="https://unpkg.com/blip-chat-web" type="text/javascript"></script>
- <script>
- (function () {
- window.onload = function () {
- function uuidv4() {
- return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
- var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
- return v.toString(16);
- });
- }
- var uniqueid = uuidv4();
- var client = new BlipWebSDK.ChatBuilder();
- window.client = client;
- var options = {
- config: {
- authType: BlipWebSDK.AuthType.DEV,
- // This parameter should be used only on DEV auth type
- user: {
- id: uniqueid, // Required
- password: uniqueid, // Required
- name: 'Usuário(a)' // Optional
- },
- },
- window: {
- title: 'Fale com a gente aqui',
- target: 'elementid',
- hideMenu: false,
- iconPath: 'http://0mn.io/Content/ip70v'
- }
- };
- client.withApiKey('')
- .build(options);
- }
- })();
- </script>
- </BODY>
- </HTML>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement