templates/quiz_intro.html
author nishanth
Wed, 21 Apr 2010 19:17:47 +0530
changeset 33 d28d0957a5ab
child 56 d8d4387b3281
permissions -rw-r--r--
added intro page and manual submit button in question page
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
33
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
     1
{% extends 'base.html' %}
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
     2
{% block script %}
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
     3
<script language="javascript">
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
     4
		var time_left = 300;
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
     5
		function dec_counter (){
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
     6
				time_left -= 1;
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
     7
				if (time_left) {
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
     8
						document.getElementById("time_left").value = "Time left: " + time_left + " secs";
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
     9
						setTimeout("dec_counter()", 1000);
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
    10
				}
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
    11
				else {
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
    12
						dopost();
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
    13
				}
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
    14
		}
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
    15
        function dopost (){
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
    16
            document.getElementById("queform").submit();
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
    17
        }
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
    18
		setTimeout("dec_counter()", 1000);
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
    19
    </script>
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
    20
{% endblock %}
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
    21
{% block content %}
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
    22
Welcome {{user.get_full_name}} <br />
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
    23
<br />
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
    24
<ul>
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
    25
		<li> You are about to start quiz in a while </li>
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
    26
		<li> There will be a box (as shown below) where you have to type the answer </li>
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
    27
		<li> Please use 4 spaces for indentation </li>
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
    28
		<li> Some questions are multiple choice type and hence will have options instead of textbox </li>
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
    29
		<br />
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
    30
<li> There will be a timer running at the bottom as shown in this page.</li>
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
    31
<li> The page will auto submit after the timer runs out </li>
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
    32
<li> You can also click the submit button to submit the answer before the timer ends </li>
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
    33
<br />
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
    34
<li> DO NOT refresh the page after the timer starts. If a question reloads, it is marked as incorrect </li>
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
    35
<br />
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
    36
The quiz starts after the timer runs out.<br />
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
    37
You can click on submit to start the quiz right away.<br />
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
    38
All the best.<br /><br />
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
    39
Answer:<br />
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
    40
<textarea></textarea>
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
    41
		<form id="queform" action="/quiz/answer/{{quiz.key}}" method="get">
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
    42
				<input type="submit" value="Submit"></form>
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
    43
<input type="button" value="Time left: 300 secs" id="time_left">
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents:
diff changeset
    44
{% endblock %}