<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width"><title>JS Bin</title><script>function injectQRCode(idCode) {alert(idCode);}function checkKiosk() {if (typeof FullyKiosk !== "undefined") {void fully.bind('onQrScanSuccess','injectQRCode(\'$code\');')}}</script></head><body onload="checkKiosk();"><button type="button" onclick="">Scan QR Code</button></body></html>