Akron | 479994e | 2018-07-02 13:21:44 +0200 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <title>Plugin demo</title> |
| 5 | <link type="text/css" rel="stylesheet" href="/css/kalamar.css" /> |
Akron | a99315e | 2018-07-03 22:56:45 +0200 | [diff] [blame] | 6 | <!-- |
| 7 | see https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP |
| 8 | <meta http-equiv="Content-Security-Policy" content="default-src 'self'; img-src https://*; child-src 'none';"> |
| 9 | --> |
Akron | 479994e | 2018-07-02 13:21:44 +0200 | [diff] [blame] | 10 | <script data-main="/demo/plugin-serverdemo.js" src="/js/lib/require.js" async="async"></script> |
| 11 | </head> |
| 12 | <body> |
| 13 | <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> |
| 14 | <main> |
Akron | 8d646d7 | 2018-07-08 13:45:53 +0200 | [diff] [blame] | 15 | <div id="search"> |
| 16 | <ol> |
| 17 | <li class="active"> |
| 18 | <div id="container"></div> |
Akron | 7991b19 | 2018-07-09 17:28:43 +0200 | [diff] [blame^] | 19 | <a onclick="KorAP.Plugin.addWidget(document.getElementById('container'), 'Example', 'http://localhost:3003/demo/plugin-client.html')">Open widget</a> |
Akron | 8d646d7 | 2018-07-08 13:45:53 +0200 | [diff] [blame] | 20 | </li> |
| 21 | </ol> |
| 22 | </div> |
Akron | 479994e | 2018-07-02 13:21:44 +0200 | [diff] [blame] | 23 | </main> |
| 24 | </body> |
| 25 | </html> |