commit | author | age
|
fe4f05
|
1 |
{% load static %} |
SP |
2 |
|
948497
|
3 |
<!DOCTYPE html> |
SP |
4 |
<html lang="en"> |
|
5 |
<head> |
|
6 |
<meta charset="UTF-8"> |
|
7 |
<title>Hello world stran</title> |
fe4f05
|
8 |
<script> |
SP |
9 |
function myFunction(){ |
|
10 |
var xhttp = new XMLHttpRequest(); |
|
11 |
xhttp.open("GET","my-ajax-test/", true); |
|
12 |
xhttp.send(); |
|
13 |
} |
|
14 |
|
|
15 |
</script> |
|
16 |
|
948497
|
17 |
</head> |
SP |
18 |
<body> |
|
19 |
<h1>hello world</h1> |
fe4f05
|
20 |
<img src='{% static "sensorui/muca.jpg" %}'> |
SP |
21 |
<button onclick="myFunction()">Vzgi lucko</button> |
948497
|
22 |
sin(pi/2)={{ sinpi2 }} |
SP |
23 |
<hr /> |
|
24 |
Zahtevek podal: {{ moje_ime }} |
|
25 |
<br /> |
|
26 |
|
|
27 |
<table> |
|
28 |
<tr> |
|
29 |
<th>Senzor ID</th> |
|
30 |
<th>Podatek</th> |
|
31 |
<th>Datum</th> |
|
32 |
</tr> |
|
33 |
{% for row in data_table %} |
|
34 |
<tr> |
fe4f05
|
35 |
<td>{{ row.sensor_id.pk }}</td> |
SP |
36 |
<td>{{ row.value }}{{ row.sensor_id.sensor_type.unit }}</td> |
|
37 |
<td>{{ row.timestamp }}</td> |
948497
|
38 |
</tr> |
SP |
39 |
{% endfor %} |
|
40 |
</table> |
|
41 |
|
|
42 |
|
|
43 |
</body> |
|
44 |
</html> |