1.3.0 • Published 2 years ago

@widgetbot/html-embed v1.3.0

Weekly downloads
129
License
MIT
Repository
github
Last release
2 years ago

html-embed

CodeSandbox

<html>

<body>
  <button id="hello-world">Send "Hello world"</button>
  <widgetbot
    server="299881420891881473"
    channel="355719584830980096"
    id="embed"
    height="300"
    width="500"
  >
  </widgetbot>
  <script src="https://unpkg.com/@widgetbot/html-embed"></script>

  <script>
    const embed = document.getElementById('embed')

    document.getElementById('hello-world').addEventListener('click', () => {
      embed.emit(
        'sendMessage',
        `Hello world! from \`@widgetbot/html-embed!\`\n` +
          `<https://codesandbox.io/s/y32o59nn0v>`
      )
    })

    embed.on('signIn', data => {
      console.log(`You've signed in as ${data.name}`)
    })
  </script>
</body>

</html>
1.2.2

2 years ago

1.3.0

2 years ago

1.2.0

3 years ago

1.2.1

3 years ago

1.1.2

3 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago