| require(['plugin/server','panel/query', 'hint','hint/foundries/cnx','lib/domReady'], function (pluginClass, queryPanelClass, hintClass, hintArray, domReady) { |
| KorAP.hintArray = hintArray; |
| KorAP.Hint = hintClass.create(); |
| var queryPanel = queryPanelClass.create(); |
| var sform = document.getElementById("searchform"); |
| var vcView = document.getElementById('vc-view') |
| // The views are below the query bar |
| sform.insertBefore(queryPanel.element(),vcView); |
| KorAP.Panel = KorAP.Panel || {}; |
| KorAP.Panel['query'] = queryPanel; |
| KorAP.Plugin = pluginClass.create(); |
| 'desc' : 'Some content about cats', |
| 'classes' : ['translate'], |
| "template" : "http://localhost:3003/demo/plugin-client.html" |
| "template" : "http://localhost:3003/demo/plugin-client.html" |
| 'desc' : 'Shorten all queries', |
| "template" : "http://localhost:3003/demo/plugin-client.html" |
| function demoAlert (pos, msg) { |
| if (KorAP.hint !== undefined) |
| KorAP.Hint.alert(pos, msg); |