Sindbad~EG File Manager
<!DOCTYPE html>
<html>
<head>
<!-- These meta tags are not necessary for the camera to work -->
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Cámara</title>
<!-- imports the webpage's stylesheet -->
<link rel="stylesheet" href="dist/foto/foto2.css" />
<!-- imports the webpage's javascript file -->
<script src="dist/foto/foto2.js" defer></script>
</head>
<body>
<h1>Tomar Fotografía</h1>
<!-- The `label` is attached to the hidden file input -->
<label for="cameraFileInput">
<span class="btn">Open camera</span>
<script>
function closeWin() {
window.close();
}
</script>
<button onclick= "closeWin();" class="btn salirbtn">Volver al Visor</button>
<!-- The hidden file `input` for opening the native camera -->
<input
id="cameraFileInput"
type="file"
accept="image/*"
capture="environment"
/>
</label>
<!-- displays the picture uploaded from the native camera -->
<img id="pictureFromCamera" />
</body>
</html>
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists