blob: 788278758cfe0fee5810a9a8593c432e6508f750 [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
Akron113cc1a2016-01-22 21:17:57 +010010require(['hint','hint/array','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}