Permalink
Browse files

랭크, 점수가 겹치게 수정 - kcm1700

  • Loading branch information...
1 parent 600ad18 commit e835e7922c81d579910426acebbbf41cb979af8b @shonenA shonenA committed Feb 16, 2012
Showing with 24 additions and 6 deletions.
  1. +4 −3 index.html
  2. +20 −3 script/juspinbeat.js
View
7 index.html
@@ -54,15 +54,16 @@
}
/* jbt */
- .records th { text-align: center; background: #444; color: white; }
+ .records th { text-align: center; background: #444; color: white; vertical-align: middle; }
+ .records th.user { min-width: 120px; }
.difficulty-BASIC { background: #484 !important; color: white; }
.difficulty-ADVANCED { background: #884 !important; color: white; }
.difficulty-EXTREME { background: #955 !important; color: white; }
.record td { vertical-align: middle; }
- .record .rank { font-size: 40px; color: #CCC; font-family: Tahoma; }
- .record .score { font-size: 18px; }
+ .record .rank { line-height: 0%; font-size: 40px; color: #DDD; font-family: Tahoma; }
+ .record .score { line-height: 0%; font-size: 18px;}
.record .best-diff { font-size: 10px; }
.nav-shortcut, .dropdown, .pager > .previous, .pager > .next { cursor: pointer; }
View
23 script/juspinbeat.js
@@ -33,7 +33,7 @@ function makeUserRecords( records ) {
if( typeof(rank) === 'undefined' ) {
rank = score;
}
- var html = '<span class="rank">';
+ var html = '<span class="rank pull-left">';
if( rank < 500000 ) html += "E";
else if( rank < 700000 ) html += "D";
else if( rank < 800000 ) html += "C";
@@ -71,7 +71,17 @@ function makeUserRecords( records ) {
}
function makeHeader( musiclist ) {
- var ret = '<thead><tr><th>User</th>';
+ var ret = '';
+ ret += '<colgroup>';
+ ret += '<col width="*" />';
+ ret += '<col width="14%" />';
+ ret += '<col width="14%" />';
+ ret += '<col width="14%" />';
+ ret += '<col width="14%" />';
+ ret += '<col width="14%" />';
+ ret += '<col width="14%" />';
+ ret += '</colgroup>';
+ ret += '<thead><tr><th class="user">User</th>';
for( i in musiclist ) {
var c = musiclist[i];
var cl = "difficulty-" + c[1];
@@ -82,7 +92,14 @@ function makeHeader( musiclist ) {
}
function makeHistory( history ) {
- var ret = '<table class="history table"><thead>';
+ var ret = '<table class="history table">'
+ ret += '<colgroup>';
+ ret += '<col width="25%" />';
+ ret += '<col width="20%" />';
+ ret += '<col width="*" />';
+ ret += '<col width="20%" />';
+ ret += '</colgroup>';
+ ret += '<thead>';
ret += '<tr>';
ret += '<th>Date</th>';
ret += '<th>User</th>';

0 comments on commit e835e79

Please sign in to comment.