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 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.
.input-scanner-open
or .input-scanner-open-label
<input type="text" class="input-scanner-open" />
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.