printing random numbers in appropriate range
This commit is contained in:
+14
-9
@@ -3,20 +3,25 @@
|
||||
<head>
|
||||
<title>{{ title }}</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link href="/static/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
|
||||
<link href="/static/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" media="screen">
|
||||
<style>
|
||||
.pw {
|
||||
padding-top: 100px;
|
||||
}
|
||||
</style>
|
||||
<link href="/static/math.css" rel="stylesheet" media="screen">
|
||||
</head>
|
||||
<body>
|
||||
<section id="content">
|
||||
hello
|
||||
<form method="post" action="{% url 'mmg.views.answer' %}">
|
||||
{% csrf_token %}
|
||||
<div class="number question">
|
||||
<span class="number" id="first">{{ form.first.value }}</span>
|
||||
<span class="number" id="operation">{{ form.operation.value }}</span>
|
||||
<span class="number" id="second">{{ form.second.value }}</span>
|
||||
</div>
|
||||
{{ form.first }}
|
||||
{{ form.operation }}
|
||||
{{ form.second }}
|
||||
{{ form.answer }}
|
||||
<input type="submit" name="check" value="check"/>
|
||||
</form>
|
||||
</section>
|
||||
<script src="/static/jquery-2.0.0.min.js"></script>
|
||||
<script src="/static/bootstrap/js/bootstrap.min.js"></script>
|
||||
<script src="/static/math.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user