forked from qo-op/bunkerbox
ajax QRcode value to netcat minimal server
This commit is contained in:
parent
e0e6e44f07
commit
38396c89ef
|
@ -18,6 +18,7 @@
|
||||||
|
|
||||||
<h1>JQuery HTML5 QR Code Scanner using Instascan JS Example - ItSolutionStuff.com</h1>
|
<h1>JQuery HTML5 QR Code Scanner using Instascan JS Example - ItSolutionStuff.com</h1>
|
||||||
|
|
||||||
|
<h2>Receiver : echo -e 'HTTP/1.1 200 OK\r\n' | nc -l -p 1234 -q 1 | grep '^GET' | cut -d' ' -f2</h2>
|
||||||
|
|
||||||
|
|
||||||
<video id="preview"></video>
|
<video id="preview"></video>
|
||||||
|
@ -28,6 +29,12 @@
|
||||||
|
|
||||||
scanner.addListener('scan', function (content) {
|
scanner.addListener('scan', function (content) {
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
url: "http://127.0.0.1:1234",
|
||||||
|
data: "qrcode="+content,
|
||||||
|
type: 'GET'
|
||||||
|
});
|
||||||
|
|
||||||
alert(content);
|
alert(content);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue