index.html 5.5 KB

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