Input Scanner


Input Scanner


Use the class .input-scanner-open to use the scanner with a click on the input element.

Use the class .input-scanner-open-label to use the scanner-open-label to open the scanner.

Use it

Use the classes .input-scanner-open or .input-scanner-open-label
<input type="text" class="input-scanner-open" />
Start with function window.InputScanner.start(elm: HTMLInputElement)
<input type="text" onclick="window.InputScanner.start(this)" />

It is possible to add your own query selectors (IDs, classes) in the WordPress admin interface in order to open the scanner.