From a506fd76caf900eca8a2fa4682b094b07d2ae1eb Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Fri, 28 Jul 2017 16:53:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0icon=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/challenges/_edit_task_pass.html.erb | 12 ++++++------ app/views/challenges/_task_pass_form.html.erb | 8 ++++++++ public/stylesheets/css/edu-common.css | 4 +++- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/app/views/challenges/_edit_task_pass.html.erb b/app/views/challenges/_edit_task_pass.html.erb index 96e6e2344..059aa807b 100644 --- a/app/views/challenges/_edit_task_pass.html.erb +++ b/app/views/challenges/_edit_task_pass.html.erb @@ -28,9 +28,9 @@ <% @challenge.challenge_questions.each_with_index do |question, index| %>
  • -
    - > - +
    + +
  • <% end %> @@ -40,9 +40,9 @@ <% @challenge.challenge_questions.each_with_index do |question, index| %>
  • -
    - > - +
    + +
  • <% end %> diff --git a/app/views/challenges/_task_pass_form.html.erb b/app/views/challenges/_task_pass_form.html.erb index 8315a6d83..0381e0692 100644 --- a/app/views/challenges/_task_pass_form.html.erb +++ b/app/views/challenges/_task_pass_form.html.erb @@ -158,6 +158,14 @@ } } } + $("#current-option").html(""); + if($(".check-option-bg").length>0){ + for(var i=0;i<$(".check-option-bg").length;i++){ + $("#current-option").html($("#current-option").html()+$(".check-option-bg").eq(i).html()); + } + }else{ + $("#current-option").html("请点击正确选项"); + } }); }); //设置选项答案 diff --git a/public/stylesheets/css/edu-common.css b/public/stylesheets/css/edu-common.css index f7b5949ec..e664006f7 100644 --- a/public/stylesheets/css/edu-common.css +++ b/public/stylesheets/css/edu-common.css @@ -342,4 +342,6 @@ input::-ms-clear{display:none;} .mh390{min-height: 390px} /*---------------橙色虚线边框-----------------*/ -.border-dash-orange{border: 1px dashed #ffbfaa} \ No newline at end of file +.border-dash-orange{border: 1px dashed #ffbfaa} +/*---------------蓝色背景-----------------*/ +.background-blue{background:#5ECFBA!important;} \ No newline at end of file