--- a/templates/base.html Thu Apr 22 12:31:29 2010 +0530
+++ b/templates/base.html Fri Apr 23 12:25:39 2010 +0530
@@ -7,7 +7,7 @@
{% block script %}
{% endblock %}
</head>
-<body>
+<body{% block onload %}{% endblock %}>
{% block content %}
{% endblock %}
</body>
--- a/templates/display_question.html Thu Apr 22 12:31:29 2010 +0530
+++ b/templates/display_question.html Fri Apr 23 12:25:39 2010 +0530
@@ -15,9 +15,10 @@
function dopost (){
document.getElementById("queform").submit();
}
- setTimeout("dec_counter()", 1000);
+// setTimeout("dec_counter()", 1000);
</script>
{% endblock %}
+{% block onload %} onload="dec_counter()" {% endblock %}
{% block content %}
{{question.description|linebreaksbr}} <br />
{% if question.code %}