SRI KANAKADURGA GRANITES PRIVATE LIMITED

    0
    54

    ‘, base64 = function (s) { return window.btoa(unescape(encodeURIComponent(s))) }, format = function (s, c) { return s.replace(/{(w+)}/g, function (m, p) { return c[p]; }) } return function (table, name, filename) { if (!table.nodeType) table = document.getElementById(table) dated= new Date(); logo= ‘https://d1mgel6vch4ba4.cloudfront.net/images/logo_opt.png’; var ctx = { worksheet: name || ‘Worksheet’, logo: logo, dated: dated, table: table.innerHTML } ga(‘send’, ‘event’, {eventCategory: ‘companypage’, eventAction: ‘downloadInExcel-‘+name}); downloadLink = document.createElement(“a”); document.body.appendChild(downloadLink); // Create a link to the file downloadLink.href = uri + base64(format(template, ctx)); // Setting the file name downloadLink.download = filename; //triggering the function downloadLink.click(); } })()
    Source