|
@@ -11,14 +11,13 @@
|
|
<link rel="shortcut icon" type="image/ico" href="../css/images/favicon.ico"/>
|
|
<link rel="shortcut icon" type="image/ico" href="../css/images/favicon.ico"/>
|
|
<link type="text/css" rel="stylesheet" media="screen" href="../node_modules/bootstrap/dist/css/bootstrap.min.css" />
|
|
<link type="text/css" rel="stylesheet" media="screen" href="../node_modules/bootstrap/dist/css/bootstrap.min.css" />
|
|
<link type="text/css" rel="stylesheet" media="screen" href="../node_modules/font-awesome/css/font-awesome.min.css" />
|
|
<link type="text/css" rel="stylesheet" media="screen" href="../node_modules/font-awesome/css/font-awesome.min.css" />
|
|
- <link type="text/css" rel="stylesheet" media="screen" href="../css/theme.css" />
|
|
|
|
- <link type="text/css" rel="stylesheet" media="screen" href="../css/converse.css" />
|
|
|
|
- <link type="text/css" rel="stylesheet" media="screen" href="../css/converse-muc-embedded.css" />
|
|
|
|
|
|
+ <link type="text/css" rel="stylesheet" media="screen" href="https://cdn.conversejs.org/css/theme.min.css" />
|
|
|
|
+ <link type="text/css" rel="stylesheet" media="screen" href="https://cdn.conversejs.org/css/converse.min.css" />
|
|
|
|
+ <link type="text/css" rel="stylesheet" media="screen" href="https://cdn.conversejs.org/css/converse-muc-embedded.min.css" />
|
|
<script type="text/javascript" src="../analytics.js"></script>
|
|
<script type="text/javascript" src="../analytics.js"></script>
|
|
<noscript><p><img src="//stats.opkode.com/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript>
|
|
<noscript><p><img src="//stats.opkode.com/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript>
|
|
<![if gte IE 9]>
|
|
<![if gte IE 9]>
|
|
- <script src="../node_modules/requirejs/require.js"></script>
|
|
|
|
- <script src="../src/config.js"></script>
|
|
|
|
|
|
+ <script src="../dist/converse-muc-embedded.min.js"></script>
|
|
<![endif]>
|
|
<![endif]>
|
|
</head>
|
|
</head>
|
|
|
|
|
|
@@ -54,42 +53,45 @@
|
|
</body>
|
|
</body>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
- require.config({baseUrl: '../'});
|
|
|
|
- require(['converse-core', 'converse-muc-embedded'], function (converse) {
|
|
|
|
- converse.initialize({
|
|
|
|
- allow_logout: false, // No point in logging out when we have auto_login as true.
|
|
|
|
- allow_muc_invitations: false, // Doesn't make sense to allow because only
|
|
|
|
- // roster contacts can be invited
|
|
|
|
- allow_contact_requests: false, // Contacts from other servers cannot,
|
|
|
|
- // be added and anonymous users don't
|
|
|
|
- // know one another's JIDs, so disabling.
|
|
|
|
- auto_reconnect: true,
|
|
|
|
- authentication: 'anonymous',
|
|
|
|
- auto_login: true,
|
|
|
|
- auto_join_rooms: [
|
|
|
|
- 'anonymous@conference.nomnom.im',
|
|
|
|
- ],
|
|
|
|
- blacklisted_plugins: [
|
|
|
|
- 'converse-controlbox',
|
|
|
|
- 'converse-dragresize',
|
|
|
|
- 'converse-minimize',
|
|
|
|
- 'converse-vcard'
|
|
|
|
- ],
|
|
|
|
- notify_all_room_messages: [
|
|
|
|
- 'anonymous@conference.nomnom.im',
|
|
|
|
- ],
|
|
|
|
- bosh_service_url: 'https://conversejs.org/http-bind/', // Please use this connection manager only for testing purposes
|
|
|
|
- jid: 'nomnom.im', // XMPP server which allows anonymous login (doesn't
|
|
|
|
- // allow chatting with other XMPP servers).
|
|
|
|
- keepalive: true,
|
|
|
|
- hide_muc_server: true, // Federation is disabled, so no use in
|
|
|
|
- // showing the MUC server.
|
|
|
|
- play_sounds: true,
|
|
|
|
- show_controlbox_by_default: false,
|
|
|
|
- strict_plugin_dependencies: false,
|
|
|
|
- whitelisted_plugins: ['converse-muc-embedded'],
|
|
|
|
- debug: true
|
|
|
|
- });
|
|
|
|
|
|
+ converse.initialize({
|
|
|
|
+ allow_logout: false, // No point in logging out when we have auto_login as true.
|
|
|
|
+ allow_muc_invitations: false, // Doesn't make sense to allow because only
|
|
|
|
+ // roster contacts can be invited
|
|
|
|
+ allow_contact_requests: false, // Contacts from other servers cannot,
|
|
|
|
+ // be added and anonymous users don't
|
|
|
|
+ // know one another's JIDs, so disabling.
|
|
|
|
+ auto_reconnect: true,
|
|
|
|
+ authentication: 'anonymous',
|
|
|
|
+ auto_login: true,
|
|
|
|
+ auto_join_rooms: [
|
|
|
|
+ 'anonymous@conference.nomnom.im',
|
|
|
|
+ ],
|
|
|
|
+ // Whitelist non-core plugins that we need
|
|
|
|
+ whitelisted_plugins: ['converse-muc-embedded'],
|
|
|
|
+ // Blacklist plugins which aren't included in the build file,
|
|
|
|
+ // so that other code cannot register their own plugins under
|
|
|
|
+ // those names.
|
|
|
|
+ blacklisted_plugins: [
|
|
|
|
+ "converse-bookmarks",
|
|
|
|
+ "converse-controlbox",
|
|
|
|
+ "converse-dragresize",
|
|
|
|
+ "converse-headline",
|
|
|
|
+ "converse-minimize",
|
|
|
|
+ "converse-otr",
|
|
|
|
+ "converse-register",
|
|
|
|
+ "converse-vcard",
|
|
|
|
+ ],
|
|
|
|
+ notify_all_room_messages: [
|
|
|
|
+ 'anonymous@conference.nomnom.im',
|
|
|
|
+ ],
|
|
|
|
+ bosh_service_url: 'https://conversejs.org/http-bind/', // Please use this connection manager only for testing purposes
|
|
|
|
+ jid: 'nomnom.im', // XMPP server which allows anonymous login (doesn't
|
|
|
|
+ // allow chatting with other XMPP servers).
|
|
|
|
+ keepalive: true,
|
|
|
|
+ hide_muc_server: true, // Federation is disabled, so no use in
|
|
|
|
+ // showing the MUC server.
|
|
|
|
+ play_sounds: true,
|
|
|
|
+ strict_plugin_dependencies: false
|
|
});
|
|
});
|
|
</script>
|
|
</script>
|
|
</html>
|
|
</html>
|