Initial commit

This commit is contained in:
Kevin Alberts 2018-05-21 21:55:20 +02:00
commit 1544855377
Signed by: Kurocon
GPG key ID: BCD496FEBA0C6BC1
20 changed files with 743 additions and 0 deletions

35
templates/index.html Normal file
View file

@ -0,0 +1,35 @@
{% load staticfiles %}
<html>
<head>
<title>Ha Bier!</title>
<script type="text/javascript"
src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js">
</script>
<script type="text/javascript"
src="{% static 'jpeg_camera_with_dependencies.min.js' %}"></script>
<script type="text/javascript" src="{% static 'photo.js' %}"></script>
<link href="{% static 'photo.css' %}" media="all" rel="stylesheet" type="text/css" >
</head>
<body>
<div id="camera">
<div class="placeholder">
Your browser does not support camera access.<br>
We recommend
<a href="https://www.google.com/chrome/" target="_blank">Chrome</a>
&mdash; modern, secure, fast browser from Google.<br>
It's free.
</div>
</div><br>
<button id="take_snapshots">Take Picture</button>
<div id="snapshots"></div>
<button id="discard_snapshot">Discard snapshot</button>
<button id="upload_snapshot">Upload to URL</button><br>
<img src="{% static 'loader.gif' %}" id="loader" alt="loading">
<div id="upload_status"></div>
<div id="upload_result"></div>
</body>
</html>