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/dataRender/anchor.min.js

2 lines
764 B
JavaScript

/*! © Fedonyuk Anton - datatables.net/license */
!function(n){"function"==typeof define&&define.amd?define(["datatables.net"],function(e){return n(e,window,document)}):"object"==typeof exports?module.exports=function(e,t){return e=e||window,t.fn.dataTable||require("datatables.net")(e,t),n(t,0,e.document)}:n(jQuery,window,document)}(function(e,t,n,r){"use strict";e=e.fn.dataTable;return e.render.anchor=function(e=0,u={},o=null){return function(t,e,n,r={}){if("display"!==e)return t;null===o&&(o=t);var a="function"==typeof u?u(t,n,r):u;if(!a.href)switch(e){case"mail":a.href="mailto:"+t;break;case"phone":a.href="tel:"+t.replace(/[^+\d]+/g,"");break;default:try{a.href=new URL(t)}catch(e){a.href=t}}return jQuery("<a/>").attr(a).text(o||"")[0].outerText}},e});