From f0fafed7ba0002369f528a901d9e5590f5bd3bea Mon Sep 17 00:00:00 2001 From: maheshgudi Date: Mon, 8 Jan 2018 17:29:23 +0530 Subject: Separate solution div from question description div --- yaksh/static/yaksh/js/requesthandler.js | 4 +++- yaksh/templates/yaksh/question.html | 38 ++++++++++++++++----------------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/yaksh/static/yaksh/js/requesthandler.js b/yaksh/static/yaksh/js/requesthandler.js index e6048b2..ec2391a 100644 --- a/yaksh/static/yaksh/js/requesthandler.js +++ b/yaksh/static/yaksh/js/requesthandler.js @@ -37,7 +37,9 @@ function unlock_screen() { } function show_solution() { - document.getElementById("solution").style.display = "block"; + var solution = document.getElementById("solution"); + solution.style.display = "block"; + solution.className ="well well-sm"; document.getElementById("skip_ex").style.visibility = "visible"; } diff --git a/yaksh/templates/yaksh/question.html b/yaksh/templates/yaksh/question.html index b7251ad..c7e6efb 100644 --- a/yaksh/templates/yaksh/question.html +++ b/yaksh/templates/yaksh/question.html @@ -144,21 +144,6 @@ question_type = "{{ question.type }}" {% endblock %} {% block main %} -
- {% if notification %} - {% if question.type == "code" %} -