Reduce size of decimal places
This commit is contained in:
parent
04f1b9c177
commit
736a20c224
@ -443,10 +443,13 @@ async function clickCount() {
|
||||
}
|
||||
}
|
||||
function ppVotes(v) {
|
||||
result = parseFloat(v).toFixed(ppDPs);
|
||||
let result = parseFloat(v).toFixed(ppDPs);
|
||||
if (parseFloat(result) == 0) {
|
||||
return ' '
|
||||
}
|
||||
if (result.indexOf('.') >= 0) {
|
||||
result = result.substring(0, result.indexOf('.')) + '<sup>' + result.substring(result.indexOf('.')) + '</sup>';
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
@ -65,6 +65,10 @@ td {
|
||||
td.count {
|
||||
text-align: right;
|
||||
}
|
||||
td.count sup {
|
||||
font-size: 0.6rem;
|
||||
top: 0;
|
||||
}
|
||||
tr:first-child td {
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
Reference in New Issue
Block a user