Subversion Repositories navi

Rev

Rev 3 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 szabot 1
{% extends "base.html" %}
2
 
3 szabot 3
{% block title %}Number translator{% end %}
2 szabot 4
 
5
{% block body %}
6
<b>Na'vi number:</b><br />
7
<form action="/number" method="post">
8
<input id="num" name="num" type="text" value="{{last}}" style="width: 100%;" />
9
<input name="btn" type="submit" value="Translate!" />
10
</form>
11
{% if type(numout) == tuple %}
12
Decimal: {{ numout[0] }}<br />
13
Octal: {{ numout[1] }}
14
{% elif type(numout) == int %}
15
Not a valid number!
16
{% end %}
17
<script type="text/javascript">
18
document.getElementById("num").focus();
19
</script>
122 szabot 20
{% end %}