Description:
remove debug alert...
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r473:0803f3082e05 - - 1 file changed: 0 inserted, 1 deleted

@@ -1,60 +1,59
1 - content_for :header do
1 - content_for :header do
2 = javascript_include_tag 'local_jquery'
2 = javascript_include_tag 'local_jquery'
3
3
4 :javascript
4 :javascript
5 $(document).ready( function() {
5 $(document).ready( function() {
6 $("#mem_remark").hover( function() {
6 $("#mem_remark").hover( function() {
7 $("#mem_remark_box").show();
7 $("#mem_remark_box").show();
8 }, function() {
8 }, function() {
9 $("#mem_remark_box").hide();
9 $("#mem_remark_box").hide();
10 });
10 });
11 });
11 });
12 - alert("hahaha");
13 :css
12 :css
14 .hof_user { color: orangered; font-style: italic; }
13 .hof_user { color: orangered; font-style: italic; }
15 .hof_language { color: green; font-style: italic; }
14 .hof_language { color: green; font-style: italic; }
16 .hof_value { color: deeppink;font-style: italic; }
15 .hof_value { color: deeppink;font-style: italic; }
17 .info_param { font-weight: bold;text-align: right; }
16 .info_param { font-weight: bold;text-align: right; }
18 .tooltip {
17 .tooltip {
19 font-family: Verdana,sans-serif;
18 font-family: Verdana,sans-serif;
20 font-weight: normal;
19 font-weight: normal;
21 text-align: left;
20 text-align: left;
22 font-size: 1.0em;
21 font-size: 1.0em;
23 color: black;
22 color: black;
24 line-height: 1.1;
23 line-height: 1.1;
25 display: none;
24 display: none;
26 min-width: 20em;
25 min-width: 20em;
27 position: absolute;
26 position: absolute;
28 left: 25px;
27 left: 25px;
29 bottom: 5px;
28 bottom: 5px;
30 border: 1px solid;
29 border: 1px solid;
31 padding: 5px;
30 padding: 5px;
32 background-color: #FFF;
31 background-color: #FFF;
33 word-wrap: break-word;
32 word-wrap: break-word;
34 z-index: 9999;
33 z-index: 9999;
35 overflow: auto;
34 overflow: auto;
36 }
35 }
37
36
38 %h1 (#{Problem.find(params[:id]).name}) #{Problem.find(params[:id]).full_name}
37 %h1 (#{Problem.find(params[:id]).name}) #{Problem.find(params[:id]).full_name}
39
38
40 %h2 Problem Stat
39 %h2 Problem Stat
41 %table.info
40 %table.info
42 %thead
41 %thead
43 %tr.info-head
42 %tr.info-head
44 %th Stat
43 %th Stat
45 %th Value
44 %th Value
46 %tbody
45 %tbody
47 %tr{class: cycle('info-even','info-odd')}
46 %tr{class: cycle('info-even','info-odd')}
48 %td.info_param Submissions
47 %td.info_param Submissions
49 %td= @summary[:count]
48 %td= @summary[:count]
50 %tr{class: cycle('info-even','info-odd')}
49 %tr{class: cycle('info-even','info-odd')}
51 %td.info_param Solved/Attempted User
50 %td.info_param Solved/Attempted User
52 %td #{@summary[:solve]}/#{@summary[:attempt]} (#{(@summary[:solve]*100.0/@summary[:attempt]).round(1)}%)
51 %td #{@summary[:solve]}/#{@summary[:attempt]} (#{(@summary[:solve]*100.0/@summary[:attempt]).round(1)}%)
53 - if @best
52 - if @best
54 %tr{class: cycle('info-even','info-odd')}
53 %tr{class: cycle('info-even','info-odd')}
55 %td.info_param Best Runtime
54 %td.info_param Best Runtime
56 %td
55 %td
57 by #{link_to @best[:runtime][:user], controller:'users', action:'profile', id:@best[:memory][:user_id]}
56 by #{link_to @best[:runtime][:user], controller:'users', action:'profile', id:@best[:memory][:user_id]}
58 using <span class="hof_language">#{@best[:runtime][:lang]}</span>
57 using <span class="hof_language">#{@best[:runtime][:lang]}</span>
59 with <span class="hof_value">#{@best[:runtime][:value] * 1000} milliseconds</span>
58 with <span class="hof_value">#{@best[:runtime][:value] * 1000} milliseconds</span>
60 at submission
59 at submission
You need to be logged in to leave comments. Login now