anonymous.html 6.2 KB

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