Embed iframe in div widget context
Change-Id: I69769e180999f66f8d262fe6016d7ae35f76f631
diff --git a/dev/demo/plugin-client.html b/dev/demo/plugin-client.html
index 5189e87..2dac29b 100644
--- a/dev/demo/plugin-client.html
+++ b/dev/demo/plugin-client.html
@@ -38,5 +38,6 @@
<li><a onclick="KorAPlugin.resize()">Resize</a></li>
<li><a onclick="flood()">Flood!</a></li>
</ul>
+ <p style="width: 2000px">------------------------------------------------------------------------------------------------------------------------</p>
</body>
</html>
diff --git a/dev/demo/plugin-server.html b/dev/demo/plugin-server.html
index 21362fd..c032c33 100644
--- a/dev/demo/plugin-server.html
+++ b/dev/demo/plugin-server.html
@@ -12,7 +12,14 @@
<body>
<p>Start the demo server with <code>morbo -l 'http://*:3003' t/plugin-server.pl</code> and open <a href="http://localhost:3003/demo/plugin-server.html"><code>this website</code></a>.</p>
<main>
- <div id="container"></div>
+ <div id="search">
+ <ol>
+ <li class="active">
+ <div id="container"></div>
+ <a onclick="KorAP.Plugin.addWidget(document.getElementById('container'), 'http://localhost:3003/demo/plugin-client.html')">Open widget</a>
+ </li>
+ </ol>
+ </div>
</main>
</body>
</html>
diff --git a/dev/demo/plugin-serverdemo.js b/dev/demo/plugin-serverdemo.js
index 563f302..d5f07f8 100644
--- a/dev/demo/plugin-serverdemo.js
+++ b/dev/demo/plugin-serverdemo.js
@@ -7,12 +7,6 @@
define(['app/en','plugin/server','lib/domReady','init','hint/foundries/cnx'], function (lang, pluginClass, domReady) {
domReady(function () {
- var p = pluginClass.create();
-
- // Open widget!
- p.addWidget(
- document.getElementById('container'),
- 'http://localhost:3003/demo/plugin-client.html'
- );
+ KorAP.Plugin = pluginClass.create();
});
});