/** * ngTableExcelExport 1.0.0 * JavaScript export to Excel or CSV from HTML tables automatically in the browser and also compatible with all browsers. * * @author: Murugavel Ramachandran (blsrm@yahoo.com) * @url: https://github.com/blsrm/ngTableExcelExport * */ /*jslint browser: true, bitwise: true, vars: true, white: true */ /*global define, exports, module */ (function(m){var g=function(){function g(h,a,e){a=a||"";e=e||512;h=window.atob(h);var c=[],b;for(b=0;b"+d.textContent.trim()+""):l+(""+d.textContent.trim()+"");c+=""+l+""}}a= window.btoa(window.unescape(encodeURIComponent(m(' \x3c!--[if gte mso 9]>{worksheet}{table}
', {worksheet:e||"Worksheet",table:c}))));return q(h,a,"application/vnd.ms-excel",e+".xls")},csv:function(h,a,e,c,b){void 0!==c&&c&&(n=c);void 0!==b&&b&&(p=b);a=a.nodeType?a:document.getElementById(a);c="SEP="+n+p;var f,k,d;for(b=0;b