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 | e39cc86 | 2018-04-25 15:16:11 +0200 | [diff] [blame] | 10 | require(['hint','hint/foundries/cnx','lib/domReady'], function (hintClass, hintArray, domReady) { |
Nils Diewald | 0e6992a | 2015-04-14 20:13:52 +0000 | [diff] [blame] | 11 | KorAP.hintArray = hintArray; |
Akron | 72f7357 | 2017-12-05 12:31:09 +0100 | [diff] [blame] | 12 | KorAP.Hint = null; |
Nils Diewald | 0e6992a | 2015-04-14 20:13:52 +0000 | [diff] [blame] | 13 | domReady(function() { |
Akron | 72f7357 | 2017-12-05 12:31:09 +0100 | [diff] [blame] | 14 | KorAP.Hint = hintClass.create(); |
Nils Diewald | 0e6992a | 2015-04-14 20:13:52 +0000 | [diff] [blame] | 15 | }); |
16 | }); | ||||
Akron | 308db38 | 2016-05-30 22:34:07 +0200 | [diff] [blame] | 17 | |
18 | function demoAlert (pos, msg) { | ||||
Akron | 72f7357 | 2017-12-05 12:31:09 +0100 | [diff] [blame] | 19 | if (KorAP.hint !== undefined) |
20 | KorAP.Hint.alert(pos, msg); | ||||
Akron | 308db38 | 2016-05-30 22:34:07 +0200 | [diff] [blame] | 21 | } |