dev.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title>Converse.js</title>
  5. <meta charset="utf-8">
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  8. <meta name="description" content="Converse.js: A free chat client for your website" />
  9. <meta name="author" content="JC Brand" />
  10. <meta name="keywords" content="xmpp chat webchat converse.js" />
  11. <link rel="shortcut icon" type="image/ico" href="css/images/favicon.ico"/>
  12. <link type="text/css" rel="stylesheet" media="screen" href="css/inverse.css" />
  13. <script src="node_modules/requirejs/require.js"></script>
  14. <script src="src/config.js"></script>
  15. </head>
  16. <body class="reset">
  17. <script>
  18. require(['converse'], function (converse) {
  19. converse.initialize({
  20. auto_away: 300,
  21. i18n: 'en',
  22. // auto_join_rooms: [
  23. // 'discuss@conference.conversejs.org',
  24. // 'prosody@conference.prosody.im',
  25. // 'jdev@conference.jabber.org'
  26. // ],
  27. // websocket_url: 'ws://chat.example.org:5280/xmpp-websocket',
  28. view_mode: 'fullscreen',
  29. archived_messages_page_size: '500',
  30. allow_public_bookmarks: true,
  31. notify_all_room_messages: [
  32. 'discuss@conference.conversejs.org'
  33. ],
  34. // bosh_service_url: 'http://chat.example.org:5280/http-bind/',
  35. bosh_service_url: 'https://conversejs.org/http-bind/', // Please use this connection manager only for testing purposes
  36. message_archiving: 'always',
  37. debug: true
  38. });
  39. });
  40. </script>
  41. </body>
  42. </html>