From 9ef33daa39e3af715f7816ae186a0a1421c64e13 Mon Sep 17 00:00:00 2001 From: cxt Date: Sat, 18 Feb 2017 15:07:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=A6=E7=94=9F=E5=88=97=E8=A1=A8=E5=90=84?= =?UTF-8?q?=E7=A7=AF=E5=88=86=E6=A0=87=E9=A2=98=E7=9A=84tip=E8=AF=B7?= =?UTF-8?q?=E7=BB=9F=E4=B8=80=E6=94=BE=E5=9C=A8=E5=8F=B3=E4=BE=A7=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E5=8C=BA=EF=BC=88=E5=8F=82=E7=85=A7=E7=8F=AD=E7=BA=A7?= =?UTF-8?q?=E9=82=80=E8=AF=B7=E7=A0=81tip=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/courses/_new_member_list.html.erb | 22 +++++++++++++++++---- public/stylesheets/syllabus.css | 4 +++- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/app/views/courses/_new_member_list.html.erb b/app/views/courses/_new_member_list.html.erb index 67973dc65..0ae68b65b 100644 --- a/app/views/courses/_new_member_list.html.erb +++ b/app/views/courses/_new_member_list.html.erb @@ -20,7 +20,8 @@ <% elsif @sort_type == "score" && @score_sort_by == 'asc' %> <% end %> -
+
+

积分规则
班级作业的得分总和

@@ -32,7 +33,8 @@ <% elsif @sort_type == "ex_score" && @score_sort_by == 'asc' %> <% end %> -
+
+

积分规则
班级测验的得分总和

@@ -44,7 +46,8 @@ <% elsif @sort_type == "act_score" && @score_sort_by == 'asc' %> <% end %> -
+
+

积分规则
资源发布:资源数 x 5
问答发布:发帖数 x 2
@@ -58,7 +61,8 @@

总得分 -
+
+

积分规则
作业得分+测评得分+社区得分

@@ -212,6 +216,16 @@ }); }); + $(".sy_fenban_tap").each(function(){ + $(this).mouseenter(function(){ + $(".sy_fenban_show").hide(); + $(this).children('.sy_fenban_show').show(); + }); + $(this).mouseleave(function(){ + $(this).children('.sy_fenban_show').hide(0); + }); + }); + $(".sy_tips_box_inner").each(function(){ $(this).mouseover(function(){ $(this).stop(); diff --git a/public/stylesheets/syllabus.css b/public/stylesheets/syllabus.css index 5c2d2bd77..d56c3d1cd 100644 --- a/public/stylesheets/syllabus.css +++ b/public/stylesheets/syllabus.css @@ -643,7 +643,9 @@ a:hover.sy_class_ltitle{ color:#333;} .sy_new_table_width tr th.sy_th13{ width: 13%;} .sy_fenban_tap{ cursor: pointer; position: relative;} .sy_fenban_tap:hover .sy_fenban_show{ display: block;} -.sy_fenban_show{ width:140px; z-index: 999;text-align: center; line-height:2.0; font-size:12px; font-weight: normal;color:#888;background-color:#fff; border:1px solid #eaeaea;border-radius:5px;position:absolute;left:20px; top:30px;padding:5px 0px;display:none; box-shadow: 0px 2px 8px rgba(146, 153, 169, 0.5);} +.sy_fenban_show{ position: absolute;line-height: 2.0;padding: 5px 10px; white-space: nowrap; font-weight: normal;color:#888; background-color: #fff; left:30px; top: -5px; box-shadow: 0px 2px 8px rgba(146, 153, 169, 0.5);} +.sy_fenban_show span { display: block; border-width: 10px;position: absolute;top: 15px; left: -18px; border-style: dashed solid dashed dashed;border-color: transparent #fff transparent transparent;font-size: 0;line-height: 0;} +.sy_fenban_show em { display: block; border-width: 11px;position: absolute;top: 42px; left: -23px; border-style: dashed solid dashed dashed;border-color: transparent #eaeaea transparent transparent;font-size: 0;line-height: 0;} .sy_tips_box{ position: relative; cursor: pointer;} .sy_tips_box:hover .sy_tips_box_inner{ display: block;} .sy_tips_box_inner{ position: absolute;line-height: 2.0;padding: 5px 10px; white-space: nowrap; background-color: #fff; left:30px; top: -5px; box-shadow: 0px 2px 8px rgba(146, 153, 169, 0.5);}