Insert hint layer into the beginning of document

This fixes setup of SimpleAutocomplete in inline scripts (not in onload/ondomready event handlers) in IE8 and below.
master
Vitaliy Filippov 2015-01-16 14:47:32 +00:00
parent d8e5747563
commit a905d1bf96
2 changed files with 4 additions and 4 deletions

View File

@ -2,8 +2,8 @@
Homepage: http://yourcmc.ru/wiki/SimpleAutocomplete
License: MPL 2.0+ (http://www.mozilla.org/MPL/2.0/)
Version: 2014-09-22
(c) Vitaliy Filippov 2011-2014
Version: 2015-01-16
(c) Vitaliy Filippov 2011-2015
Usage:
Include hinter.css, hinter.js on your page. Then write:
@ -130,7 +130,7 @@ SimpleAutocomplete.prototype.init = function()
t.style.display = 'none';
t.style.position = 'absolute';
t.style.zIndex = 1000;
document.body.appendChild(t);
document.body.insertBefore(t, document.body.childNodes[0]);
}
else
{

2
hinter.min.js vendored

File diff suppressed because one or more lines are too long