This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const canvas = document.createElement('canvas'); | |
const webgl = canvas.getContext('experimental-webgl'); | |
const info = webgl.getExtension('WEBGL_debug_renderer_info'); | |
const msg = webgl.getParameter(info.UNMASKED_RENDERER_WEBGL); | |
console.log(msg) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ES5 | |
function utf8Decode(str_data) { | |
let tmp_arr = [], | |
i = 0, | |
ac = 0, | |
c1 = 0, | |
c2 = 0, | |
c3 = 0; | |
str_data += ""; | |
while (i < str_data.length) { |