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.
2 lines
1.2 KiB
JavaScript
2 lines
1.2 KiB
JavaScript
/*! © SpryMedia Ltd, Dominique Fournier, Brad Wasson, Peter Vilhan, Kevin Gilkey-Graham - datatables.net/license */
|
|
!function(n){var r,o;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return n(e,window,document)}):"object"==typeof exports?(r=require("jquery"),o=function(e,t){t.fn.dataTable||require("datatables.net")(e,t)},"undefined"==typeof window?module.exports=function(e,t){return e=e||window,t=t||r(e),o(e,t),n(t,0,e.document)}:(o(window,r),module.exports=n(r,window,window.document))):n(jQuery,window,document)}(function(e,t,n,r){"use strict";e=e.fn.dataTable;return e.ext.type.order["ip-address-pre"]=function(e){var t,n,r,o,i,u;if(!e)return"000000000000";if(2==(r=(e=e.replace(/<[\s\S]*?>/g,"")).split(":")).length?(n=r[0].split("."),o=r[1]):n=e.split("."),f=e.split(":"),u=i="",4==n.length){for(l=0;l<n.length;l++)t=n[l],i+="000".substr(t.length)+t;o&&(i+=":"+"00000".substr(o.length)+o)}else if(0<f.length){for(var d=0,l=0;l<f.length;l++)0<l&&(u+=":"),0===(t=f[l]).length?d+=0:(u+="0000".substr(t.length)+t,d+=4);var f=u.split(":"),s=0;for(l=0;l<f.length;l++)if(0===(t=f[l]).length&&0===s)for(var a=0;a<32-d;a++)i+="0",s=1;else i+=t}return i},e}); |