"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "dist/sorts/tablesort.filesize.min.js" between
tablesort-5.2.1.tar.gz and tablesort-5.3.0.tar.gz

About: tablesort is a small and simple sorting component for HTML tables (written in JavaScript).

tablesort.filesize.min.js  (tablesort-5.2.1):tablesort.filesize.min.js  (tablesort-5.3.0)
/*! /*!
* tablesort v5.2.1 (2020-06-02) * tablesort v5.2.1 (2021-10-30)
* http://tristen.ca/tablesort/demo/ * http://tristen.ca/tablesort/demo/
* Copyright (c) 2020 ; Licensed MIT * Copyright (c) 2021 ; Licensed MIT
*/ */
!function(){var a=function(a,b){return a=parseFloat(a),b=parseFloat(b),a=isNaN(a )?0:a,b=isNaN(b)?0:b,a-b},b=function(a){return a.replace(/[^\-?0-9.]/g,"")},c=fu nction(a){a=a.toLowerCase();var b="i"===a[1]?1024:1e3;switch(a[0]){case"k":retur n Math.pow(b,2);case"m":return Math.pow(b,3);case"g":return Math.pow(b,4);case"t ":return Math.pow(b,5);case"p":return Math.pow(b,6);case"e":return Math.pow(b,7) ;case"z":return Math.pow(b,8);case"y":return Math.pow(b,9);default:return b}},d= function(a){var d=a.match(/^(\d+(\.\d+)?) ?((K|M|G|T|P|E|Z|Y|B$)i?B?)$/i),e=pars eFloat(b(d[1])),f=d[3];return e*c(f)};Tablesort.extend("filesize",function(a){re turn/^\d+(\.\d+)? ?(K|M|G|T|P|E|Z|Y|B$)i?B?$/i.test(a)},function(b,c){return b=d (b),c=d(c),a(c,b)})}(); !function(){var a=function(a,b){return a=parseFloat(a),b=parseFloat(b),a=isNaN(a )?0:a,b=isNaN(b)?0:b,a-b},b=function(a){return a.replace(/[^\-?0-9.]/g,"")},c=fu nction(a){a=a.toLowerCase();var b="i"===a[1]?1024:1e3;switch(a[0]){case"k":retur n Math.pow(b,2);case"m":return Math.pow(b,3);case"g":return Math.pow(b,4);case"t ":return Math.pow(b,5);case"p":return Math.pow(b,6);case"e":return Math.pow(b,7) ;case"z":return Math.pow(b,8);case"y":return Math.pow(b,9);default:return b}},d= function(a){var d=a.match(/^(\d+(\.\d+)?) ?((K|M|G|T|P|E|Z|Y|B$)i?B?)$/i),e=pars eFloat(b(d[1])),f=d[3];return e*c(f)};Tablesort.extend("filesize",function(a){re turn/^\d+(\.\d+)? ?(K|M|G|T|P|E|Z|Y|B$)i?B?$/i.test(a)},function(b,c){return b=d (b),c=d(c),a(c,b)})}();
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)