Nils Diewald | 0e6992a | 2015-04-14 20:13:52 +0000 | [diff] [blame] | 1 | requirejs.config({ |
2 | baseUrl: '../js/src', | ||||
3 | paths : { | ||||
4 | 'lib': '../lib' | ||||
5 | } | ||||
6 | }); | ||||
7 | |||||
Akron | 308db38 | 2016-05-30 22:34:07 +0200 | [diff] [blame] | 8 | var hint = undefined; |
9 | |||||
Akron | 113cc1a | 2016-01-22 21:17:57 +0100 | [diff] [blame] | 10 | require(['hint','hint/array','lib/domReady'], function (hintClass, hintArray, domReady) { |
Nils Diewald | 0e6992a | 2015-04-14 20:13:52 +0000 | [diff] [blame] | 11 | KorAP.hintArray = hintArray; |
12 | domReady(function() { | ||||
Akron | 308db38 | 2016-05-30 22:34:07 +0200 | [diff] [blame] | 13 | hint = hintClass.create(); |
Nils Diewald | 0e6992a | 2015-04-14 20:13:52 +0000 | [diff] [blame] | 14 | }); |
15 | }); | ||||
Akron | 308db38 | 2016-05-30 22:34:07 +0200 | [diff] [blame] | 16 | |
17 | function demoAlert (pos, msg) { | ||||
18 | if (hint !== undefined) | ||||
Akron | 00cd4d1 | 2016-05-31 21:01:11 +0200 | [diff] [blame^] | 19 | hint.alert(pos, msg); |
Akron | 308db38 | 2016-05-30 22:34:07 +0200 | [diff] [blame] | 20 | } |