diff --git a/example/live_w_locator.html b/example/live_w_locator.html index 31f55ac..de474b4 100644 --- a/example/live_w_locator.html +++ b/example/live_w_locator.html @@ -34,10 +34,10 @@ Barcode-Type - Code 128 + Code 128 Code 39 Code 39 VIN - EAN + EAN EAN-8 UPC UPC-E diff --git a/example/live_w_locator.js b/example/live_w_locator.js index a71f789..76f9954 100644 --- a/example/live_w_locator.js +++ b/example/live_w_locator.js @@ -55,6 +55,7 @@ $(function() { $li.find("img").attr("src", result.frame); $li.find("h4.code").html(result.codeResult.code + " (" + result.codeResult.format + ")"); $ul.prepend($li); + if(result.codeResult.code==="9789400506")location.href="https://medewerkers.saxion.nl/wps/myportal/!ut/p/b1/hY7LDoIwEEW_xS_olJZOWZpIoTyKFGKkG8PCGBIeG-P3WyNxYYLe3eSek7nEkY5CyAPJMWDkTNzcP4Zbfx-WuR9ftxOXUicxBJGgkFcS9AmVsUJQGaEHOg_ARvbw5bOCgc7aGgUqgISuvtG2bvI25XnchKAPpmD2kDCJb_9T89j6urW1LauMArDV__Hgz36TLtOVdB7DTezIyORGpaTePQFxT56z/dl4/d5/L2dBISEvZ0FBIS9nQSEh/"; }); }, _accessByPath: function(obj, path, val) { diff --git a/test/spec/array_helper.spec.js b/test/spec/array_helper.spec.js index e0c24f3..cd54a23 100644 --- a/test/spec/array_helper.spec.js +++ b/test/spec/array_helper.spec.js @@ -23,7 +23,7 @@ describe('shuffle', function() { }); describe('toPointList', function() { - it('converts an Array to a List of poitns', function() { + it('converts an Array to a List of points', function() { var input = [[1, 2], [2, 2], [3, 2]]; expect(ArrayHelper.toPointList(input)).to.equal("[[1,2],\r\n[2,2],\r\n[3,2]]"); });