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

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