index.html 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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 gte IE 9]>
  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 id="page-top" data-spy="scroll">
  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. </span>
  28. </div>
  29. </nav>
  30. <section id="intro" class="intro" class="container">
  31. <div class="row">
  32. <div class="col-md-12 col-md-offset-2">
  33. <h1 class="brand-heading fade-in">
  34. <svg class="converse-svg-logo"
  35. xmlns:svg="http://www.w3.org/2000/svg"
  36. xmlns="http://www.w3.org/2000/svg"
  37. xmlns:xlink="http://www.w3.org/1999/xlink"
  38. viewBox="0 0 364 364">
  39. <title>Home</title>
  40. <g class="cls-1" id="g904">
  41. <g data-name="Layer 2">
  42. <g data-name="Layer 7">
  43. <path
  44. class="cls-3"
  45. 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" />
  46. <path
  47. class="cls-4"
  48. 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" />
  49. </g>
  50. </g>
  51. </g>
  52. </svg>
  53. <span class="brand-heading__text">
  54. <span>converse<span class="subdued">.js</span></span>
  55. <p class="byline">messaging freedom</p>
  56. </span>
  57. </h1>
  58. <p class="intro-text">Demos:</p>
  59. <p class="intro-text">
  60. <ul style="list-style: none; font-size: 22px;">
  61. <li><a href="/fullscreen.html">As a fullscreen application</a></li>
  62. <li><a href="/demo/anonymous.html">Anonymous login</a></li>
  63. <li><a href="/demo/embedded.html">Single MUC chatroom embedded into the page</a></li>
  64. </ul>
  65. </p>
  66. </div>
  67. </div>
  68. </section>
  69. </section>
  70. </section>
  71. </body>
  72. <script>
  73. require(['converse'], function (converse) {
  74. (function () {
  75. /* XXX: This function initializes jquery.easing for the https://conversejs.org
  76. * website. This code is only useful in the context of the converse.js
  77. * website and converse.js itself is NOT dependent on it.
  78. */
  79. var $ = converse.env.jQuery;
  80. $.extend( $.easing, {
  81. easeInOutExpo: function (x, t, b, c, d) {
  82. if (t==0) return b;
  83. if (t==d) return b+c;
  84. if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
  85. return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
  86. },
  87. });
  88. $(window).scroll(function() {
  89. if ($(".navbar").offset().top > 50) {
  90. $(".navbar-fixed-top").addClass("top-nav-collapse");
  91. } else {
  92. $(".navbar-fixed-top").removeClass("top-nav-collapse");
  93. }
  94. });
  95. //jQuery for page scrolling feature - requires jQuery Easing plugin
  96. $('.page-scroll a').bind('click', function(event) {
  97. var $anchor = $(this);
  98. $('html, body').stop().animate({
  99. scrollTop: $($anchor.attr('href')).offset().top
  100. }, 700, 'easeInOutExpo');
  101. event.preventDefault();
  102. });
  103. })();
  104. converse.initialize({
  105. // Please use this connection manager only for testing purposes
  106. bosh_service_url: 'https://conversejs.org/http-bind/',
  107. keepalive: true,
  108. message_carbons: true,
  109. play_sounds: true,
  110. roster_groups: true,
  111. show_controlbox_by_default: true,
  112. });
  113. });
  114. </script>
  115. </html>