mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-29 03:37:42 +00:00
30 lines
842 B
JavaScript
30 lines
842 B
JavaScript
// KeymanWeb 2.0
|
|
// Copyright 2013 Tavultesoft Pty Ltd
|
|
|
|
/********************************************************/
|
|
/* */
|
|
/* Automatically initialize keymanweb with defaults */
|
|
/* after the page is fully loaded */
|
|
/* */
|
|
/********************************************************/
|
|
|
|
(function()
|
|
{
|
|
// Declare KeymanWeb object
|
|
var keymanweb=window['tavultesoft']['keymanweb'];
|
|
|
|
if(document.readyState === 'complete')
|
|
{
|
|
keymanweb.init(null);
|
|
}
|
|
else
|
|
{
|
|
var readyStateCheckInterval = window.setInterval(function() {
|
|
if (document.readyState === "complete")
|
|
{
|
|
window.clearInterval(readyStateCheckInterval);
|
|
keymanweb.init(null);
|
|
}
|
|
}, 10);
|
|
}
|
|
})();
|