Commit 054b8594 authored by JC Brand's avatar JC Brand

Move embedded.html to demo folder and update to work.

parent f4308486
......@@ -59,6 +59,7 @@ require.config({
"converse-mam": "src/converse-mam",
"converse-minimize": "src/converse-minimize",
"converse-muc": "src/converse-muc",
"converse-muc-embedded": "src/converse-muc-embedded",
"converse-notification": "src/converse-notification",
"converse-otr": "src/converse-otr",
"converse-ping": "src/converse-ping",
......
......@@ -11,15 +11,14 @@
<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/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="../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" />
<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>
<![if gte IE 9]>
<script src="node_modules/requirejs/require.js"></script>
<script src="config.js"></script>
<script src="/src/converse-muc-embedded.js"></script>
<script src="../node_modules/requirejs/require.js"></script>
<script src="../config.js"></script>
<![endif]>
</head>
......@@ -43,7 +42,7 @@
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<h1 class="brand-heading brand-heading-embedded"><i class="icon-conversejs"></i>Converse.js</h1>
<h1 class="brand-heading brand-heading-embedded"><a style="color: white;" href="/"><i class="icon-conversejs"></i>Converse.js</a></h1>
<p class="intro-text">Embedded MUC chat demo</p>
<div id="converse-embedded-chat"></div>
......@@ -55,6 +54,7 @@
</body>
<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.
......@@ -81,6 +81,7 @@
play_sounds: true,
show_controlbox_by_default: false,
strict_plugin_dependencies: false,
whitelisted_plugins: ['converse-muc-embedded'],
debug: true
});
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment