Created
March 29, 2016 16:41
-
-
Save johngrantuk/9f80984c4f2e9f369b569f7160a4183e to your computer and use it in GitHub Desktop.
Django Channels Sensor template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>{% block title %}Sensor Example{% endblock %}</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> | |
<body> | |
{% load staticfiles%} | |
<div class="section"> | |
<div class="container"> | |
<h1>Sensor Reading</h1> | |
<p> | |
<div id="sensor">Sensor Reading: {{ reading }}</div> | |
</p> | |
</div> | |
</div> | |
<script type="text/javascript" src='{% static "jquery-1.12.1.min.js" %}'></script> | |
<script type="text/javascript" src='{% static "reconnecting-websocket.min.js" %}'></script> | |
<script type="text/javascript" src='{% static "sensor.js" %}'></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment