From ce36eb04c0b6089e3a4ec85252046951019086cc Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Tue, 9 Feb 2016 18:19:37 +0530 Subject: Frontend interface changes: - Current question in nav bar highlighted with green - Submitted question in nav bar disabled, greyed out - Timer display size increased - Timer warning display, blinking --- yaksh/static/yaksh/css/base.css | 6 +-- yaksh/static/yaksh/css/question.css | 5 ++- yaksh/static/yaksh/js/question.js | 2 + yaksh/templates/yaksh/question.html | 78 +++++++++++++++++++++++++------------ yaksh/views.py | 1 - 5 files changed, 63 insertions(+), 29 deletions(-) diff --git a/yaksh/static/yaksh/css/base.css b/yaksh/static/yaksh/css/base.css index 3570098..e3d5f26 100644 --- a/yaksh/static/yaksh/css/base.css +++ b/yaksh/static/yaksh/css/base.css @@ -2312,15 +2312,15 @@ button.btn::-moz-focus-inner, input[type=submit].btn::-moz-focus-inner { text-decoration: none; } .pagination a:hover, .pagination .active a { - background-color: #c7eefe; + background-color: #00CC66; } /*custom classes*/ .pagination .done a { background-color: #00CC66; } .pagination .disabled a, .pagination .disabled a:hover { - background-color: transparent; - color: #bfbfbf; + background-color: #bfbfbf; + color: #ffffff; } .pagination .next a { border: 0; diff --git a/yaksh/static/yaksh/css/question.css b/yaksh/static/yaksh/css/question.css index 4bf5913..b26d49c 100644 --- a/yaksh/static/yaksh/css/question.css +++ b/yaksh/static/yaksh/css/question.css @@ -4,9 +4,11 @@ padding: 8px; color: #5DFC0A; vertical-align:middle; - width:150px; + width: 160px; + height: 30px; float:right; border-radius: 6px 6px 6px 6px; + font-size:20px; } .td1-class { @@ -15,6 +17,7 @@ .td2-class { width:50px; + padding: 5px 10px 9px; } .page-header { height:50px; diff --git a/yaksh/static/yaksh/js/question.js b/yaksh/static/yaksh/js/question.js index 75baf76..ccedbaf 100644 --- a/yaksh/static/yaksh/js/question.js +++ b/yaksh/static/yaksh/js/question.js @@ -6,7 +6,9 @@ function submitCode() x = document.getElementById("check"); x.disabled = true; x.value = "Checking Answer ..."; + if (document.getElementById("skip")!=null) { document.getElementById("skip").disabled = true; + } } function setSelectionRange(input, selectionStart, selectionEnd) diff --git a/yaksh/templates/yaksh/question.html b/yaksh/templates/yaksh/question.html index e532513..b4123d2 100644 --- a/yaksh/templates/yaksh/question.html +++ b/yaksh/templates/yaksh/question.html @@ -15,31 +15,61 @@