From 34da9db5cf0570a22c6707f6e125225a18ab41d2 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 19 Jul 2014 07:51:27 -0700 Subject: Sweep key --- public/js/webqr.js | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'public/js/webqr.js') diff --git a/public/js/webqr.js b/public/js/webqr.js index 06f85b18..ad80065d 100644 --- a/public/js/webqr.js +++ b/public/js/webqr.js @@ -10,7 +10,7 @@ var webkit=false; var moz=false; var v=null; -var vidhtml = ''; +var vidhtml = ''; $(function() { load(); @@ -54,13 +54,6 @@ function htmlEntities(str) { return String(str).replace(/&/g, '&').replace(//g, '>').replace(/"/g, '"'); } -function read(a) -{ - var html="
"; - html+=""+htmlEntities(a)+"

"; - document.getElementById("result").innerHTML=html; -} - function isCanvasSupported(){ var elem = document.createElement('canvas'); return !!(elem.getContext && elem.getContext('2d')); @@ -90,21 +83,12 @@ function load() if(isCanvasSupported() && window.File && window.FileReader) { initCanvas(800, 800); - qrcode.callback = read; setwebcam(); } - else - { - document.getElementById("mainbody").style.display="inline"; - document.getElementById("mainbody").innerHTML='

QR code scanner for HTML5 capable browsers


'+ - '

sorry your browser is not supported



'+ - '

try or or

'; - } } function setwebcam() { - document.getElementById("result").innerHTML="- scanning -"; if(stype==1) { setTimeout(captureToCanvas, 500); -- cgit v1.2.3