Link to filtered exercise list

This commit is contained in:
Maximilian Grundke
2018-07-20 13:16:32 +02:00
parent bc33d9211f
commit 9037c84639
2 changed files with 9 additions and 7 deletions

View File

@ -7,12 +7,14 @@ $(function() {
var buildTagContainer = function(tag) {
return '\
<div class="tag">\
<div class="name">' + tag.key + '</div>\
<div class="progress">\
<div class="progress-bar" role="progressbar" style="width:' + tag.value + '%">' + tag.value + '%</div>\
<a href="' + location.href +'/statistics?tag=' + tag.id + '">\
<div class="tag">\
<div class="name">' + tag.key + '</div>\
<div class="progress">\
<div class="progress-bar" role="progressbar" style="width:' + tag.value + '%">' + tag.value + '%</div>\
</div>\
</div>\
</div>';
</a>';
};
var jqxhr = $.ajax(window.location.href + '/tag_statistics', {