add camera pins
This commit is contained in:
parent
ee45d97a8b
commit
93b6260bf9
2 changed files with 5 additions and 5 deletions
|
@ -20,7 +20,7 @@
|
|||
|
||||
function take_photo() {
|
||||
$.get("/photo/", function (data) {
|
||||
|
||||
$("#photo").attr("src", "static/photo.jpg?"+d.getTime());
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
@ -45,7 +45,7 @@
|
|||
<div class="jumbotron">
|
||||
<button class="btn btn-primary btn-lg btn-block" onclick="take_photo();">Take photo</button>
|
||||
<p></p>
|
||||
<img src="{% static '1.jpg' %}" alt="My image">
|
||||
<img id="photo" src="{% static 'photo.jpg' %}">
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="jumbotron">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue