|
@@ -127,8 +127,12 @@ tags:</p>
|
|
|
<div class="highlight-python"><pre><link rel="stylesheet" type="text/css" media="screen" href="converse.min.css">
|
|
|
<script src="converse.min.js"></script></pre>
|
|
|
</div>
|
|
|
-<p>Then, at the bottom of your page, after the closing <em></body></em> element, put the
|
|
|
-following inline Javascript code:</p>
|
|
|
+<p>You need to initialize Converse.js with configuration settings particular to
|
|
|
+your requirements.</p>
|
|
|
+<p>Please refer to the <a class="reference internal" href="#configuration-variables">Configuration variables</a> section further below for info on
|
|
|
+all the available configuration settings.</p>
|
|
|
+<p>To do this, put the following inline Javascript code at the
|
|
|
+bottom of your page (after the closing <em></body></em> element).</p>
|
|
|
<div class="highlight-python"><pre>require(['converse'], function (converse) {
|
|
|
converse.initialize({
|
|
|
auto_list_rooms: false,
|
|
@@ -142,8 +146,18 @@ following inline Javascript code:</p>
|
|
|
});
|
|
|
});</pre>
|
|
|
</div>
|
|
|
-<p>The <em>index.html</em> file inside the Converse.js folder serves as a nice usable
|
|
|
-example of this.</p>
|
|
|
+<p>Finally, Converse.js requires a special snippet of HTML markup to be included in your page:</p>
|
|
|
+<div class="highlight-python"><pre><div id="chatpanel">
|
|
|
+ <div id="collective-xmpp-chat-data"></div>
|
|
|
+ <div id="toggle-controlbox">
|
|
|
+ <a href="#" class="chat toggle-online-users">
|
|
|
+ <strong class="conn-feedback">Toggle chat</strong> <strong style="display: none" id="online-count">(0)</strong>
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+</div></pre>
|
|
|
+</div>
|
|
|
+<p>The <a class="reference external" href="https://github.com/jcbrand/converse.js/blob/master/index.html">index.html</a> file inside the
|
|
|
+Converse.js repository serves as a nice usable example of this.</p>
|
|
|
<p>These minified files provide the same demo-like functionality as is available
|
|
|
on the <a class="reference external" href="http://conversejs.org">conversejs.org</a> website. Useful for testing or demoing, but not very
|
|
|
practical.</p>
|