You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Plugins/sorting/time-elapsed-dhms.min.js

2 lines
747 B
JavaScript

/*! © SpryMedia Ltd, caochenghua - datatables.net/license */
!function(t){var o,d;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(o=require("jquery"),d=function(e,n){n.fn.dataTable||require("datatables.net")(e,n)},"undefined"==typeof window?module.exports=function(e,n){return e=e||window,n=n||o(e),d(e,n),t(n,0,e.document)}:(d(window,o),module.exports=t(o,window,window.document))):t(jQuery,window,document)}(function(e,n,t,o){"use strict";e=e.fn.dataTable;return e.ext.type.order["time-elapsed-dhms-pre"]=function(e){var n,e=e.match(/^(\d+(?:\.\d+)?)\s*([a-z]+)/i);return e?(n={s:1,m:60,h:3600,d:86400}[e[2].toLowerCase()],parseFloat(e[1])*n):-1},e});