Akron | 479994e | 2018-07-02 13:21:44 +0200 | [diff] [blame] | 1 | requirejs.config({ |
| 2 | baseUrl: '/js/src', |
| 3 | paths : { |
| 4 | 'lib': '../lib' |
| 5 | } |
| 6 | }); |
| 7 | |
| 8 | define(['app/en','plugin/server','lib/domReady','init','hint/foundries/cnx'], function (lang, pluginClass, domReady) { |
| 9 | domReady(function () { |
Akron | 479994e | 2018-07-02 13:21:44 +0200 | [diff] [blame] | 10 | var p = pluginClass.create(); |
| 11 | |
| 12 | // Open widget! |
Akron | a6c32b9 | 2018-07-02 18:39:42 +0200 | [diff] [blame^] | 13 | p.addWidget( |
| 14 | document.getElementById('container'), |
| 15 | 'http://localhost:3003/demo/plugin-client.html' |
| 16 | ); |
Akron | 479994e | 2018-07-02 13:21:44 +0200 | [diff] [blame] | 17 | }); |
| 18 | }); |