Input Scanner

Repository

Input Scanner

Demo

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)" />

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