36 lines
1.5 KiB
HTML
36 lines
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>camera-info</title>
|
|
<link rel="stylesheet" href="main.css" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<link rel="manifest" href="manifest.json" />
|
|
</head>
|
|
<body>
|
|
<video id="magic_video" class="offscreen">video stream unavailable</video>
|
|
<div id="home" style="display: none;">
|
|
<button onclick="setdetails()" style="display: none;" id="endcamera">Next</button>
|
|
<canvas id="precanvas" class="offscreen"></canvas>
|
|
<div id="camview">
|
|
<div id="video-container">
|
|
<video id="preview">video stream unavailable</video>
|
|
</div>
|
|
<button onclick="takepicture()">Take Picture!</button>
|
|
</div>
|
|
</div>
|
|
<div id="details" style="display: none;">
|
|
<span>Longitude: <input type="number" id="long"/></span>
|
|
<span>Latitude: <input type="number" id="lat"/></span>
|
|
<button onclick="populateLocation()" id="here">Current Location</button>
|
|
<span>Title: <input type="text" id="title" placeholder="123 A Place"/></span>
|
|
<span>Notes: <input type="text" id="notes" placeholder="Location Notes" /></span>
|
|
<button onclick="render()">Finish</button>
|
|
</div>
|
|
<div id="finalresult" style="display: none;">
|
|
<canvas id="final" width="720" height="480"></canvas>
|
|
<button onclick="download()">Download!</button>
|
|
</div>
|
|
<script src="main.js"></script>
|
|
</body>
|
|
</html>
|