templates/quiz_intro.html
author nishanth
Fri, 02 Jul 2010 14:12:25 +0530
changeset 87 e81b105b1128
parent 56 d8d4387b3281
permissions -rw-r--r--
found easier way to get things done. so removed all the junk code.
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 />
56
d8d4387b3281 made change in show report as per requirement and improved the quiz intro
nishanth
parents: 33
diff changeset
    30
<li> Each question will have a timer running at the bottom as shown in this page.</li>
d8d4387b3281 made change in show report as per requirement and improved the quiz intro
nishanth
parents: 33
diff changeset
    31
<li> The question will auto submit after the timer runs out </li>
33
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 />
56
d8d4387b3281 made change in show report as per requirement and improved the quiz intro
nishanth
parents: 33
diff changeset
    36
The quiz starts after the timer on this page runs out.<br />
33
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 %}