spiegel-keyman/web/source/kmwinit.js
2017-07-03 15:58:11 +07:00

27 lines
824 B
JavaScript

/***
KeymanWeb 2.0
Copyright 2017 SIL International
***/
/********************************************************/
/* */
/* Automatically initialize keymanweb with defaults */
/* after the page is fully loaded */
/* */
/********************************************************/
(function()
{
// Declare KeymanWeb object
var keymanweb=window['tavultesoft']['keymanweb'];
// We don't want to instantly init() in case this code is used via bookmarklet.
var readyStateCheckInterval = window.setInterval(function() {
if (document.readyState === "complete")
{
window.clearInterval(readyStateCheckInterval);
keymanweb.init(null);
}
}, 10);
})();