Subversion Repositories navi

Rev

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

{% extends "base.html" %}

{% block title %}Na'vi 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 %}