ation.send({ image: video });
				},
				facingMode: mode,
				width: 720,
				height: 720
			});
			camera.start();
		}

		function stopCamera() {
			camera && camera.stop();
			video && video.remove();
		}

		function start() {
			startCamera();
			document.querySelectorAll('.step-capture').forEach(show);
			document.querySelectorAll('.step-intro').forEach(hide);
		}
	</script>
</body>

</html>