Skip to content

Commit

Permalink
Attempt to add tablesorter
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Feb 1, 2015
1 parent cc4111c commit e9018f5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions js/jquery.tablesorter.min.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions js/main.js
Expand Up @@ -12,6 +12,9 @@ function setCounter () {
$( document ).ready(function() {
setCounter();

$(function(){
$('#tablesorter').tablesorter();
});
/*
$('a[href^="#"]').on('click',function (e) {
e.preventDefault();
Expand Down
1 change: 1 addition & 0 deletions ttlib/page.tt
Expand Up @@ -82,6 +82,7 @@ body {
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery-1.11.0.min.js"><\/script>')</script>
<script type="text/javascript" src="/js/jquery.tablesorter.min.js"></script>

<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
<script src="/js/plugins.js"></script>
Expand Down
3 changes: 2 additions & 1 deletion ttlib/stats/index.tt
Expand Up @@ -16,7 +16,8 @@
(that's [% num_no_twit_cands * 100 / num_cands | format('%.1f') %]%)</li>
</ul>
<p>Candidates by party:</p>
<table class="table table-striped table-bordered table-hover">
<table class="table table-striped table-bordered table-hover"
id="tablesorter">
<thead>
<tr>
<th>Party</th><th>Candidates</th>
Expand Down

0 comments on commit e9018f5

Please sign in to comment.