css trigger
https://csstriggers.com/
var isSetup = setupVariables(e); if(isSetup){ setInterval(captureFrame.bind(self), 4); } else { setTimeout(function(){ setupVariables(e); setInterval(captureFrame.bind(self), 4); }, 100); }
var captureFrame = function(){ canvas.drawImage(cameraVideo, sx /scaleFactor, sy/scaleFactor, sWidth/scaleFactor, sHeight/scaleFactor, dx, dy, dWidth, dHeight); drawOverlay(dWidth, dHeight, scaleFactor); if(self.onframe) self.onframe(); coordinatesHaveChanged = false; };
gulp serve command
[vagrant@localhost qrcode]$ gulp serve [21:54:17] Using gulpfile ~/webapp/app/qrcode/gulpfile.js [21:54:17] Starting 'styles'... [21:54:18] styles all files 26.07 kB [21:54:18] Finished 'styles' after 1.46 s [21:54:18] Starting 'serve'... [21:54:19] Finished 'serve' after 505 ms [WSK] Local URL: http://localhost:3000 [WSK] External URL: http://10.0.2.15:3000 [WSK] Serving files from: .tmp [WSK] Serving files from: app