/** * excelexport.js v0.1.1 * https://github.com/Snack-X/excelexport.js * Licensed under MIT License. */ // base64 encode fallback if(!window.btoa) { window.btoa = function(string) { var a, b, b1, b2, b3, b4, c, i = 0, len = string.length, max = Math.max, result = "", charset = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; while(i < len) { a = string.charCodeAt(i++) || 0; b = string.charCodeAt(i++) || 0; c = string.charCodeAt(i++) || 0; if(max(a, b, c) > 0xFF) return; b1 = (a >> 2) & 0x3F; b2 = ((a & 0x3) << 4) | ((b >> 4) & 0xF); b3 = ((b & 0xF) << 2) | ((c >> 6) & 0x3); b4 = c & 0x3F; if (!b) b3 = b4 = 64; else if (!c) b4 = 64; result += charset.charAt(b1) + charset.charAt(b2) + charset.charAt(b3) + charset.charAt(b4); } return result; }; } /** * excelexport constructor * @constructor * @param {string} element_id id of