2018-11-28 21:55:54 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<title>toot-my-t-shirt</title>
|
|
|
|
<link rel="icon" type="image/png" href="/static/images/sb-favicon.png">
|
2018-12-01 11:18:30 +01:00
|
|
|
<link rel="stylesheet" type="text/css" href="/static/css/materialize.min.css">
|
2018-11-28 21:55:54 +01:00
|
|
|
<link rel="stylesheet" type="text/css" href="/static/css/sb.css">
|
2018-12-01 11:18:30 +01:00
|
|
|
<script type="text/javascript" src="/static/js/materialize.min.js"></script>
|
2018-11-28 21:55:54 +01:00
|
|
|
<script type="text/javascript" src="/static/js/sb.js"></script>
|
|
|
|
</head>
|
|
|
|
<body>
|
2018-12-01 11:18:30 +01:00
|
|
|
<div id="main" class="container">
|
|
|
|
<div id="header" class="row">
|
|
|
|
<h1>toot-my-t-shirt</h1>
|
|
|
|
Share the love for your geek t-shirt!
|
2018-11-28 21:55:54 +01:00
|
|
|
</div>
|
2018-12-01 11:18:30 +01:00
|
|
|
|
|
|
|
<div id="button-containers" class="row">
|
|
|
|
<button id="take-photo-btn" class="btn waves-effect waves-light disabled" name="take-photo-btn" onClick="takePhoto()">
|
|
|
|
<i class="material-icons right">Take photo!</i>
|
|
|
|
</button>
|
|
|
|
<button id="send-photo-btn" class="btn waves-effect waves-light disabled" name="send-photo-btn" onClick="sendPhoto()">
|
|
|
|
<i class="material-icons right">Share photo!</i>
|
|
|
|
</button>
|
|
|
|
<button id="cancel-photo-btn" class="btn waves-effect waves-light disabled" name="cancel-photo-btn" onClick="cancelPhoto()">
|
|
|
|
<i class="material-icons right">Cancel photo</i>
|
|
|
|
</button>
|
|
|
|
<button id="init-btn" class="btn waves-effect waves-light" name="init-btn" onClick="initCamera()">
|
|
|
|
<i class="material-icons right">Grant camera permissions</i>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
2018-12-01 11:59:20 +01:00
|
|
|
<div id="sb-message">
|
|
|
|
<span id="sb-message-text">will be gone in few seconds!</span>
|
|
|
|
</div>
|
2018-12-01 11:18:30 +01:00
|
|
|
<div id="canvas-container">
|
|
|
|
<video id="sb-video" autoplay="true" muted="muted"></video>
|
|
|
|
<canvas id="sb-canvas"></canvas>
|
|
|
|
</div>
|
2018-11-28 21:55:54 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|