Skip to content

Commit

Permalink
Release 1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarNS committed Dec 3, 2018
1 parent 540e47f commit 3cbabd4
Show file tree
Hide file tree
Showing 9 changed files with 204 additions and 220 deletions.
Binary file added extension.crx
Binary file not shown.
342 changes: 163 additions & 179 deletions extension/db.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion extension/db/data.js

Large diffs are not rendered by default.

78 changes: 39 additions & 39 deletions extension/js/init_table.js
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
$(document).ready( function() {
$('#example').dataTable( {
"paging": false,
"bInfo" : false,
"fixedHeader": true,
"aoColumnDefs": [
{ "bSearchable": true, "aTargets": [ 0 ] }, { type: "non-empty", "bSearchable": true,"aTargets": [ 1 ] }, { type: "non-empty", "asSorting": [ "desc", "asc" ], "bSearchable": false, "aTargets": [ 2 ] }, { type: "non-empty", "asSorting": [ "desc", "asc" ], "bSearchable": false, "aTargets": [ 3 ] }, { type: "non-empty", "asSorting": [ "desc", "asc" ], "bSearchable": false, "aTargets": [ 4 ] }, { type: "non-empty", "asSorting": [ "desc", "asc" ], "bSearchable": false, "aTargets": [ 5 ] }, { type: "non-empty", "asSorting": [ "desc", "asc" ], "bSearchable": false, "aTargets": [ 6 ] }, { type: "non-empty", "asSorting": [ "desc", "asc" ], "bSearchable": false, "aTargets": [ 7 ] }
] } );
} );


function safeParseFloat(n) {
if(!isNaN(parseFloat(n)) && isFinite(n)){
return(parseFloat(n))
} else{
return(n)
}
}

jQuery.extend( jQuery.fn.dataTableExt.oSort, {
"non-empty-asc": function (str1, str2) {
if(str1 == "")
return 1;
if(str2 == "")
return -1;
str1 = safeParseFloat(str1)
str2 = safeParseFloat(str2)
return ((str1 < str2) ? -1 : ((str1 > str2) ? 1 : 0));
},

"non-empty-desc": function (str1, str2) {
if(str1 == "")
return 1;
if(str2 == "")
return -1;
str1 = safeParseFloat(str1)
str2 = safeParseFloat(str2)
return ((str1 < str2) ? 1 : ((str1 > str2) ? -1 : 0));
}
$(document).ready( function() {
$('#example').dataTable( {
"paging": false,
"bInfo" : false,
"fixedHeader": true,
"aoColumnDefs": [
{ "bSearchable": true, "aTargets": [ 0 ] }, { type: "non-empty", "bSearchable": true,"aTargets": [ 1 ] }, { type: "non-empty", "asSorting": [ "desc", "asc" ], "bSearchable": false, "aTargets": [ 2 ] }, { type: "non-empty", "asSorting": [ "desc", "asc" ], "bSearchable": false, "aTargets": [ 3 ] }, { type: "non-empty", "asSorting": [ "desc", "asc" ], "bSearchable": false, "aTargets": [ 4 ] }, { type: "non-empty", "asSorting": [ "desc", "asc" ], "bSearchable": false, "aTargets": [ 5 ] }, { type: "non-empty", "asSorting": [ "desc", "asc" ], "bSearchable": false, "aTargets": [ 6 ] }, { type: "non-empty", "asSorting": [ "desc", "asc" ], "bSearchable": false, "aTargets": [ 7 ] }
] } );
} );


function safeParseFloat(n) {
if(!isNaN(parseFloat(n)) && isFinite(n)){
return(parseFloat(n))
} else{
return(n)
}
}

jQuery.extend( jQuery.fn.dataTableExt.oSort, {
"non-empty-asc": function (str1, str2) {
if(str1 == "")
return 1;
if(str2 == "")
return -1;
str1 = safeParseFloat(str1)
str2 = safeParseFloat(str2)
return ((str1 < str2) ? -1 : ((str1 > str2) ? 1 : 0));
},

"non-empty-desc": function (str1, str2) {
if(str1 == "")
return 1;
if(str2 == "")
return -1;
str1 = safeParseFloat(str1)
str2 = safeParseFloat(str2)
return ((str1 < str2) ? 1 : ((str1 > str2) ? -1 : 0));
}
} );
2 changes: 1 addition & 1 deletion extension/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name":"DTU Course Analyzer",
"description":"Analyzes and scores courses on kurser.dtu.dk/xxxxx",
"version":"1.2.1",
"version":"1.2.2",
"manifest_version":2,
"icons": {
"16": "icon16.png",
Expand Down
Binary file modified images/p1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/p2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/p3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/s1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3cbabd4

Please sign in to comment.