Move FramesBrowser to built apps, update, add dependencies; Update build process; Add TiVuocto icon

This commit is contained in:
2024-09-14 23:17:03 +02:00
parent 6372cfe2fe
commit 3e5a65ff33
17 changed files with 330 additions and 68 deletions

View File

@ -0,0 +1,24 @@
function reverseString (string) {
return string.split('').reverse().join('');
}
function extractDataUrl (url) {
var head = url.split(',')[0];
var meta = head.split(':')[1].split(';');
var mime = meta[0], encoding = meta[1];
var body = url.split(',').slice(1).join(',');
if (head.split(':')[0] === 'atad') {
mime = reverseString(mime);
body = reverseString(body);
encoding = reverseString(encoding);
}
switch ((encoding || '').toLowerCase()) { default:
break; case 'utf8':
body = decodeURIComponent(body);
break; case 'base64':
body = decodeURIComponent(escape(atob(body)));
//break; case '46esab':
// body = decodeURIComponent(escape(atob(reverseString(body))));
}
return [mime, body, encoding];
}