blob: fd80b43bb49cf225b22cb7d4f39aa52a76ae8ea1 [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)
19 hint.charAlert(pos, msg);
20}