blob: 3eb38cce31294f22b2f8407151260894f1376497 [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;
12 domReady(function() {
Akron308db382016-05-30 22:34:07 +020013 hint = hintClass.create();
Nils Diewald0e6992a2015-04-14 20:13:52 +000014 });
15});
Akron308db382016-05-30 22:34:07 +020016
17function demoAlert (pos, msg) {
18 if (hint !== undefined)
Akron00cd4d12016-05-31 21:01:11 +020019 hint.alert(pos, msg);
Akron308db382016-05-30 22:34:07 +020020}