index.html 5.8 KB

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