From 6ac9e99453543e6a5533f5ab77c7db3c08cc0cf9 Mon Sep 17 00:00:00 2001 From: prathamesh Date: Thu, 17 Nov 2016 13:42:13 +0530 Subject: Changes as per suggestions --- yaksh/templates/yaksh/login.html | 2 +- yaksh/templates/yaksh/question.html | 49 +++++++++++++++++++++++-------------- 2 files changed, 31 insertions(+), 20 deletions(-) (limited to 'yaksh') diff --git a/yaksh/templates/yaksh/login.html b/yaksh/templates/yaksh/login.html index 6de848d..0a6fdc1 100644 --- a/yaksh/templates/yaksh/login.html +++ b/yaksh/templates/yaksh/login.html @@ -29,7 +29,7 @@
  • Define fairly complicated programming problems and have users solve the problem.
  • Immediate verification of code solution.
  • -
  • Supports pretty much arbitrary coding questions in Python, C, C++ and +
  • Supports pretty much arbitrary programming questions in Python, C, C++ and simple Bash and uses "test cases" to test the implementations of the students.
  • Supports simple multiple choice questions and File uploads.
  • Since it runs on your Python, you could technically test any Python based library.
  • diff --git a/yaksh/templates/yaksh/question.html b/yaksh/templates/yaksh/question.html index 382065b..11484fe 100644 --- a/yaksh/templates/yaksh/question.html +++ b/yaksh/templates/yaksh/question.html @@ -5,7 +5,6 @@ {% endblock %} +{% block pagetitle %} Yaksh Online Test {% endblock pagetitle %} {% block css %} @@ -64,10 +64,10 @@ function updateClock(){ return null; } if (t.total<=300000){ - clock.innerHTML = "" + hh + ":" + mm + ":" + ss + ""; + clock.innerHTML = "
    " + hh + ":" + mm + ":" + ss + "
    "; } if (t.total>=300000) { - clock.innerHTML = "" + hh + ":" + mm + ":" + ss + ""; + clock.innerHTML = "
    " + hh + ":" + mm + ":" + ss + "
    "; } } @@ -135,9 +135,19 @@ function call_skip(url)
    -

    {{ question.summary }} (Marks : {{ question.points }}) +

    {{ question.summary }} + {% if question.type == "mcq" %} + (MCQ) + {% elif question.type == "mcc" %} + (MCC) + {% elif question.type == "code" %} + (PROGRAMMING) + {% elif question.type == "upload" %} + (ASSIGNMENT UPLOAD) + {% endif %} + + (Marks : {{ question.points }})

    -

    {{ question.language|title }} {{ question.type|title }} Question


    {{ question.description|safe }} {% if files %}

    Files to download for this question

    @@ -182,19 +192,7 @@ function call_skip(url)

    - {% endif %} -
    -
    {% if question.type == "mcq" or question.type == "mcc"%} @@ -208,7 +206,20 @@ function call_skip(url) {% endif %}
    - + {% if question.type == "code" %} + + {% endif %} + + + +