<script src="jkeymagic.js" type="text/javascript"></script>
<link rel="stylesheet" href="jkeymagic.css" type="text/css">
JKME.keyboard.addKeyboard(PATH, NAME[, KEYBOARD]);
JKME.attach(DOM_ELEMENT_TO_ATTACH);
JKME.attach(DOM_ELEMENT_ID_IN_STRING);
var el = ['input']; for (var i in el) { JKME.attach(el[i]); }
var el = ['input']; for (var i in el) { JKME.attach(el[i]).onSwitchedLayout = function (sender, keyboardName) { if (keyboardName === 'ZawgyiL') { sender.element.style.fontFamily = 'Zawgyi-One'; } else if (keyboardName.search('Ayar') != -1) { sender.element.style.fontFamily = 'Ayar'; } else { sender.element.style.fontFamily = 'Masterpiece Uni Sans, Myanmar3, Parabaik, Paduak, Thanlwin'; } } }
JKME.detach(DOM_ELEMENT_TO_ATTACH);
JKME.detach(DOM_ELEMENT_ID_IN_STRING);
I would be appreciated if you add following code to your page also. And this will display something like Powered by jKeyMagic at the very right bottom of your page.
<div style="font-size:10px;position:relative;bottom:5px;text-align:right;">
Powered by <a href='http://ttkz.me/jkeymagic/index.html'><font color="#ed145b">jKeyMagic</font></a></div>