snap2laz/index.html

76 lines
2.4 KiB
HTML
Raw Normal View History

2020-10-16 13:50:05 +00:00
<!DOCTYPE html>
<html lang="en" dir="ltr" xmlns:fb="http://ogp.me/ns/fb#">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
2020-10-22 20:44:41 +00:00
<title>Camera to laser roxxx!! </title>
<meta name="description" content="The" />
2020-10-16 13:50:05 +00:00
<style>
video { border: 1px solid #ccc; display: block; margin: 0 0 20px 0; }
#canvas { margin-top: 20px; border: 1px solid #ccc; display: block; }
span.ui-slider-handle.ui-corner-all.ui-state-default { background: dodgerblue;}
</style>
<link rel="stylesheet" type="text/css" href="css/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="js/jquery-ui/jquery-ui.css" />
<link rel="stylesheet" type="text/css" href="js/cropper/cropper.min.css" />
<script src="js/jquery-3.5.1.min.js"></script>
<script src="js/cropper/cropper.min.js"></script>
<script src="js/jquery-ui/jquery-ui.js"></script>
<script src="js/canvas.js"></script>
2020-10-16 13:50:05 +00:00
</head>
<body>
<script>
window.ORIGINAL_JSON=window.JSON;
</script>
<div class="container-fluid container-md">
<div class="row">
<div class="col-sm">
<h1 class="text-primary">Send shots to the laser!</h1>
</div>
</div>
<div class="row">
<div class="col-sm">
<video id="video" autoplay></video>
</div>
<div class="col-sm">
2020-10-21 12:39:48 +00:00
<button class="snap btn btn-lg btn-primary">Take a picture!</button>
2020-10-16 13:50:05 +00:00
<p class="lead">By allowing the use of your camera, you will be able to take snapshots, convert them to black and white images before sending them to the laser server. How cool is that?!</p>
</div>
</div>
<div class="row" id="result">
<div class="col-sm">
<canvas id="canvas" width="640" height="480"></canvas>
</div>
<div class="col-sm">
2020-10-21 12:39:48 +00:00
<h3 class="snap btn btn-lg btn-primary">Not satisfied of the contrast? </h3>
2020-10-16 13:50:05 +00:00
<br/>
<div id="slider"></div>
<br/>
<div class="float-left">white ++</div>
<div class="float-right">++ dark</div><br>
<br/>
<h3>Satisfied? </h3>
<p class="lead">Type the text visible on your image (if any) and push Send.</p>
<div class="form-group">
2020-10-21 12:39:48 +00:00
<input id="text" type="text" class="form-control form-control-lg" placeholder="Type text here"/>
2020-10-16 13:50:05 +00:00
<button id="send" class="form-control form-control-lg btn btn-lg btn-warning btn-block">Send</button>
</div>
2020-10-21 12:39:48 +00:00
<div id="messages">
</div>
2020-10-16 13:50:05 +00:00
</div>
</div>
</div>
</main>
</body>
</html>