From 37b908771cb9c8cd57cf3cc1a057e78756ce8d1f Mon Sep 17 00:00:00 2001
From: miss <994230062@qq.com>
Date: Wed, 26 Jul 2017 10:06:27 +0800
Subject: [PATCH 06/15] =?UTF-8?q?=E6=8B=96=E6=8B=BD=E7=9A=84=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9=E3=80=82=E6=A0=B7=E5=BC=8F=E7=9A=84=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Gemfile | 2 +-
app/views/games/_game_show.html.erb | 38 ++++++++++++++++++++++++++--
app/views/games/_repository.html.erb | 21 ++++++++-------
public/stylesheets/css/taskstyle.css | 12 +++++----
4 files changed, 56 insertions(+), 17 deletions(-)
diff --git a/Gemfile b/Gemfile
index 8033bf210..57e9d17f7 100644
--- a/Gemfile
+++ b/Gemfile
@@ -75,7 +75,7 @@ group :development, :test do
gem 'pry-byebug'
gem "test-unit", "~>3.0"
end
- gem 'rspec-rails', '~> 3.0'
+ # gem 'rspec-rails', '~> 3.0'
gem 'factory_girl_rails'
end
diff --git a/app/views/games/_game_show.html.erb b/app/views/games/_game_show.html.erb
index e4285c23d..b446e1b92 100644
--- a/app/views/games/_game_show.html.erb
+++ b/app/views/games/_game_show.html.erb
@@ -110,6 +110,7 @@
\ No newline at end of file
diff --git a/public/stylesheets/css/taskstyle.css b/public/stylesheets/css/taskstyle.css
index d0a403e6e..9aa7296f2 100644
--- a/public/stylesheets/css/taskstyle.css
+++ b/public/stylesheets/css/taskstyle.css
@@ -145,12 +145,14 @@ input.knowledge_frame{height:30px;line-height:30px;border:none;background:#f3f5f
.-scroll{ overflow:auto;}
.-flex-basic0{flex-basis: 0%!important; display: none}
/*王昌------------拖拽增加样式---------------修改*/
-.-flex-basic40{flex-basis: auto;}
-.-flex-basic50{flex-basis: auto;}
-.b-label{width:2px;cursor:e-resize;}
-.h-center{height:2px;cursor:n-resize;background:#2b2b2b;z-index:9999;}
+.-flex-basic40{flex-basis:auto;}
+.-flex-basic50{flex-basis:auto;}
+.b-label{width:4px;cursor:ew-resize;background:#2b2b2b;}
+.h-center{height:4px;cursor:ns-resize;background:#0b1746;z-index:9999;}
+.-brother{width:100%;height:100%;position:absolute;left:0;top:0;z-index:999;}
+.-bg-weightblack{background:#000;}
/*---------------------------------------------*/
-.-flex-basic60{flex-basis: 70%;}
+.-flex-basic60{flex-basis: auto;}
.-flex-basic100{flex-basis: 100%!important;}
.-header-title{ max-width:500px; font-weight: normal;}
.-header-right{ background:#333;border-radius:25px; padding:5px 15px; height: 30px; position: absolute; right:10px;line-height: 30px;}
From a4050c6da9a570a4899c4e4c4d340b75c99364dd Mon Sep 17 00:00:00 2001
From: daiao <358551898@qq.com>
Date: Wed, 26 Jul 2017 10:21:38 +0800
Subject: [PATCH 07/15] =?UTF-8?q?TPI=E6=8B=96=E6=8B=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/games/_repository.html.erb | 3 ++-
public/stylesheets/css/taskstyle.css | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/app/views/games/_repository.html.erb b/app/views/games/_repository.html.erb
index 36252f55e..36178e65a 100644
--- a/app/views/games/_repository.html.erb
+++ b/app/views/games/_repository.html.erb
@@ -71,13 +71,14 @@
g_l('codotab_con_'+i).className='undis';
}
+ n == 2 ? $("#games_repository_contents").removeClass("-bg-black").addClass("-bg-weightblack")
+ : $("#games_repository_contents").removeClass("-bg-weightblack").addClass("-bg-black");
g_l('codotab_con_'+n).className='dis -relative';
g_l('codetab_nav_'+n).className='blacktab_hover';
};
$('#codetab_nav_2').on("click", function(){
-
$.ajax({
url: "<%= open_webssh_myshixun_path(@myshixun) %>",
success: function(data){
diff --git a/public/stylesheets/css/taskstyle.css b/public/stylesheets/css/taskstyle.css
index 904b395de..2b4195e3f 100644
--- a/public/stylesheets/css/taskstyle.css
+++ b/public/stylesheets/css/taskstyle.css
@@ -148,7 +148,7 @@ input.knowledge_frame{height:30px;line-height:30px;border:none;background:#f3f5f
.-flex-basic40{flex-basis:auto;}
.-flex-basic50{flex-basis:auto;}
.b-label{width:4px;cursor:ew-resize;background:#2b2b2b;}
-.h-center{height:4px;cursor:ns-resize;background:#0b1746;z-index:9999;}
+.h-center{height:4px;cursor:ns-resize;background:#33485F;z-index:9999;}
.-brother{width:100%;height:100%;position:absolute;left:0;top:0;z-index:999;}
.-bg-weightblack{background:#000;}
/*---------------------------------------------*/
From df36063fe63368bcf11f4bbf1b798799631b3342 Mon Sep 17 00:00:00 2001
From: daiao <358551898@qq.com>
Date: Wed, 26 Jul 2017 10:30:47 +0800
Subject: [PATCH 08/15] webssh
---
app/views/games/_game_show.html.erb | 2 ++
app/views/games/_repository.html.erb | 4 ++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/app/views/games/_game_show.html.erb b/app/views/games/_game_show.html.erb
index b446e1b92..c00b73db4 100644
--- a/app/views/games/_game_show.html.erb
+++ b/app/views/games/_game_show.html.erb
@@ -136,6 +136,7 @@ $(function(){
);
doc.bind('mousemove',function(e){
// console.log(dragging);
+ $(".-brother").show();// 代码行的遮罩显示
if(dragging) {
clickX = e.pageX;
@@ -194,6 +195,7 @@ $(function(){
flag = false;
dragging = false;
e.cancelBubble = true;
+ $(".-brother").hide(); // 代码行的遮罩隐藏
});
})
/*-----------------------------------------------------------------------------------*/
diff --git a/app/views/games/_repository.html.erb b/app/views/games/_repository.html.erb
index 36178e65a..8930f2d64 100644
--- a/app/views/games/_repository.html.erb
+++ b/app/views/games/_repository.html.erb
@@ -86,9 +86,9 @@
return;
}else{
// 测试版
- var html = "
";
+ var html = "
";
// 本地版
- var html_local ="
";
+ var html_local ="
";
$("#codotab_con_2").html(html);
var h = $("#games_repository_contents").height() - $("#top_repository").height() - 10;
$("#game_webssh").css("min-height", h);
From 32c3a9ea700a9c2ffac6d6679bfffb4909c9861c Mon Sep 17 00:00:00 2001
From: daiao <358551898@qq.com>
Date: Wed, 26 Jul 2017 11:16:16 +0800
Subject: [PATCH 09/15] =?UTF-8?q?tpi=E6=8B=96=E5=8A=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/stylesheets/css/taskstyle.css | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/public/stylesheets/css/taskstyle.css b/public/stylesheets/css/taskstyle.css
index 2b4195e3f..d29284567 100644
--- a/public/stylesheets/css/taskstyle.css
+++ b/public/stylesheets/css/taskstyle.css
@@ -152,7 +152,7 @@ input.knowledge_frame{height:30px;line-height:30px;border:none;background:#f3f5f
.-brother{width:100%;height:100%;position:absolute;left:0;top:0;z-index:999;}
.-bg-weightblack{background:#000;}
/*---------------------------------------------*/
-.-flex-basic60{flex-basis: auto;}
+.-flex-basic60{flex-basis: 55%;}
.-flex-basic100{flex-basis: 100%!important;}
.-header-title{ max-width:500px; font-weight: normal;}
.-header-right{ background:#333;border-radius:25px; padding:5px 15px; height: 30px; position: absolute; right:10px;line-height: 30px;}
From f0043373e7fcb169836c0ce9b3454d05e1d9a179 Mon Sep 17 00:00:00 2001
From: caishi <1149225589@qq.com>
Date: Wed, 26 Jul 2017 11:18:23 +0800
Subject: [PATCH 10/15] =?UTF-8?q?=E6=96=B0=E5=BB=BA=E9=98=B6=E6=AE=B5?=
=?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8D=95=E9=80=89=E5=A4=9A=E9=80=89=E7=9A=84?=
=?UTF-8?q?=E8=AE=BE=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/challenges/_edit_task_pass.html.erb | 5 +-
app/views/challenges/_task_pass_form.html.erb | 74 ++++++++++++++++++-
app/views/subjects/show.html.erb | 11 ---
public/stylesheets/css/edu-user.css | 2 +-
public/stylesheets/css/taskstyle.css | 10 +++
5 files changed, 84 insertions(+), 18 deletions(-)
diff --git a/app/views/challenges/_edit_task_pass.html.erb b/app/views/challenges/_edit_task_pass.html.erb
index 0e602d69d..57fcd4b48 100644
--- a/app/views/challenges/_edit_task_pass.html.erb
+++ b/app/views/challenges/_edit_task_pass.html.erb
@@ -31,11 +31,12 @@
<% end %>
<% end %>
+
<%# if @challenge.st == 1 %>
-
-
<%# end %>