blob: e33faab43e38e9b3823d924270589bca53ebbcb9 [file] [log] [blame]
Nils Diewald0e6992a2015-04-14 20:13:52 +00001requirejs.config({
2 baseUrl: '../js/src',
3 paths : {
4 'lib': '../lib'
5 }
6});
7
Akron308db382016-05-30 22:34:07 +02008var hint = undefined;
9
Akrone39cc862018-04-25 15:16:11 +020010require(['hint','hint/foundries/cnx','lib/domReady'], function (hintClass, hintArray, domReady) {
Nils Diewald0e6992a2015-04-14 20:13:52 +000011 KorAP.hintArray = hintArray;
Akron72f73572017-12-05 12:31:09 +010012 KorAP.Hint = null;
Nils Diewald0e6992a2015-04-14 20:13:52 +000013 domReady(function() {
Akron72f73572017-12-05 12:31:09 +010014 KorAP.Hint = hintClass.create();
Nils Diewald0e6992a2015-04-14 20:13:52 +000015 });
16});
Akron308db382016-05-30 22:34:07 +020017
18function demoAlert (pos, msg) {
Akron72f73572017-12-05 12:31:09 +010019 if (KorAP.hint !== undefined)
20 KorAP.Hint.alert(pos, msg);
Akron308db382016-05-30 22:34:07 +020021}