Subversion Repositories navi

Rev

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

{% extends "base.html" %}

{% block title %}Number translator{% end %}

{% block body %}
<b>Na'vi number:</b><br />
<form action="/number" method="post">
<input id="num" name="num" type="text" value="{{last}}" style="width: 100%;" />
<input name="btn" type="submit" value="Translate!" />
</form>
{% if type(numout) == tuple %}
Decimal: {{ numout[0] }}<br />
Octal: {{ numout[1] }}
{% elif type(numout) == int %}
Not a valid number!
{% end %}
<script type="text/javascript">
document.getElementById("num").focus();
</script>
{% end %}