anonymous.html 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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="node_modules/bootstrap/dist/css/bootstrap.min.css" />
  13. <link type="text/css" rel="stylesheet" media="screen" href="node_modules/font-awesome/css/font-awesome.min.css" />
  14. <link type="text/css" rel="stylesheet" media="screen" href="https://cdn.conversejs.org/css/theme.min.css" />
  15. <script type="text/javascript" src="../analytics.js"></script>
  16. <noscript><p><img src="//stats.opkode.com/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript>
  17. <![if gte IE 9]>
  18. <link type="text/css" rel="stylesheet" media="screen" href="https://cdn.conversejs.org/3.2.1/css/converse.min.css" />
  19. <script src="https://cdn.conversejs.org/3.2.1/dist/converse.min.js"></script>
  20. <![endif]>
  21. </head>
  22. <body id="page-top" data-spy="scroll" data-target=".navbar-custom">
  23. <nav class="navbar navbar-custom navbar-fixed-top" role="navigation">
  24. <div class="container">
  25. <div class="navbar-header page-scroll">
  26. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-main-collapse">
  27. <i class="fa fa-bars"></i>
  28. </button>
  29. </div>
  30. <div class="collapse navbar-collapse navbar-right navbar-main-collapse">
  31. <ul class="nav navbar-nav"><li> <a href="/docs/html/index.html">Documentation</a> </li>
  32. </ul>
  33. </div>
  34. </div>
  35. </nav>
  36. <section class="intro">
  37. <div class="intro-body">
  38. <div class="container">
  39. <div class="row">
  40. <div class="col-md-8 col-md-offset-2">
  41. <h1 class="brand-heading"><i class="icon-conversejs"></i>Converse</h1>
  42. <p class="intro-text">Anonymous login demo</p>
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. </section>
  48. </body>
  49. <script>
  50. /*
  51. @licstart
  52. This is free and unencumbered software released into the public domain.
  53. Anyone is free to copy, modify, publish, use, compile, sell, or
  54. distribute this software, either in source code form or as a compiled
  55. binary, for any purpose, commercial or non-commercial, and by any
  56. means.
  57. In jurisdictions that recognize copyright laws, the author or authors
  58. of this software dedicate any and all copyright interest in the
  59. software to the public domain. We make this dedication for the benefit
  60. of the public at large and to the detriment of our heirs and
  61. successors. We intend this dedication to be an overt act of
  62. relinquishment in perpetuity of all present and future rights to this
  63. software under copyright law.
  64. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  65. EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  66. MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  67. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
  68. OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
  69. ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  70. OTHER DEALINGS IN THE SOFTWARE.
  71. For more information, please refer to <http://unlicense.org/>
  72. @licend
  73. */
  74. converse.initialize({
  75. allow_logout: false, // No point in logging out when we have auto_login as true.
  76. allow_muc_invitations: false, // Doesn't make sense to allow because only
  77. // roster contacts can be invited
  78. allow_contact_requests: false, // Contacts from other servers cannot,
  79. // be added and anonymous users don't
  80. // know one another's JIDs, so disabling.
  81. authentication: 'anonymous',
  82. auto_login: true,
  83. auto_join_rooms: [
  84. 'anonymous@conference.nomnom.im',
  85. ],
  86. notify_all_room_messages: [
  87. 'anonymous@conference.nomnom.im',
  88. ],
  89. bosh_service_url: 'https://conversejs.org/http-bind/', // Please use this connection manager only for testing purposes
  90. jid: 'nomnom.im', // XMPP server which allows anonymous login (doesn't
  91. // allow chatting with other XMPP servers).
  92. keepalive: true,
  93. hide_muc_server: true, // Federation is disabled, so no use in
  94. // showing the MUC server.
  95. play_sounds: true,
  96. show_controlbox_by_default: true,
  97. strict_plugin_dependencies: false,
  98. });
  99. </script>
  100. </html>