index.html 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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="/css/theme.min.css" />
  15. <link type="text/css" rel="stylesheet" media="screen" href="/css/converse.min.css" />
  16. <script type="text/javascript" src="analytics.js"></script>
  17. <noscript><p><img src="//stats.opkode.com/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript>
  18. <![if gte IE 9]>
  19. <script src="/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. <a class="navbar-brand" href="/#page-top">
  30. <i class="fa fa-play-circle"></i> <span class="light">Home</span>
  31. </a>
  32. </div>
  33. <!-- Collect the nav links, forms, and other content for toggling -->
  34. <div class="collapse navbar-collapse navbar-right navbar-main-collapse">
  35. <ul class="nav navbar-nav">
  36. <!-- Hidden li included to remove active class from about link when scrolled up past about section -->
  37. <li class="hidden">
  38. <a href="#page-top"></a>
  39. </li>
  40. <li class="page-scroll">
  41. <a href="#about">About</a>
  42. </li>
  43. <li class="page-scroll">
  44. <a href="#features">Features</a>
  45. </li>
  46. <li class="page-scroll">
  47. <a href="#contact">Contact</a>
  48. </li>
  49. <li>
  50. <a href="/docs/html/manual.html">User Manual</a>
  51. </li>
  52. <li>
  53. <a href="/docs/html/index.html">Documentation</a>
  54. </li>
  55. <li>
  56. <a href="https://github.com/jcbrand/converse.js/releases" class="button" target="_blank">Download</a>
  57. </li>
  58. </ul>
  59. </div>
  60. <!-- /.navbar-collapse -->
  61. </div>
  62. <!-- /.container -->
  63. </nav>
  64. <section class="intro" class="container">
  65. <div class="row">
  66. <h1 class="brand-heading"><i class="icon-conversejs"></i> Converse</h1>
  67. <div class="col-md-8 col-md-offset-2">
  68. <p class="intro-text">Demos:</p>
  69. <p class="intro-text">
  70. <ul style="list-style: none; font-size: 22px;">
  71. <li><a href="https://inverse.chat" target="_blank" rel="noopener">As a fullscreen application</a></li>
  72. <li><a href="/demo/anonymous.html">Anonymous login</a></li>
  73. <li><a href="/demo/embedded.html">Single MUC chatroom embedded into the page</a></li>
  74. <li><a href="/demo/without_bundled_dependencies.html">Dependencies loaded externally as &lt;script&gt; tags</a></li>
  75. </ul>
  76. </p>
  77. </div>
  78. </div>
  79. </section>
  80. </body>
  81. <script>
  82. require(['converse'], function (converse) {
  83. (function () {
  84. /* XXX: This function initializes jquery.easing for the https://conversejs.org
  85. * website. This code is only useful in the context of the converse.js
  86. * website and converse.js itself is NOT dependent on it.
  87. */
  88. var $ = converse.env.jQuery;
  89. $.extend( $.easing, {
  90. easeInOutExpo: function (x, t, b, c, d) {
  91. if (t==0) return b;
  92. if (t==d) return b+c;
  93. if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
  94. return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
  95. },
  96. });
  97. $(window).scroll(function() {
  98. if ($(".navbar").offset().top > 50) {
  99. $(".navbar-fixed-top").addClass("top-nav-collapse");
  100. } else {
  101. $(".navbar-fixed-top").removeClass("top-nav-collapse");
  102. }
  103. });
  104. //jQuery for page scrolling feature - requires jQuery Easing plugin
  105. $('.page-scroll a').bind('click', function(event) {
  106. var $anchor = $(this);
  107. $('html, body').stop().animate({
  108. scrollTop: $($anchor.attr('href')).offset().top
  109. }, 700, 'easeInOutExpo');
  110. event.preventDefault();
  111. });
  112. })();
  113. converse.initialize({
  114. // Please use this connection manager only for testing purposes
  115. bosh_service_url: 'https://conversejs.org/http-bind/',
  116. keepalive: true,
  117. message_carbons: true,
  118. play_sounds: true,
  119. roster_groups: true,
  120. show_controlbox_by_default: true,
  121. });
  122. });
  123. </script>
  124. </html>