diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2019-12-12 01:32:37 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2019-12-12 01:32:37 +0200 |
| commit | 217fcb79fa32f858a06d8200697ddee7c5da625a (patch) | |
| tree | b90d02265ac3be2a4f74eb6777bfb52ebc36391e /Software/Visual_Studio/PPC/Modules/Tango.PPC.Browser/Scripts/main.js | |
| parent | 942aae29de03a5a3e0d139974b3754392ee9c1ff (diff) | |
| download | Tango-217fcb79fa32f858a06d8200697ddee7c5da625a.tar.gz Tango-217fcb79fa32f858a06d8200697ddee7c5da625a.zip | |
Added IsAfterReset to ConnectionResponse PMR.
Started working on PPC.Browser Module !!!
Diffstat (limited to 'Software/Visual_Studio/PPC/Modules/Tango.PPC.Browser/Scripts/main.js')
| -rw-r--r-- | Software/Visual_Studio/PPC/Modules/Tango.PPC.Browser/Scripts/main.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Browser/Scripts/main.js b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Browser/Scripts/main.js new file mode 100644 index 000000000..c43e0e272 --- /dev/null +++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Browser/Scripts/main.js @@ -0,0 +1,21 @@ +(async function () { + await CefSharp.BindObjectAsync("boundAsync", "bound"); + + var inputs = document.getElementsByTagName('input'); + var i = 0; + + do { + + var type = inputs[i].type; + + if (type == 'text' || type == 'email' || type == 'password' || type == 'search' || type == 'date' || type == 'url' || type == 'time' || type == 'tel' || type == 'number') { + inputs[i].onfocus = function () { + boundAsync.openKeyboard(type); + } + inputs[i].onblur = function () { + boundAsync.closeKeyboard(); + } + } + } + while (inputs[++i]) +})();
\ No newline at end of file |
