anonymous.html 4.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title>Converse - Anonymous login demo</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 XMPP/Jabber Chat"/>
  9. <meta name="author" content="JC Brand" />
  10. <meta name="keywords" content="xmpp chat webchat converse.js Converse" />
  11. <!-- These files are NOT needed when using converse.js in your own project. -->
  12. <link rel="shortcut icon" type="image/ico" href="/dist/favicon.ico"/>
  13. <link type="text/css" rel="stylesheet" media="screen" href="/dist/website.min.css" />
  14. <noscript><p><img src="//stats.opkode.com/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript>
  15. <script type="text/javascript" src="analytics.js"></script>
  16. <!-- *********************************************************************** -->
  17. <link rel="manifest" href="/manifest.json">
  18. <link type="text/css" rel="stylesheet" media="screen" href="/dist/converse.min.css" />
  19. <script src="https://cdn.conversejs.org/3rdparty/libsignal-protocol.min.js"></script>
  20. <script src="/dist/converse.min.js"></script>
  21. </head>
  22. <body id="page-top" data-spy="scroll" class="converse-website">
  23. <section class="section-wrapper">
  24. <section id="intro" class="intro text-center" class="container">
  25. <div class="row">
  26. <div class="col-md-12 col-md-offset-2">
  27. <h1 class="brand-heading fade-in">
  28. <svg class="converse-svg-logo"
  29. xmlns:svg="http://www.w3.org/2000/svg"
  30. xmlns="http://www.w3.org/2000/svg"
  31. xmlns:xlink="http://www.w3.org/1999/xlink"
  32. viewBox="0 0 364 364">
  33. <title>Converse</title>
  34. <g class="cls-1" id="g904">
  35. <g data-name="Layer 2">
  36. <g data-name="Layer 7">
  37. <path
  38. class="cls-3"
  39. d="M221.46,103.71c0,18.83-29.36,18.83-29.12,0C192.1,84.88,221.46,84.88,221.46,103.71Z" />
  40. <path
  41. class="cls-4"
  42. d="M179.9,4.15A175.48,175.48,0,1,0,355.38,179.63,175.48,175.48,0,0,0,179.9,4.15Zm-40.79,264.5c-.23-17.82,27.58-17.82,27.58,0S138.88,286.48,139.11,268.65ZM218.6,168.24A79.65,79.65,0,0,1,205.15,174a12.76,12.76,0,0,0-6.29,4.65L167.54,222a1.36,1.36,0,0,1-2.46-.8v-35.8a2.58,2.58,0,0,0-3.06-2.53c-15.43,3-30.23,7.7-42.73,19.94-38.8,38-29.42,105.69,16.09,133.16a162.25,162.25,0,0,1-91.47-67.27C-3.86,182.26,34.5,47.25,138.37,25.66c46.89-9.75,118.25,5.16,123.73,62.83C265.15,120.64,246.56,152.89,218.6,168.24Z" />
  43. </g>
  44. </g>
  45. </g>
  46. </svg>
  47. <span class="brand-heading__text">
  48. <span>converse<span class="subdued">.js</span></span>
  49. <p class="byline">messaging freedom</p>
  50. </span>
  51. </h1>
  52. <h3 class="mt-5">Anonymous login demo</h3>
  53. </div>
  54. </div>
  55. </section>
  56. </section>
  57. </body>
  58. <script>
  59. converse.initialize({
  60. view_mode: 'overlayed',
  61. allow_logout: false, // No point in logging out when we have auto_login as true.
  62. allow_muc_invitations: false, // Doesn't make sense to allow because only
  63. // roster contacts can be invited
  64. allow_contact_requests: false, // Contacts from other servers cannot,
  65. // be added and anonymous users don't
  66. // know one another's JIDs, so disabling.
  67. authentication: 'anonymous',
  68. auto_login: true,
  69. auto_join_rooms: [
  70. 'anonymous@conference.nomnom.im',
  71. ],
  72. notify_all_room_messages: [
  73. 'anonymous@conference.nomnom.im',
  74. ],
  75. bosh_service_url: 'https://conversejs.org/http-bind/', // Please use this connection manager only for testing purposes
  76. jid: 'nomnom.im', // XMPP server which allows anonymous login (doesn't
  77. // allow chatting with other XMPP servers).
  78. keepalive: true,
  79. hide_muc_server: true, // Federation is disabled, so no use in
  80. // showing the MUC server.
  81. play_sounds: true,
  82. show_controlbox_by_default: true,
  83. strict_plugin_dependencies: false,
  84. });
  85. </script>
  86. </html>