From 85eea4e0992d69486e85e50c4c1dc32ebeee3df0 Mon Sep 17 00:00:00 2001 From: XiaoGeNintendo <34835642+XiaoGeNintendo@users.noreply.github.com> Date: Tue, 4 Feb 2020 15:09:12 +0800 Subject: [PATCH] bootstrap collapse --- WebContent/sview.jsp | 102 +++++++++++++++++++++++++++++-------------- 1 file changed, 70 insertions(+), 32 deletions(-) diff --git a/WebContent/sview.jsp b/WebContent/sview.jsp index a9df05c..6ac5397 100644 --- a/WebContent/sview.jsp +++ b/WebContent/sview.jsp @@ -49,53 +49,91 @@ Memory:<%=s.getRunMem() %>
Judger:<%=s.judger %>
-

Code

-
<%=s.code.replace("<", "<").replace(">",">") %>
-		
-

Compiler Information

-
<%=s.compilerInfo.replace("<", "<").replace(">",">") %>
-		
+
+
+ + Code + +
+
+
+
<%=s.code.replace("<", "<").replace(">",">") %>
+
+
+
+ +
+
+ + Compiler Information + +
+
+
+
<%=s.compilerInfo.replace("<", "<").replace(">",">") %>
+
+
+
+

Testcase Detail

+
<% for(Entry e:s.res.entrySet()){ %> - - - - - -
Subtask: <%=e.getKey() %> [<%=e.getValue().getVerdict()%>;<%=e.getValue().getScore(p.tests.get(e.getKey()).scheme) %>]
+
+ +
+
<% int cnt=0; for(TestResult tr:e.getValue().res){ cnt++; %> - - - - - -
Test <%=e.getKey()%>.<%=cnt %> [<%=tr.verdict%>;<%=tr.score %>] (<%=tr.time %> ms;<%=tr.memory %> KB)
-
Input
-
<%=tr.input.replace("<", "<").replace(">",">") %>
-							
-
Output
-
<%=tr.output.replace("<", "<").replace(">",">") %>
-							
-
Answer
-
<%=tr.answer.replace("<", "<").replace(">",">") %>
-							
-
Checker Information
-
<%=tr.info.replace("<", "<").replace(">",">") %>
-							
-

+
+ +
" class="collapse" data-parent="#set<%=e.getKey() %>"> +
+
Input
+
<%=tr.input.replace("<", "<").replace(">",">") %>
+										
+
Output
+
<%=tr.output.replace("<", "<").replace(">",">") %>
+										
+
Answer
+
<%=tr.answer.replace("<", "<").replace(">",">") %>
+										
+
Checker Information
+
<%=tr.info.replace("<", "<").replace(">",">") %>
+										
+
+
+
<% } %> -

+
+ + +
<% } %> + + \ No newline at end of file