Marc Kupietz | cdd5130 | 2018-03-19 16:36:54 +0100 | [diff] [blame^] | 1 | function queryKorAPpoliqarp(query) { |
2 | window.open('http://korap.ids-mannheim.de/kalamar/?ql=poliqarp&q='+encodeURIComponent(query), 'KorAP'); | ||||
3 | } | ||||
4 | |||||
5 | |||||
6 | function queryKorAPalternatives(alt1, alt2) { | ||||
7 | queryKorAPpoliqarp("{1:[orth="+ alt1 +"]} | {2:[orth=" + alt2 +"]}"); | ||||
8 | } | ||||
9 | |||||
10 | function paradigmatorClick(e, target, paradigmator) { | ||||
11 | if (e.which === 2) { | ||||
12 | e.preventDefault(); | ||||
13 | queryKorAPalternatives(target, paradigmator); | ||||
14 | return false; | ||||
15 | } | ||||
16 | } |