blob: eae2799cebce583dfcb2051019c0834c473e3735 [file] [log] [blame]
bodmod8e7e6c2021-11-10 11:07:38 +01001<!DOCTYPE html>
2<html>
3 <head>
4 <title>Wordform Services (including Glemm Services)</title>
5 <!-- load client javascript library -->
6 <script src="https://korap.ids-mannheim.de/js/korap-plugin-0.2.js"
7 data-server="https://korap.ids-mannheim.de/"></script>
8 </head>
9 <body>
10 <script>
11 let data = {
12 'action' : 'pipe',
13 'service' : 'http://c0r4ft.ids-mannheim.de:40913/wformServices-0.1-SNAPSHOT/wformServices/plugin.html'
14 };
15
16 function pluginit (p) {
17 p.onMessage = function(msg) {
18 if (msg.key == 'glemm') {
19 if (msg.value) {
20 data['job'] = 'add';
21 }
22 else {
23 data['job'] = 'del';
24 };
25 KorAPlugin.sendMsg(data);
26 };
27 };
28 };
29 </script>
30 </body>
31</html>