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

2 lines
1.1 KiB
JavaScript

/*! © Lokesh Babu - 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.hyperLink=function(o,u,i,a){function e(e,n){return"number"==typeof e||"string"==typeof e&&parseInt(e)?e:n}o=o||"Click Here",u=u||"newTab",i=e(i,600),a=e(a,400);return function(e,n,t){if("display"!==n)return e;var r=e;try{switch(r=new URL(e),u){case"newTab":return'<a title="'+r+'" href="'+r+'" target="_blank">'+o+"</a>";case"popup":return'<a title="'+r+'" href="'+r+'" target="popup" rel="noopener noreferrer" onclick="window.open(\''+r+"', '"+o+"', 'width="+i+",height="+a+"'); return false;\">"+o+"</a>";default:return'<a title="'+r+'" href="'+r+'" target="_blank">'+o+"</a>"}}catch(e){return r}}},e});