Subversion Repositories navi

Rev

Rev 176 | Blame | Compare with Previous | Last modification | View Log | RSS feed

{% extends "base.html" %}

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

{% block body %}
<!--
#    This file is part of Tsim Apiak.
#  
#    Tsim Apiak is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public Licence as published by
#    the Free Software Foundation, either version 3 of the Licence, or
#    (at your option) any later version.
#  
#    In addition to this, you must also comply with clause 4 of the
#    Apache Licence, version 2.0, concerning attribution. Where there
#    is a contradiction between the two licences, the GPL          
#    takes preference.
#  
#    Tsim Apiak is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#  
#    You should have received a copy of the GNU General Public License
#    along with Tsim Apiak.  If not, see <http://www.gnu.org/licenses/>.  
-->

<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 %}