Make table responsive and fix the sorting of score.
This commit is contained in:
parent
3852e43391
commit
ae741914ae
0
.openshift/markers/force_clean_build
Normal file
0
.openshift/markers/force_clean_build
Normal file
@ -12,8 +12,10 @@ layout: default
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-xs-12">
|
<div class="col-xs-12">
|
||||||
{% assign table = page.url | remove_first: '/' | append: 'table.html' %}
|
<div class="table-responsive">
|
||||||
{% include {{table}} %}
|
{% assign table = page.url | remove_first: '/' | append: 'table.html' %}
|
||||||
|
{% include {{table}} %}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-xs-12">
|
<div class="col-xs-12">
|
||||||
|
@ -3,14 +3,17 @@ $(function() {
|
|||||||
$.tablesorter.addParser({
|
$.tablesorter.addParser({
|
||||||
id: 'score',
|
id: 'score',
|
||||||
format: function(s, table, cell, cellIndex) {
|
format: function(s, table, cell, cellIndex) {
|
||||||
|
return s.replace(/¼/,'.25');
|
||||||
return s.replace(/½/,'.5');
|
return s.replace(/½/,'.5');
|
||||||
|
return s.replace(/¾/,'.75');
|
||||||
},
|
},
|
||||||
type: 'numeric'
|
type: 'numeric'
|
||||||
});
|
});
|
||||||
|
|
||||||
/* Sort a tournament table with tablesorter */
|
/* Sort a tournament table with tablesorter */
|
||||||
$('.tablesorter th.score').data('sorter', false);
|
$('.tablesorter th.score').data('sorter', false);
|
||||||
$('.tablesorter th.total').data('sorter', 'score');
|
$('.tablesorter th.points').data('sorter', 'score');
|
||||||
|
$('.tablesorter th.berger').data('sorter', 'score');
|
||||||
$('.tablesorter').tablesorter({
|
$('.tablesorter').tablesorter({
|
||||||
theme : 'blue',
|
theme : 'blue',
|
||||||
widgets : ['zebra'],
|
widgets : ['zebra'],
|
||||||
|
Loading…
Reference in New Issue
Block a user