Wallpaper Engine

Wallpaper Engine

Ei tarpeeksi arvosteluja
Keyboard input for web apps
Tekijältä M0TI0N
Solution : jQuery virtual onscreen keyboard. sorry keyboard gamers) :(

Note that sensitive info should probably not be transmitted over wallpaper. However, webview apps are actually very secure and from what I gather difficult to exploit. (everything is run through a browser, not executed by the system, and I imagine the developers based wallpaper's webview off an open source web browser or the operating system's web services )

But if you'll be asking for a password or something, you should pass your input through an md5 hashing function. For a free javascript hash generator https://www.npmjs.com/package/js-md5

It is probably also a good idea that anything requesting internet access should have a content security policy.
Here's an example from. https://taco.visualstudio.com/en-us/docs/cordova-security-whitlists/

<meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *">

THE KEYBOARD
This is the simplest version of an online js keyboard i could find.
http://jsfiddle.net/lesson8/hWsKQ/
You can copy the code straight out of jsfiddle.
You will need to download and include in your index jQuery UI, and jQuery.
Also note on the left there are three external resources you need to download and include in your index.

Basically any input you need keys for should look something like this.
$('#myInputElement').keyboard();

where #myInputElement is the id of your input element in html

Note that in order for the text to transfer to your element you will need to click accept. Enter does not accept the text input.

_____________________________________________________________________


This is not the most robust keyboard, but I think it is the simplest. Here are a few others.
-this one does not need any resources other than jQuery - http://jsfiddle.net/MNyyT/1/
-Older version of Mottie's jQuery keyboard https://jsfiddle.net/Mottie/egb3a1sk/
-Most robust and prettiest free virtual keyboard, newest version of Mottie's keyboard https://mottie.github.io/Keyboard/


thanks, question or comments below.
   
Palkinto
Lisää suosikkeihin
Lisätty suosikkeihin
Poista suosikeista
7 kommenttia
ayase 27.5.2017 klo 2.35 
..
虎神 26.5.2017 klo 3.25 
All you need to know is that Tongluowan is mine
虎神 26.5.2017 klo 3.24 
你只要知道铜锣湾是我陈浩南的
友人A 24.5.2017 klo 7.53 
0.0:steamhappy:
zyb980917 22.5.2017 klo 6.40 
hhhhh:steamhappy:
安心 21.5.2017 klo 21.32 
不懂啊
【CHINA】Xin Ge 21.5.2017 klo 16.20 
看不懂