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
921 B
JavaScript

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