blob: e66dfd552d182fd6a6fcff0526abdd42c413769e [file] [log] [blame]
Akron479994e2018-07-02 13:21:44 +02001requirejs.config({
2 baseUrl: '/js/src',
3 paths : {
4 'lib': '../lib'
5 }
6});
7
Akrone1c27f62018-07-20 11:42:59 +02008define(['app/en','match', 'panel/match', 'plugin/server','lib/domReady','init'], function (lang, matchClass, matchPanelClass, pluginClass, domReady) {
Akron479994e2018-07-02 13:21:44 +02009 domReady(function () {
Akron7c6e05f2018-07-12 19:08:13 +020010
Akrone1c27f62018-07-20 11:42:59 +020011 // Initialize match
12 matchClass.create(
13 document.getElementById('WPD-FFF.01460-p119-120')
14 );
15
16 // Load plugin server
Akron8d646d72018-07-08 13:45:53 +020017 KorAP.Plugin = pluginClass.create();
Akron7c6e05f2018-07-12 19:08:13 +020018
Akrone1c27f62018-07-20 11:42:59 +020019 // Register match plugin
Akron7c6e05f2018-07-12 19:08:13 +020020 KorAP.Plugin.register({
21 'name' : 'Example New',
22 'desc' : 'Some content about cats',
23 // 'about' : 'https://localhost:5678/',
24 'embed' : [{
Akron10a47962018-07-12 21:17:10 +020025 'panel' : 'match',
Akron7c6e05f2018-07-12 19:08:13 +020026 'title' : 'Translate',
27 'classes' : ['translate'],
28 'onClick' : {
29 'action' : 'addWidget',
Akron7c6e05f2018-07-12 19:08:13 +020030 'template' : 'http://localhost:3003/demo/plugin-client.html',
31 }
32 }]
33 });
34
Akron479994e2018-07-02 13:21:44 +020035 });
36});