<!doctype html>
<html>
<head>
<title>Client Browsing - RJM Programming - June, 2019</title>
<script type=text/javascript src=../web_share_api_test.js?populate=as_necessary9876 defer></script>
<style>
.pcanvas {
display: none;
}

.pvideo {
opacity: 0;
width: 0;
height: 0;
}

</style>
<script type='text/javascript'>
var isag=-1, isagname='';
var fromst='@keyframes fade';
var tost='@-webkit-keyframes fade';
var ctimode=false, ctiname='', nuancec='', lastsrc='', prad=200, preihf='', iusuff='';
var eighteen='18';
var pdubit='', tdhi='', tdbi='', huherr;
if (window.parent) {
try {
pdubit=('' + parent.document.URL);
} catch(huherr) { pdubit=''; }
}
if (window.top) {
try {
tdhi=('' + top.document.head.innerHTML);
} catch(huherr) { tdhi=''; }
try {
tdbi=('' + top.document.body.innerHTML);
} catch(huherr) { tdbi=''; }
}
var bighuhcb=('' + pdubit + '&' + document.URL + '&' + tdhi + tdbi);
var ourcbi='cbi', isdone=false;
var wdingandon=location.search.split('wor' + 'ding=')[1] ? decodeURIComponent(location.search.split('wor' + 'ding=')[1].split('&')[0]) : "";
var wdingthere=(bighuhcb.indexOf('&word' + 'ing=') != -1 ? decodeURIComponent(bighuhcb.split('&word' + 'ing=')[1].split('&')[0].split('"')[0].split("'")[0]) : '');

var ansis='';

var mtypes = ["audio/x-aiff","audio/wav","audio/x-wav","audio/x-pn-realaudio","audio/x-mpegurl","audio/x-aiff","audio/mpeg","audio/mid",
"audio/basic","audio/ogg","video/x-sgi-movie","video/x-msvideo","video/quicktime","audio/mp3","video/mp4","video/mpeg",
"video/x-la-asf","video/ogg","video/webm","audio/mp4", "image/jpeg", "image/jpeg", "image/png", "image/gif", "image/bmp", "image/tif"];
var mexts = [".aiff",".wav",".wav",".ram",".m3u",".aiff",".mp3",".rmi",
".snd",".ogg",".movie",".avi",".mov",".mp3",".m4v",".mpeg",
".lsx",".ogv",".webm",".m4a", ".jpg", ".jpeg", ".png", ".gif", ".bmp", ".tif"];

var documentURL=document.URL;
var lastis='';
var tconto=null;
var wponeokay=true;
var rawdataurl='', gourij=0;
var x=0, y=0, lastx=0, lasty=0;
var elemLeft=0, elemTop=0;
var fs=[], filn='', file, lasttype='';
var ourwois=null;
var elem=null, context;
var lastiw=0, lastih=0;
var sofar=" ";
var files=[], start, stop, reader=[];
var kij=0, imgo=[], kkij=0, blob=[];
var wo=null, wp1='', wp2='_blank';
var wid='', wis=0, his=0, wx=0, wy=0;
var ipre='<div style="display:block;" id=predivgb></div><div style="display:inline-block;" id=divgb><img style="display:inline-block;" id=gb src="', isuf='"></img></div>';
var apre='  <div style="display:block;" id=predivab></div><div style="display:inline-block;" id=divab><audio style="display:inline-block;" id=ab controls type="', amid='" src="', asuf='"></audio></div>';
var vpre='  <div style="display:block;" id=predivvb></div><div style="display:inline-block;" id=divvb><video style="display:inline-block;" id=vb controls type="', vmid='" src="', vsuf='"></video></div>';
var opre='  <iframe style="display:inline-block;" id=ib width="90%" height="90%" src="', osuf='"></iframe>';
var deviceWidth = window.orientation == 0 ? window.screen.height: window.screen.width;
var deviceHeight = window.orientation == 0 ? window.screen.width : window.screen.height;
var tnsize=64, mfiletype='image/jpeg', mfilename='';
var xx=[], yy=[], ixy=0, awis=[], ahis=[], awx=[], awy=[], awid=[], ten=10;
var xstocheck=[];
var xstoset=[];
var xstohash=[];

var thecanvas = null;
var thecontext = null;
var thevideo = null;

var isIE = (navigator.appName == 'Microsoft Internet Explorer' || (navigator.appName == "Netscape" && navigator.appVersion.indexOf('Edge') > -1));
var dsplus="Image";
var dsprefix="<details open><summary>"; // + dsplus
var dsmid="</summary>";
var dssuffix="<hr></details>";
var hin=0, ihin=0;
var iinum=0, jjnum=0;
var burlstr='', turlstr='';

var gifslides=[];
var tbins=[];

if (isIE) {
dsprefix="<div style=vertical-align:top; id=divsummarytotalsimage style='display:inline-block;vertical-align:top;' onclick=\"document.getElementById('xx').style.display=document.getElementById(tdownright('xx')).style.display.replace('inline-block','no~ne').replace('none','inline-bl~ock').replace('~','');\"><span style='display:iNlInE-bLoCk;' id=rightimage>▶</span><span style='display:NoNe;' id=downimage>🔻</span> <DIV id=divshtimage style='display:inline-block;vertical-align:top;'><span id=summarytotalsimage>"; // + dsplus
dsmid="</span>";
dssuffix="</DIV><hr></div>";
}

var ingif='', ingifstyle='filter: none;', ingifint=0, ingifchosen=false;

function prefetch(whatgifmaybe) { // thanks to https://stackoverflow.com/questions/69564118/how-to-get-duration-of-gif-image-in-javascript#:~:text=Mainly%20use%20parseGIF()%20%2C%20then,duration%20of%20a%20GIF%20image.
if (window.top) {
if (window.self != window.top) {
if (top.document.URL.indexOf('/extract_ag_slide_huh_of.htm') != -1) {
top.setgurl(whatgifmaybe);
}
}
}
if ((whatgifmaybe.toLowerCase().trim().split('#')[0] + '?').indexOf('.gif?') != -1 || whatgifmaybe.indexOf('data:image/gif') == 0) {
ingif=whatgifmaybe;
document.body.style.cursor='progress';
fetch(whatgifmaybe)
.then(res => res.arrayBuffer())
.then(ab => isGifAnimated(new Uint8Array(ab)))
.then(console.log);
}
}

function clooktv(intv) {
var finds=[];
if (intv.indexOf('filter:') == 0) {
document.getElementById('imgag').title=intv;
if (ingifchosen) {
finds=document.getElementById('simgag').outerHTML.split('>' + intv + '</option>');
if (eval('' + finds.length) > 1) {
document.getElementById('simgag').innerHTML=document.getElementById('simgag').innerHTML.replace(' selected',' data-selected').replace('>' + ingifstyle + '</option>', ' selected>' + ingifstyle + '</option>');
}
}
document.body.innerHTML+='<style> #imgag { ' + intv + ' } </style>';
} else {
setTimeout(callresell, 1000);
}
return intv;
}

function changelook() {
var finds=[];
if (ingifint > 0) {
setTimeout(changelook, ingifint);
if (ingifchosen) {
ingifchosen=false;
} else {
finds=document.getElementById('simgag').outerHTML.split('>' + ingifstyle + '</option>');
if (eval('' + finds.length) > 1) {
if (finds[1].indexOf('</select>') == 0) {
ingifstyle='filter: none;';
document.getElementById('simgag').innerHTML=document.getElementById('simgag').innerHTML.replace(' selected',' data-selected').replace('>' + ingifstyle + '</option>', ' selected>' + ingifstyle + '</option>');
} else {
ingifstyle=finds[1].split('>')[1].split('<')[0];
if (ingifstyle.indexOf('filter:') != 0) { ingifstyle='filter: none;'; }
document.getElementById('simgag').innerHTML=document.getElementById('simgag').innerHTML.replace(' selected',' data-selected').replace('>' + ingifstyle + '</option>', ' selected>' + ingifstyle + '</option>');
}
document.getElementById('simgag').value=clooktv(ingifstyle);
}
}
}
}

/** @param {Uint8Array} uint8 */
function isGifAnimated (uint8) { // thanks to https://stackoverflow.com/questions/69564118/how-to-get-duration-of-gif-image-in-javascript#:~:text=Mainly%20use%20parseGIF()%20%2C%20then,duration%20of%20a%20GIF%20image.
let duration = 0;
for (let i = 0, len = uint8.length; i < len; i++) {
if (uint8[i] == 0x21
&& uint8[i + 1] == 0xF9
&& uint8[i + 2] == 0x04
&& uint8[i + 7] == 0x00)
{
const delay = (uint8[i + 5] << 8) | (uint8[i + 4] & 0xFF);
duration += delay < 2 ? 10 : delay;
}
}
//alert('' + eval(duration / 100));
if (eval(duration / 100) > 0.11 || document.URL.indexOf('Allimages') != -1) {
//alert('' + duration);
var damore='', wpthere=false;
if (document.getElementById('aside')) {
if (document.getElementById('aside').outerHTML.toLowerCase().indexOf('<div') == 0) {
damore=' showing <select data-oncontextmenu=resell(event,this); data-ontouchmove=resell(event,this); onchange=\"ingifchosen=true; ingifstyle=clooktv(this.value);\" id=simgag size=14><option contenteditable=true value=\"filter: none;\" selected>filter: none;</option><option contenteditable=true value=\"filter: blur(5px);\">filter: blur(5px);</option><option contenteditable=true value=\"filter: brightness(0.4);\">filter: brightness(0.4);</option><option contenteditable=true value=\"filter: contrast(200%);\">filter: contrast(200%);</option><option contenteditable=true value=\"filter: drop-shadow(16px 16px 20px blue);\">filter: drop-shadow(16px 16px 20px blue);</option><option contenteditable=true value=\"filter: grayscale(50%);\">filter: grayscale(50%);</option><option contenteditable=true value=\"filter: hue-rotate(90deg);\">filter: hue-rotate(90deg);</option><option contenteditable=true value=\"filter: invert(75%);\">filter: invert(75%);</option><option contenteditable=true value=\"filter: opacity(25%);\">filter: opacity(25%);</option><option contenteditable=true value=\"filter: saturate(30%);\">filter: saturate(30%);</option><option contenteditable=true value=\"filter: sepia(60%);\">filter: sepia(60%);</option><option contenteditable=true value=\"filter: contrast(175%) brightness(33%);\">filter: contrast(175%) brightness(33%);</option><option contenteditable=true value=\"filter: drop-shadow(3px 3px red) sepia(100%) drop-shadow(-3px -3px blue);\">filter: drop-shadow(3px 3px red) sepia(100%) drop-shadow(-3px -3px blue);</option><option contenteditable=true value=\"Change\">Change</option></select><br><br><img onload=\"if (ingifint == 0) { ingifint=' + eval(duration * 10) + '; setTimeout(changelook, eval(800 + Math.abs(ingifint))); }\" title=\"filter: none;\" src=\"' + ingif + '\" id=imgag></img><br>';
//ingifint=eval(duration * 10);
//setTimeout(changelook, eval(duration * 10));
if (window.parent) {
if (window.self !== window.parent && parent.document.getElementById('aside')) {
wpthere=true;
parent.document.getElementById('aside').style.display='block';
if (eval(duration / 100) > 0.11) {
parent.document.getElementById('aside').innerHTML='Animated GIF ' + isagname + ' duration is ' + eval(duration / 100) + ' seconds ' + damore;
} else {
parent.document.getElementById('aside').innerHTML='Image ' + isagname + ' duration is ' + eval(duration / 100) + ' seconds ' + damore;
}
parent.document.getElementById('aside').scrollIntoView();
parent.document.getElementById('image').style.opacity='0.5';
parent.document.getElementById('image').style.width='5%';
parent.document.getElementById('isub').style.opacity='0.5';
} else {
document.getElementById('aside').style.display='block';
if (eval(duration / 100) > 0.11) {
document.getElementById('aside').innerHTML='Animated GIF ' + isagname + ' duration is ' + eval(duration / 100) + ' seconds ' + damore;
} else {
document.getElementById('aside').innerHTML='Image ' + isagname + ' duration is ' + eval(duration / 100) + ' seconds ' + damore;
}
}
} else {
document.getElementById('aside').style.display='block';
if (eval(duration / 100) > 0.11) {
document.getElementById('aside').innerHTML='Animated GIF ' + isagname + ' duration is ' + eval(duration / 100) + ' seconds ' + damore;
} else {
document.getElementById('aside').innerHTML='Image ' + isagname + ' duration is ' + eval(duration / 100) + ' seconds ' + damore;
}
}
if (!wpthere) { document.getElementById('aside').scrollIntoView(); }
} else if (eval(duration / 100) > 0.11) {
document.getElementById('aside').innerHTML=' ( image ' + isagname + ' duration is ' + eval(duration / 100) + ' seconds)' + damore;
} else {
document.getElementById('aside').innerHTML=' ( animated GIF ' + isagname + ' duration is ' + eval(duration / 100) + ' seconds)' + damore;
}
}
//} else {
//alert('duration=' + duration);
}
document.body.style.cursor='pointer';
return duration / 100; // if 0.1 is not an animated GIF
}

function callresell() {
var oselo=document.getElementById('simgag');
var svalis='';
var sc=';';
var changefound=false;
if (document.getElementById('imgag')) {
oselo.value=document.getElementById('imgag').title;
}
var reselit=prompt('Please change the semicolon separated options list. Optionally hash # separate a CSS filter refresh interval in seconds (currently ' + eval(Math.abs(ingifint) / 1000.000) + ' seconds).', oselo.innerText);
if (reselit != null) {
if (reselit.indexOf('#') != -1) {
if (ingifint < 0) {
ingifint=Math.round(eval(-1000.0 * eval('' + reselit.split('#')[1].split(';')[0])));
} else {
ingifint=Math.round(eval(1000.0 * eval('' + reselit.split('#')[1].split(';')[0])));
}
reselit=reselit.replace('#' + reselit.split('#')[1].split(';')[0], '');
}
}
if (reselit == null) {
return '';
} else if (reselit != oselo.innerText) {
var sih=oselo.innerHTML;
var vsl=reselit.split(';');
var shi=sih.split('</option>');
var ssize='' + oselo.size;
var vssize=0;
var newih='';
for (var ihi=0; ihi<vsl.length; ihi++) {
if (vsl[ihi].trim() != '') {
if (vsl[ihi].trim() == 'Change') { changefound=true; sc=''; } else { sc=';'; }
if (eval('' + shi.length) > ihi) {
if (eval('' + (shi[ihi] + '</option>').split(vsl[ihi].trim() + sc).length) == 3) {
newih+=shi[ihi] + '</option>';
vssize++;
} else {
svalis=shi[ihi].split(' value="')[1].split('"')[0];
newih+=shi[ihi].split('>')[0].replace(svalis, vsl[ihi].trim() + sc) + '>' + vsl[ihi].trim() + sc + '</option>';
vssize++;
}
} else if (vsl[ihi].trim().indexOf('filter:') == 0) {
newih+='<option contenteditable=true value="' + vsl[ihi].trim() + sc + '">' + vsl[ihi].trim() + sc + '</option>';
vssize++;
} else {
newih+='<option contenteditable=true value="' + vsl[ihi].trim() + '">' + vsl[ihi].trim() + '' + '</option>';
vssize++;
}
}
}
if (!changefound) {
newih+='<option contenteditable=true value="Change">Change</option>';
vssize++;
}
oselo.innerHTML=newih;
if (eval('' + ssize) != eval('' + vssize)) {
oselo.size='' + eval('' + vssize);
}
}
return '';
}

function resell(evt,oselo) {
evt.preventDefault();
evt.stopPropagation();
//var reselit=prompt('Please change the comma separated options list', oselo.innerText);
}

function dtlvize() {
document.getElementById('dtlv').scrollIntoView();
}

function postagc(invx) {
var sofarform='<form style=display:none; target=posttid method=POST action=';
if (eval('' + invx.length) > 800) {
var actions=invx.split('?');
if (actions.length >= 2) {
sofarform+=actions[0] + '><input type=submit id=igo value=Go style=display:none;></input></form>';
//alert(sofarform);
var argsare=actions[1].split('&');
for (var iargsare=0; iargsare<argsare.length; iargsare++) {
//alert(argsare[iargsare]);
if (decodeURIComponent(argsare[iargsare].split('=')[1]).indexOf('data:') == 0 && 1 == 2) {
sofarform=sofarform.replace('><input ', '> <input style=display:none; name=' + argsare[iargsare].split('=')[0] + ' value="' + decodeURIComponent(argsare[iargsare].split('=')[1]).split('#')[0] + '"></input><input ');
} else {
sofarform=sofarform.replace('><input ', '> <input style=display:none; name=' + argsare[iargsare].split('=')[0] + ' value="' + decodeURIComponent(argsare[iargsare].split('=')[1]) + '"></input><input ');
}
//if (argsare[iargsare].split('=')[0] == 'slideshow') { alert(gifslides[0].slice(-70) + ' vs ' + decodeURIComponent(argsare[iargsare].split('=')[1]).slice(-270)); }
}
document.getElementById('dform').innerHTML=sofarform;
//if (top.document.getElementById('result')) { alert(' ' + document.getElementById('dform').innerHTML); }
document.getElementById('igo').click();
return '#';
}
}
return invx;
}

function vaprefix(insr) {
return insr;
}


function listenforx() {
var alloneblank=true;
if (xstocheck.length == 0) { alloneblank=false; }
for (var ik=0; ik<xstocheck.length; ik++) {
if (xstocheck[ik] != '' && xstocheck[ik] != ' ') {
if (xstohash[ik] != '') {
parent.document.getElementById(xstoset[ik]).value=xstocheck[ik] + ('#' + xstohash[ik]).replace('#undefined','');
} else {
parent.document.getElementById(xstoset[ik]).value=xstocheck[ik];
}
xstocheck[ik]=' ';
} else if (xstocheck[ik] == '') {
if (document.getElementById('x' + xstoset[ik])) {
if (document.getElementById('x' + xstoset[ik]).value != '') {
xstocheck[ik]=document.getElementById('x' + xstoset[ik]).value;
}
}
alloneblank=false;
}
}
if (!alloneblank) { setTimeout(listenforx,1000); } else { xstocheck=[]; xstoset=[]; document.getElementById('lhcs').innerHTML=''; }
}

function postturl() {
if (turlstr != '') {
if (turlstr.substring(0,1) == ',') {
document.getElementById('lhcs').innerHTML+=turlstr.substring(1).split(',')[0];
turlstr=turlstr.replace('+' + turlstr.substring(1).split(',')[0],'');
} else {
document.getElementById('lhcs').innerHTML+=turlstr;
turlstr='';
}
}
}

function postburl() {
if (burlstr != '') {
if (burlstr.substring(0,1) == ',') {
document.getElementById('lhcs').innerHTML+=burlstr.substring(1).split(',')[0];
burlstr=burlstr.replace('+' + burlstr.substring(1).split(',')[0],'');
} else {
document.getElementById('lhcs').innerHTML+=burlstr;
burlstr='';
}
}
}

function textlocalhostmap(ina, inb, ptbid, oj) {
if (document.URL.indexOf('//localhost') != -1) {
console.log('textlocalhostmap: ' + ina + ',' + inb + ',' + ptbid + ',' + oj);
if (oj == 0) { gourij=0; if (1 == 1) { parent.document.getElementById('thewords').title=''; parent.document.getElementById('aurl').title=''; } }
if (eval(oj % 2) == 0 || 1 == 1) {
parent.document.getElementById('thewords').title+='|' + ina.trim() + inb;
}
//top.document.title=parent.document.getElementById('vurl').title + parent.document.getElementById('aurl').title;
if (parent.document.getElementById('resultav')) {
turlstr+=',<iframe src="../macos_ffmpeg_convert.php?vsfs=' + ina.trim() + '&oj=' + oj + '&turl=y&vsfn=' + encodeURIComponent(inb) + '&vsfi=' + encodeURIComponent('x' + ptbid) + '&vsfu=' + encodeURIComponent(document.URL) + '"></input>';
} else {
turlstr+=',<iframe src="../macos_textutil_convert.php?vsfs=' + ina.trim() + '&oj=' + oj + '&turl=y&vsfn=' + encodeURIComponent(inb) + '&vsfi=' + encodeURIComponent('x' + ptbid) + '&vsfu=' + encodeURIComponent(document.URL) + '"></input>';
}
setTimeout(postturl, eval(3000 + oj * 2000));
}
return ina;
}

function burllocalhostmap(ina, inb, ptbid, oj) {
if (document.URL.indexOf('//localhost') != -1) {
console.log('burllocalhostmap: ' + ina + ',' + inb + ',' + ptbid + ',' + oj);
if (oj == 0) { gourij=0; if (1 == 1) { parent.document.getElementById('vurl').title=''; parent.document.getElementById('aurl').title=''; } }
if (eval(oj % 2) == 0 || 1 == 1) {
parent.document.getElementById('vurl').title+='|' + ina.trim() + inb;
} else {
parent.document.getElementById('aurl').title+='|' + ina.trim() + inb;
}
//top.document.title=parent.document.getElementById('vurl').title + parent.document.getElementById('aurl').title;
burlstr+=',<iframe src="../macos_say_record.php?vsfs=' + ina.trim() + '&oj=' + oj + '&burl=y&vsfn=' + encodeURIComponent(inb) + '&vsfi=' + encodeURIComponent('x' + ptbid) + '&vsfu=' + encodeURIComponent(document.URL) + '"></input>';
setTimeout(postburl, eval(3000 + oj * 2000));
}
return ina;
}

function localhostmap(ina, inb, ptbid) {
var exifj='';
if (document.URL.indexOf('//localhost') != -1) {
console.log('localhostmap: ' + ina + ',' + inb + ',' + ptbid);
if (xstocheck.length == 0) { setTimeout(listenforx,2000); }
//if (inb.indexOf("eptune") != -1) { alert(inb + ' ' + ptbid + ' ' + ina); }
xstoset.push(ptbid);
xstocheck.push("");
if (eval('' + document.getElementById('lhsh').innerHTML.split('#').length) >= eval('' + hin)) {
xstohash.push(document.getElementById('lhsh').innerHTML.split('#')[eval('' + hin)]);
} else {
xstohash.push("");
}
if (ptbid == '') { exifj='exif=y&'; }
document.getElementById('lhcs').innerHTML+='<input type=hidden id=x' + ptbid + ' value=""></input>';
document.getElementById('lhcs').innerHTML+='<iframe src="../macos_say_record.php?' + exifj + 'vsfs=' + ina.trim() + '&vsfn=' + encodeURIComponent(inb) + '&vsfi=' + encodeURIComponent('x' + ptbid) + '&vsfu=' + encodeURIComponent(document.URL) + '"></input>';
hin++;
}
return ina;
}

function tdownright(inid) {
if (inid.substring(0,1) == 'g') {
document.getElementById('rightimage').style.display=document.getElementById('rightimage').style.display.toLowerCase().replace('inline-block','no~ne').replace('none','inline-bl~ock').replace('~',''); //'inline-block';
document.getElementById('downimage').style.display=document.getElementById('downimage').style.display.toLowerCase().replace('inline-block','no~ne').replace('none','inline-bl~ock').replace('~','');
} else if (inid.substring(0,1) == 'a') {
document.getElementById('rightaudio').style.display=document.getElementById('rightaudio').style.display.toLowerCase().replace('inline-block','no~ne').replace('none','inline-bl~ock').replace('~','');
document.getElementById('downaudio').style.display=document.getElementById('downaudio').style.display.toLowerCase().replace('inline-block','no~ne').replace('none','inline-bl~ock').replace('~','');
} else if (inid.substring(0,1) == 'v') {
document.getElementById('rightvideo').style.display=document.getElementById('rightvideo').style.display.toLowerCase().replace('inline-block','no~ne').replace('none','inline-bl~ock').replace('~','');
document.getElementById('downvideo').style.display=document.getElementById('downvideo').style.display.toLowerCase().replace('inline-block','no~ne').replace('none','inline-bl~ock').replace('~','');
} else if (inid.substring(0,1) == 'i') {
document.getElementById('rightother').style.display=document.getElementById('rightother').style.display.toLowerCase().replace('inline-block','no~ne').replace('none','inline-bl~ock').replace('~','');
document.getElementById('downother').style.display=document.getElementById('downother').style.display.toLowerCase().replace('inline-block','no~ne').replace('none','inline-bl~ock').replace('~','');
}
return inid;
}

function downright(inid) {
if (inid.substring(0,1) == 'g') {
document.getElementById('rightimage').style.display='inline-block';
document.getElementById('downimage').style.display='none';
} else if (inid.substring(0,1) == 'a') {
document.getElementById('rightaudio').style.display='inline-block';
document.getElementById('downaudio').style.display='none';
} else if (inid.substring(0,1) == 'v') {
document.getElementById('rightvideo').style.display='inline-block';
document.getElementById('downvideo').style.display='none';
} else if (inid.substring(0,1) == 'i') {
document.getElementById('rightother').style.display='inline-block';
document.getElementById('downother').style.display='none';
}
return inid;
}

function ourencodeURIComponent(inx) {
return inx;
}

function gifslidesit() {
if (1 == 2) {
var xzhr = new XMLHttpRequest();
var xform=new FormData();
var sss='';
xform.append('stitle', 'slideshow');
xform.append('delay', '400');
xform.append('gfn', '');
xform.append('numslides', '' + gifslides.length);
for (var iip=1; iip<=gifslides.length; iip++) {
xform.append('slideshow' + sss, gifslides[eval(-1 + iip)]);
sss='' + eval(1 + iip);
alert(document.getElementById('tid').src + ' next is ' + sss + ' ... ' + gifslides[eval(-1 + iip)]);
}
xzhr.open('post', document.getElementById('tid').src, true);
xzhr.send(xform);
}

var prefix='?stitle=' + encodeURIComponent('My Media Mix') + '&gfn=y&tiurl=&fsize=8px&fleft=5' + encodeURIComponent('%') + '&ftop=5' + encodeURIComponent('%') + '&delay=400&fontname=Arial';
var suffix='', delim='&', nextnum=1, sofar='';
for (var ilines=0; ilines<gifslides.length; ilines++) {
//suffix+=delim + encodeURIComponent(gifslides[ilines]);
//sofar+=encodeURIComponent(gifslides[ilines]); // + ourencodeURIComponent('~')
suffix+=('&slideshow' + nextnum + '=').replace('&slideshow1=','&slideshow=') + encodeURIComponent(gifslides[ilines]); //sofar;
nextnum++;
}
//suffix=suffix.replace(/\=/g, '=' + encodeURIComponent(document.getElementById('burl').value + '#')); //.replace(/\`/g, '=');
//alert('http://localhost:8888/Htdocs/PHP/animegif/tutorial_to_animated_gif.php' + prefix + suffix);
//alert(prefix.replace(fromsub,tosub));
document.getElementById('tid').src=postagc(document.getElementById('tid').src.split('#')[0].split('?')[0] + vaprefix(prefix) + suffix);

}

function pfillit() {
if (window.parent) {
if (parent.document.getElementById('slideshow')) {
parent.document.getElementById('slideshow').value=lastis;
}
}
}

function urlmassage(inul) {
if (inul.indexOf('&chl=') != -1 && inul.indexOf('chart.googleapis.com') != -1) {
return decodeURIComponent(inul.split('&chl=')[1].split('&')[0].split('#')[0].split('"')[0].split("'")[0]);
} else if (inul.indexOf('?chl=') != -1 && inul.indexOf('chart.googleapis.com') != -1) {
return decodeURIComponent(inul.split('?chl=')[1].split('&')[0].split('#')[0].split('"')[0].split("'")[0]);
}
return inul;
}

function readBlob(opt_startByte, opt_stopByte) {
var hsf="", ourij=0, myform='';
var blks=' ', variiuy=0, xssuffix='0', xnsuffix='2';
var defto='html';
var midw='_this_';

isag=-1;

files = document.getElementById('files').files;
xx=[];
yy=[];
ten=500;
ixy=0;
awis=[];
ahis=[];
awx=[];
awy=[];
awid=[];
reader=[];
blob=[];
//imgo=[];
var ij=0;
kij=0;
kkij=0;
lastiw=0;
lastih=0;
if (!files.length) {
alert('Please select a file!');
return;
}
iinum=files.length;
if (window.parent && eval('' + iinum) > 0) {
if (parent.document.getElementById('inum')) {
parent.document.getElementById('inum').value='' + iinum;
}
}
jjnum=0;
var aneg='-';
var vneg='-';
//alert(675);
for (ij=0; ij<files.length; ij++) {
if ((files[ij].name.toLowerCase().trim().split('#')[0] + '?').indexOf('.gif?') != -1 || document.URL.indexOf('Allimages') != -1) {
isag=0; //prefetch(files[if].name);
isagname=files[ij].name;
}
//alert(807);
if (window.parent) { // && (files[ij].type.indexOf('image/') == 0 || ('' + files[ij].type.indexOf('audio/')) == (aneg + '0') || ('' + files[ij].type.indexOf('video/')) == (vneg + '0'))) {
//alert(8807);
if (parent.document.getElementById('slideshow')) {
//alert(28807);
if (files[ij].type.indexOf('pdf') != -1) {
//pdffind='pdf';
parent.maybemore('' + files[ij].name + '', 'slideshow1#' + files[ij].size, parent.document.getElementById('slideshow'));
return '';
}
} else if (ij == eval(-1 + eval('' + files.length)) && parent.document.getElementById('voiceoveraskfor') && parent.document.getElementById('voiceoveraskfortwo')) {
//alert(228807);
//alert(parent.document.getElementById('voiceoveraskfor').src.split('?')[0].split('#')[0] + '?filename=' + encodeURIComponent(files[ij].name) + '&filesize=' + files[ij].size);
if (document.URL.indexOf('concat=') != -1) {
//alert(98);
parent.organizefilenamesize(files[ij].name, files[ij].size);
} else if (document.URL.indexOf('right=') != -1) {
parent.document.getElementById('voiceoveraskfortwo').src=('' + parent.document.getElementById('voiceoveraskfortwo').src).split('?')[0].split('#')[0] + '?filename=' + encodeURIComponent(files[ij].name) + '&filesize=' + files[ij].size + '&right=y';
} else {
parent.document.getElementById('voiceoveraskfor').src=('' + parent.document.getElementById('voiceoveraskfor').src).split('?')[0].split('#')[0] + '?filename=' + encodeURIComponent(files[ij].name) + '&filesize=' + files[ij].size + '&left=y';
}
return '';
} else if (document.URL.indexOf('concat=') != -1 && parent.document.getElementById('voiceoveraskfor') && parent.document.getElementById('voiceoveraskfortwo')) {
//alert(498);
parent.organizefilenamesize(files[ij].name, files[ij].size);
}
}
if (ctimode) { ctiname='' + files[ij].name; }
if (window.parent) {
if (wdingandon.indexOf('/PHP/animegif') != 0) {
if (('' + files[ij].name.toLowerCase() + '~~').indexOf('.pdf~~') != -1) {
if (window.parent) {
if (parent.document.getElementById('slideshow')) {
if (parent.document.getElementById('slideshow').value.trim() == '') {
//alert('' + files[ij].name);
parent.maybemore('' + files[ij].name, 'slideshow1#' + files[ij].size, parent.document.getElementById('slideshow'));
}
}
}
}
}
if (wdingandon.indexOf('Pdfimages') == 0 && ourcbi == 'cbix') {
var idrs=0, drs=document.getElementsByTagName('h1');
for (idrs=0; idrs<drs.length; idrs++) {
drs[idrs].style.visibility='hidden';
}
drs=document.getElementsByTagName('h3');
for (idrs=0; idrs<drs.length; idrs++) {
drs[idrs].style.visibility='hidden';
}
}
if (document.getElementById('share') && document.getElementById('files')) {
if (parent.document.getElementById(ourcbi)) {
if (('' + parent.document.getElementById(ourcbi).style.height) == '228px') {
var huhrectx=document.getElementById('files').getBoundingClientRect();
if (!isdone) {
document.getElementById('share').style.position='absolute';
document.getElementById('share').style.top='' + eval(-1.0 + eval('' + huhrectx.bottom)) + 'px';
document.getElementById('share').style.left='' + huhrectx.left + 'px';
document.getElementById('share').title='Share your media or documents or link!';
document.getElementById('files').disable=false;
if (('' + parent.document.getElementById(ourcbi).style.height) == '228px') {
parent.document.getElementById(ourcbi).style.marginTop='-201px';
if (('' + parent.document.URL + + top.document.URL).replace('/macos_','/animegif').indexOf('/animegif') == -1) {
parent.document.getElementById(ourcbi).style.height='238px';
} else {
parent.document.getElementById(ourcbi).style.height='248px';
}
}
}
//document.getElementById('share').style.top='' + eval(0 + eval('' + huhrectx.top)) + 'px';
//document.getElementById('share').style.left='' + eval(eval(eval('' + huhrectx.width) / 2) + eval('' + huhrectx.left)) + 'px';
//var huhrectxwidth=240;
//alert('' + eval(eval(eval('' + huhrectxwidth) / 2) + eval('' + huhrectx.left)) + 'px ' + huhrectx.left);
//document.getElementById('share').style.left='' + eval(eval(eval('' + huhrectxwidth) / 2) + eval('' + huhrectx.left)) + 'px';

//if (('' + document.getElementById('files').outerHTML).split('>')[0].indexOf('image/*,video/*,audio/*,application/*,text/*') == -1) {
if (('' + parent.document.URL + + top.document.URL).replace('/macos_','/animegif').indexOf('/animegif') == -1) {
document.getElementById('share').style.backgroundColor='transparent';
document.getElementById('share').style.backgroundImage='linear-gradient(to bottom, rgba(255,0,0,0), rgba(255,0,0,0), rgba(127,127,127,1))';
document.getElementById('share').style.textAlign='left';
document.getElementById('share').style.verticalAlign='top';
document.getElementById('share').style.color='blue';
document.getElementById('share').style.borderTopColor='transparent';
document.getElementById('files').style.zIndex='90';
document.getElementById('share').style.zIndex='9';
//document.getElementById('share').style.fontSize='6px';
} else {
document.getElementById('share').style.textAlign='left';
document.getElementById('share').style.verticalAlign='top';
// Debatable
if (('' + parent.document.getElementById(ourcbi).style.height) == '228px') {
parent.document.getElementById(ourcbi).style.marginTop='-201px';
parent.document.getElementById(ourcbi).style.height='238px';
}

}

if (('' + parent.document.URL + + top.document.URL).replace('/macos_','/animegif').indexOf('/animegif') != -1) {
parent.document.getElementById(ourcbi).style.height='262px';
parent.document.getElementById(ourcbi).style.marginTop='-208px';
} else {
//document.getElementById('files').style.marginTop='-15px';
parent.document.getElementById(ourcbi).style.height='252px';
if (wdingandon.indexOf('Pdfimages') != 0 && document.getElementById('share')) {
//alert('1:' + document.getElementById('share').outerHTML);
parent.document.getElementById(ourcbi).style.marginTop='-200px';
}
}
}
}
}
if (parent.document.URL.indexOf('allowaudio=') != -1) { aneg=''; }
if (parent.document.URL.indexOf('allowvideo=') != -1) { vneg=''; }
if (ij == 0 && parent.document.getElementById('justputpdffilename') && parent.document.getElementById('justputpdffilesize') && parent.document.getElementById('justputpdfpath')) {
// alert(56);
if (ourcbi == 'cbi') {
parent.document.getElementById('justputpdfpath').title='';
parent.document.getElementById('justputpdffilename').innerHTML='' + files[ij].name;
if (document.getElementById('share')) {
parent.document.getElementById('justputpdffilesize').innerHTML=' ' + files[ij].size;
} else {
parent.document.getElementById('justputpdffilesize').innerHTML='' + files[ij].size;
}
}
if (document.getElementById('share') && document.getElementById('files')) {
var huhrect=document.getElementById('files').getBoundingClientRect();
if (!isdone) {
document.getElementById('share').style.position='absolute';
document.getElementById('share').style.top='' + huhrect.bottom + 'px';
document.getElementById('share').style.left='' + huhrect.left + 'px';
document.getElementById('share').style.textAlign='left';
document.getElementById('share').style.verticalAlign='top';
document.getElementById('share').style.borderTopColor='transparent';
document.getElementById('files').style.zIndex='90';
document.getElementById('share').style.zIndex='9';
document.getElementById('files').disable=false;
}
}
return '';
}
}
if (window.parent && (files[ij].type.indexOf('image/') == 0 || ('' + files[ij].type.indexOf('audio/')) == (aneg + '0') || ('' + files[ij].type.indexOf('video/')) == (vneg + '0'))) {
//alert(8807);
if (parent.document.getElementById('slideshow')) {
if (!parent.document.getElementById('slideshow2') && parent.document.getElementById('slideshow')) {
console.log('yes ' + ij)
} else {
if (('' + parent.document.getElementById('slideshow' + xssuffix.replace(/^0/g,'')).value).replace(/^undefined$/g,'').replace(/^null$/g,'') != '') {
console.log(('' + parent.document.getElementById('slideshow' + xssuffix.replace(/^0/g,'')).value));
while (('' + parent.document.getElementById('slideshow' + xssuffix.replace(/^0/g,'')).value).replace(/^undefined$/g,'').replace(/^null$/g,'') != '') {
xssuffix='' + eval(0 + eval('' + xnsuffix));
xnsuffix='' + eval(1 + eval('' + xnsuffix));
}
}
hsf="";
if (eval('' + document.getElementById('lhsh').innerHTML.split('#').length) >= eval('' + ihin)) {
if (document.getElementById('lhsh').innerHTML.split('#')[eval('' + ihin)] != '') {
hsf=('#' + document.getElementById('lhsh').innerHTML.split('#')[eval('' + ihin)]).replace('#undefined','');
}
}
ihin++;
//if (!parent.document.getElementById('slideshow2') && parent.document.getElementById('slideshow')) {
// alert('huh');
//}
parent.document.getElementById('slideshow' + xssuffix.replace(/^0/g,'')).value=localhostmap('' + files[ij].size + ' ', files[ij].name, 'slideshow' + xssuffix.replace(/^0/g,''));
parent.maybemore('' + files[ij].size + ' ', 'slideshow' + xnsuffix, parent.document.getElementById('slideshow' + xssuffix.replace(/^0/g,'')));
if (hsf != '') {
parent.document.getElementById('slideshow' + xssuffix.replace(/^0/g,'')).value+=hsf;
}
}
//alert('parent.maybemore("' + '' + files[ij].size + ' ' + ", 'slideshow' + xnsuffix + '" + ", 'slideshow" + xnsuffix + ', parent.document.getElementById("' + 'slideshow' + xssuffix.replace(/^0/g,'') + '"))');
} else if (parent.document.getElementById('result')) {
wponeokay=false;
parent.document.getElementById('result').style.cursor='progress';
//parent.document.getElementById('result').innerHTML='' + files[ij].size + ' ';

if (tconto && files[ij].type.indexOf('image/') == 0 && files.length > 1) {
hsf="";
if (eval('' + document.getElementById('lhsh').innerHTML.split('#').length) >= eval('' + ihin)) {
if (document.getElementById('lhsh').innerHTML.split('#')[eval('' + ihin)] != '') {
hsf=('#' + document.getElementById('lhsh').innerHTML.split('#')[eval('' + ihin)]).replace('#undefined','');
}
}
ihin++;
gifslides.push('' + files[ij].size + ' ' + hsf);
jjnum++;
}
} else if (parent.document.getElementById('aurl') && parent.document.getElementById('vurl')) {
wponeokay=false;
//parent.document.getElementById('aurl').style.cursor='progress';
//parent.document.getElementById('vurl').style.cursor='progress';
if (files[ij].type.indexOf('image/') == 0) {
burllocalhostmap('' + files[ij].size + ' ', files[ij].name, 'burl', ourij);
ourij++;
}
} else if (parent.document.getElementById('resultav')) {
defto='m4v';
midw='_audiovideo_';
if (files[ij].type.indexOf('video/') != -1) {
parent.document.getElementById('videoag').innerHTML=parent.document.getElementById('videoag').innerHTML.replace('Image gif','Image Animated gif');
}
console.log(defto + ' ... ' + midw);
wponeokay=false;
textlocalhostmap('' + files[ij].size + ' ', files[ij].name, '');
console.log('5');
if (parent.document.getElementById('thewords').value == '') {
console.log('6');
parent.document.getElementById('thewords').value=files[ij].name;
} else {
console.log('7');
parent.document.getElementById('thewords').value+=',' + files[ij].name;
}
console.log('8');
if (parent.document.getElementById('outputname').value == '') {
console.log(parent.document.getElementById('cto').value.replace('*',defto));
parent.document.getElementById('outputname').value=files[ij].name.split('.')[0] + '.' + parent.document.getElementById('cto').value.replace('*',defto);
} else {
console.log('2:' + parent.document.getElementById('cto').value.replace('*',defto));
parent.document.getElementById('outputname').value+=',' + files[ij].name.split('.')[0] + '.' + parent.document.getElementById('cto').value.replace('*',defto);
}
console.log('9');
if (parent.document.getElementById('dforms')) {
if (document.URL.toLowerCase().indexOf('totype=') != -1) {
myform='<div style=display:none; id=mydiv' + ij + '><form style=display:none; method=POST action=' + parent.document.URL.split('#')[0].split('?')[0] + ' target=myframe' + ij + '>';
myform+='<input type=hidden name=to id=to' + ij + ' value=""></input>';
myform+='<input type=hidden name=subject id=subject' + ij + ' value="' + (files[ij].name + ' downloadable ready for your inhouse .' + files[ij].name.split('.')[1] + ' to .' + decodeURIComponent(document.URL.toLowerCase().split('totype=')[1].split('&')[0].split('#')[0]).replace('*','m4v') + ' conversions, sent to you (for you to download) as convert' + midw + 'please_' + decodeURIComponent(document.URL.toLowerCase().split('totype=')[1].split('&')[0].split('#')[0]).replace('*','m4v') + '_' + files[ij].name.split('/')[eval(-1 + files[ij].name.split('/').length)] + '"></input>').replace('*','m4v').replace('*','m4v');
myform+='<input type=hidden name=body id=body' + ij + ' value="' + files[ij].name + files[ij].size + '"></input>';
myform+='<input id=bsub' + ij + ' type=submit style=display:none; value="Email"></input></form><iframe name=myframe' + ij + ' style=display:none; src=></iframe></div>';
//alert(myform);
parent.document.getElementById('dforms').innerHTML+=myform;
tbins.push(files[ij].name + files[ij].size);
}
}
}
} else if (window.parent) {
//alert(307);
if (parent.document.getElementById('resultout') || parent.document.getElementById('resultav')) {
//alert(3307);
var rw='html';
if (parent.document.getElementById('resultav')) {
rw='m4v';
defto='m4v';
midw='_audiovideo_';
if (files[ij].type.indexOf('video/') != -1) {
parent.document.getElementById('videoag').innerHTML=parent.document.getElementById('videoag').innerHTML.replace('Image gif','Image Animated gif');
}
}
console.log(defto + ' ... ' + midw);
wponeokay=false;
textlocalhostmap('' + files[ij].size + ' ', files[ij].name, '');
console.log('5');
if (parent.document.getElementById('thewords').value == '') {
console.log('6');
parent.document.getElementById('thewords').value=files[ij].name;
} else {
console.log('7');
parent.document.getElementById('thewords').value+=',' + files[ij].name;
}
console.log('8');
if (parent.document.getElementById('outputname').value == '') {
console.log(parent.document.getElementById('cto').value.replace('*',defto));
parent.document.getElementById('outputname').value=files[ij].name.split('.')[0] + '.' + parent.document.getElementById('cto').value.replace('*',defto);
} else {
console.log('2:' + parent.document.getElementById('cto').value.replace('*',defto));
parent.document.getElementById('outputname').value+=',' + files[ij].name.split('.')[0] + '.' + parent.document.getElementById('cto').value.replace('*',defto);
}
console.log('9');
if (parent.document.getElementById('dforms')) {
if (document.URL.toLowerCase().indexOf('totype=') != -1) {
myform='<div style=display:none; id=mydiv' + ij + '><form style=display:none; method=POST action=' + parent.document.URL.split('#')[0].split('?')[0] + ' target=myframe' + ij + '>';
myform+='<input type=hidden name=to id=to' + ij + ' value=""></input>';
myform+='<input type=hidden name=subject id=subject' + ij + ' value="' + (files[ij].name + ' downloadable ready for your inhouse .' + files[ij].name.split('.')[1] + ' to .' + decodeURIComponent(document.URL.toLowerCase().split('totype=')[1].split('&')[0].split('#')[0]).replace('*',rw) + ' conversions, sent to you (for you to download) as convert' + midw + 'please_' + decodeURIComponent(document.URL.toLowerCase().split('totype=')[1].split('&')[0].split('#')[0]).replace('*',rw) + '_' + files[ij].name.split('/')[eval(-1 + files[ij].name.split('/').length)] + '"></input>').replace('*',rw).replace('*',rw);
myform+='<input type=hidden name=body id=body' + ij + ' value="' + files[ij].name + files[ij].size + '"></input>';
myform+='<input id=bsub' + ij + ' type=submit style=display:none; value="Email"></input></form><iframe name=myframe' + ij + ' style=display:none; src=></iframe></div>';
//alert(myform);
parent.document.getElementById('dforms').innerHTML+=myform;
tbins.push(files[ij].name + files[ij].size);
}
}
} else if (('' + files[ij].type).indexOf('video/') == 0) {
if (parent.document.getElementById('result')) {
localhostmap('' + files[ij].size + ' ', files[ij].name, '');
}
}
} else if (window.parent && ('' + files[ij].type).indexOf('video/') == 0) {
if (parent.document.getElementById('result')) {
localhostmap('' + files[ij].size + ' ', files[ij].name, '');
}
}
}
for (ij=0; ij<files.length; ij++) {
file = files[ij];
filen = file.name;
lasttype = file.type;
if (parent.window) {
if (wdingandon.indexOf('Pdfimages') == 0 && ourcbi == 'cbix') {
var idrs=0, drs=document.getElementsByTagName('h1');
for (idrs=0; idrs<drs.length; idrs++) {
drs[idrs].style.visibility='hidden';
}
drs=document.getElementsByTagName('h3');
for (idrs=0; idrs<drs.length; idrs++) {
drs[idrs].style.visibility='hidden';
}
}
if (document.getElementById('share') && document.getElementById('files')) {
if (parent.document.getElementById(ourcbi)) {
//alert(parent.document.getElementById(ourcbi).style.height);
if (('' + parent.document.getElementById(ourcbi).style.height) == '228px') {
var huhrectx=document.getElementById('files').getBoundingClientRect();
if (!isdone) {
document.getElementById('share').style.position='absolute';
document.getElementById('share').style.top='' + eval(-1.0 + eval('' + huhrectx.bottom)) + 'px';
document.getElementById('share').style.left='' + huhrectx.left + 'px';
document.getElementById('share').title='Share your media or documents or link!';
document.getElementById('files').disable=false;
if (('' + parent.document.getElementById(ourcbi).style.height) == '228px') {
parent.document.getElementById(ourcbi).style.marginTop='-201px';
if (('' + parent.document.URL + + top.document.URL).replace('/macos_','/animegif').indexOf('/animegif') == -1) {
parent.document.getElementById(ourcbi).style.height='238px';
} else {
parent.document.getElementById(ourcbi).style.height='248px';
}
}
}
//document.getElementById('share').style.top='' + eval(0 + eval('' + huhrectx.top)) + 'px';
//var huhrectxwidth=240;
//alert('1:' + eval(eval(eval('' + huhrectxwidth) / 2) + eval('' + huhrectx.left)) + 'px');
//document.getElementById('share').style.left='' + eval(eval(eval('' + huhrectxwidth) / 2) + eval('' + huhrectx.left)) + 'px';

//if (('' + document.getElementById('files').outerHTML).split('>')[0].indexOf('image/*,video/*,audio/*,application/*,text/*') == -1) {
if (('' + parent.document.URL + + top.document.URL).replace('/macos_','/animegif').indexOf('/animegif') == -1) {
document.getElementById('share').style.backgroundColor='transparent';
document.getElementById('share').style.backgroundImage='linear-gradient(to bottom, rgba(255,0,0,0), rgba(255,0,0,0), rgba(127,127,127,1))';
document.getElementById('share').style.textAlign='left';
document.getElementById('share').style.verticalAlign='top';
document.getElementById('share').style.color='blue';
document.getElementById('share').style.borderTopColor='transparent';
document.getElementById('files').style.zIndex='90';
document.getElementById('share').style.zIndex='9';
//document.getElementById('share').style.fontSize='6px';
} else {
document.getElementById('share').style.textAlign='left';
document.getElementById('share').style.verticalAlign='top';
// Debatable
if (('' + parent.document.getElementById(ourcbi).style.height) == '228px') {
parent.document.getElementById(ourcbi).style.marginTop='-201px';
parent.document.getElementById(ourcbi).style.height='238px';
}

}


if (('' + parent.document.URL + + top.document.URL).replace('/macos_','/animegif').indexOf('/animegif') != -1) {
parent.document.getElementById(ourcbi).style.height='262px';
parent.document.getElementById(ourcbi).style.marginTop='-208px';
} else {
//document.getElementById('files').style.marginTop='-15px';
parent.document.getElementById(ourcbi).style.height='252px';
if (wdingandon.indexOf('Pdfimages') != 0 && document.getElementById('share')) {
//alert('0:' + document.getElementById('share').outerHTML);
parent.document.getElementById(ourcbi).style.marginTop='-200px';
}
}
}
}
}
if (ij == 0 && parent.document.getElementById('justputpdffilename') && parent.document.getElementById('justputpdffilesize') && parent.document.getElementById('justputpdfpath')) {
// alert(876);
if (ourcbi == 'cbi') {
parent.document.getElementById('justputpdfpath').title='';
parent.document.getElementById('justputpdffilename').innerHTML='' + file.name;
if (document.getElementById('share')) {
parent.document.getElementById('justputpdffilesize').innerHTML=' ' + files[ij].size;
} else {
parent.document.getElementById('justputpdffilesize').innerHTML='' + files[ij].size;
}
}
if (document.getElementById('share') && document.getElementById('files')) {
var huhrect=document.getElementById('files').getBoundingClientRect();
document.getElementById('share').style.position='absolute';
document.getElementById('share').style.top='' + huhrect.bottom + 'px';
document.getElementById('share').style.left='' + huhrect.left + 'px';
document.getElementById('share').style.textAlign='left';
document.getElementById('share').style.verticalAlign='top';
document.getElementById('share').style.borderTopColor='transparent';
document.getElementById('files').style.zIndex='90';
document.getElementById('share').style.zIndex='9';
document.getElementById('files').disable=false;
}
return '';
}
}
fs.push(file.name.replace(/\\/g,'/').split('/')[eval(-1 + file.name.replace(/\\/g,'/').split('/').length)]);
start = parseInt(opt_startByte) || 0;
stop = parseInt(opt_stopByte) || file.size - 1;
//if (ij > 1) { alert('OK to continue'); }

reader.push(new FileReader());

// If we use onloadend, we need to check the readyState.
// Thanks to https://stackoverflow.com/questions/12546775/get-filename-after-filereader-asynchronously-loaded-a-file
reader[ij].onloadend = (function(mfile) {
return function(evt) {
var dp='', ds=dssuffix, slideshowparent=false, ssuffix='0', nsuffix='2', blnks=' ', xhsf='', zhsfs=[];
var tomt='video/mp4', thext='', ithext=0;
if (evt.target.readyState == FileReader.DONE) { // DONE == 2
if (document.URL.indexOf('straighttext=') != -1) {
if (window.parent) {
if (parent.document.getElementById('result1') && parent.document.getElementById('result2')) {
if (parent.document.getElementById('result1').innerHTML == '') {
parent.document.getElementById('result1').innerHTML=window.atob(evt.target.result.replace('data:application/octet-stream;base64,', ''));
} else {
parent.document.getElementById('result2').innerHTML=window.atob(evt.target.result.replace('data:application/octet-stream;base64,', ''));
}
}
}
}
if (isag >= 0) {
//alert(evt.target.result);
prefetch(evt.target.result.replace('application/octet-stream','image/gif'));
}
if (mfile.type != 'application/octet-stream') { tomt=mfile.type; }
if (mfile.name.indexOf('.') != -1) { thext='.' + mfile.name.split('.')[eval(-1 + file.name.split('.').length)].toLowerCase(); }
if (thext != '') {
for (ithext=0; ithext<mexts.length; ithext++) {
if (mexts[ithext] == thext) {
tomt=mtypes[ithext];
//alert('Tomt=' + tomt);
}
}
}
if (!parent.document.getElementById('slideshow2') && parent.document.getElementById('slideshow')) {
if (lastis == '') {
lastis=evt.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + mfile.type + ';').replace('data:application/octet-stream;', 'data:' + tomt + ';');
if (eval(1 + ij) != eval('' + files.length)) {
setTimeout(pfillit, 7000);
return '';
}
} else {
console.log(parent.document.getElementById('myform').outerHTML.replace('form ', 'form target=_blank ').replace('justiurl', 'pdfimage').replace('./pdfimageplustext.php', '/pdfimageplustext.php').replace('isub', 'isub' + ij).replace('myform', 'myform' + ij).replace('</form>', '<input type=hidden name=pdfnotready value=y></input><input type=hidden name=pdffile value=y></input></form>'));
parent.durip(evt.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + mfile.type + ';').replace('data:application/octet-stream;', 'data:' + tomt + ';'));
//document.getElementById('datend').innerHTML+=parent.document.getElementById('myform').outerHTML.replace('form ', 'form target=_blank ').replace(' value=', ' value="' + evt.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + mfile.type + ';').replace('data:application/octet-stream;', 'data:' + tomt + ';') + '" data-value=').replace('justiurl', 'pdfimage').replace('./pdfimageplustext.php', '/pdfimageplustext.php#myhash').replace('isub', 'isub' + ij).replace('myform', 'myform' + ij).replace('</form>', '<input type=hidden name=pdfnotready value=y></input><input type=hidden name=pdffile value=y></input></form>');
//document.getElementById('myform' + ij).submit();
//console.log('HerE now ' + evt.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + mfile.type + ';').replace('data:application/octet-stream;', 'data:' + tomt + ';'));
}
} //else {
// console.log('HERE now');
//}
//alert('tomt=' + tomt);
slideshowparent=false;
ssuffix='0';
if (window.parent) {
if (parent.document.getElementById('resultout') || parent.document.getElementById('resultav')) {
if (document.URL.toLowerCase().indexOf('rjmprogramming.com.au') != -1) {
if (parent.document.getElementById('dforms')) {
if (document.URL.toLowerCase().indexOf('totype=') != -1) {
slideshowparent=true;
for (var ikj=0; ikj<tbins.length; ikj++) {
if (tbins[ikj] == (mfile.name + mfile.size)) {
parent.document.getElementById('body' + ikj).value=evt.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + mfile.type + ';').replace('data:application/octet-stream;', 'data:' + tomt + ';');
}
}
}
}
}
}
}
if (window.parent && (mfile.type.indexOf('image/') == 0 || mfile.type.indexOf('audio/') == 0 || mfile.type.indexOf('video/') == 0)) {
if (parent.document.getElementById('slideshow')) {
//parent.document.title+=' ' + mfile.size;
// maybemore(this.value, 'slideshow1', this);
if (!parent.document.getElementById('slideshow2') && parent.document.getElementById('slideshow')) {
console.log('HerE');
} //else {
// console.log('HERE');
//}
while (parent.document.getElementById('slideshow' + ssuffix.replace(/^0/g,'')).value.split('#')[0].replace('' + mfile.size + ' ','') != '') {
ssuffix='' + eval(0 + eval('' + nsuffix));
nsuffix='' + eval(1 + eval('' + nsuffix));
}
if (!parent.document.getElementById('slideshow2')) {
console.log('HerE ' + nsuffix);
} //else {
// console.log('HERE ' + nsuffix);
//}
//parent.document.getElementById('slideshow' + ssuffix.replace(/^0/g,'')).value=' ';
//parent.document.title+=':' + ssuffix;
if (('' + evt.target.result).length <= 5) {
parent.document.getElementById('slideshow' + ssuffix.replace(/^0/g,'')).value='';
} else {
if ((parent.document.getElementById('slideshow' + ssuffix.replace(/^0/g,'')).value + ' ').substring(0,1) >= '0' && (parent.document.getElementById('slideshow' + ssuffix.replace(/^0/g,'')).value + ' ').substring(0,1) <= '9') {
xhsf='';
zhsfs=parent.document.getElementById('slideshow' + ssuffix.replace(/^0/g,'')).value.split('#');
if (eval('' + zhsfs.length) >= 2) {
if (zhsfs[1] != '') { xhsf='#' + zhsfs[1]; }
}
parent.document.getElementById('slideshow' + ssuffix.replace(/^0/g,'')).value=evt.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + mfile.type + ';').replace('data:application/octet-stream;', 'data:' + tomt + ';') + xhsf;
if (mfile.type.indexOf('audio/') == 0 || mfile.type.indexOf('video/') == 0) {
//alert(117);
parent.maybemore((evt.target.result + xhsf).replace('data:;', 'data:' + mfile.type + ';').replace('data:application/octet-stream;', 'data:' + tomt + ';'), 'slideshow' + nsuffix, parent.document.getElementById('slideshow' + ssuffix.replace(/^0/g,'')));
}
}
slideshowparent=true;
}
} else if (parent.document.getElementById('result')) {
wponeokay=false;
if (mfile.type.indexOf('audio/') == 0 || mfile.type.indexOf('video/') == 0 || mfile.type.indexOf('image/') == 0) {
if (('' + evt.target.result).length <= 5) {
parent.document.getElementById('result').innerHTML='';
parent.document.getElementById('result').style.cursor='pointer';
} else {
//alert(307);
parent.document.getElementById('audioname').value=mfile.name;
if (('' + typeof parent.getduresult) == 'function') {
parent.document.getElementById('result').innerHTML=parent.getduresult(evt.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + mfile.type + ';').replace('data:application/octet-stream;', 'data:' + tomt + ';'));
} else {
parent.document.getElementById('result').innerHTML=evt.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + mfile.type + ';').replace('data:application/octet-stream;', 'data:' + tomt + ';');
}
parent.document.getElementById('result').style.cursor='pointer';
parent.notwotwo();
parent.document.getElementById('saysub').value='Process Media Below';
slideshowparent=true;


if (tconto && mfile.type.indexOf('image/') == 0 && iinum > 1) {
for (var iop=0; iop<gifslides.length; iop++) {
if (('' + gifslides[iop]).indexOf('' + mfile.size + ' ') == 0) {
gifslides[iop]=gifslides[iop].replace('' + mfile.size + ' ', evt.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + mfile.type + ';').replace('data:application/octet-stream;', 'data:' + tomt + ';'));
}
}
jjnum--;
if (jjnum == 0) {
//alert(gifslides.length);
//if (tconto.getElementById('slideshow')) { alert('yes'); }
gifslidesit(); //tconto.getElementById('myform').submit();
}
}
//}



}
}
} else if (parent.document.getElementById('aurl') && parent.document.getElementById('vurl')) {
if (mfile.type.indexOf('audio/') == 0) {
//alert(227);
parent.document.getElementById('aurl').value=evt.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + mfile.type + ';').replace('data:application/octet-stream;', 'data:' + tomt + ';');
parent.document.getElementById('aurl').style.cursor='pointer';
slideshowparent=true;
} else if (mfile.type.indexOf('video/') == 0) {
parent.document.getElementById('vurl').value=evt.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + mfile.type + ';').replace('data:application/octet-stream;', 'data:' + tomt + ';');
parent.document.getElementById('vurl').style.cursor='pointer';
slideshowparent=true;
} else if (mfile.type.indexOf('image/') == 0) {
//alert(evt.target.result.length);
if (parent.document.getElementById('vurl').title.indexOf('|' + mfile.size + mfile.name) != -1) {
parent.document.getElementById('vurl').title=parent.document.getElementById('vurl').title.replace('|' + mfile.size + mfile.name, '|' + evt.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + mfile.type + ';').replace('data:application/octet-stream;', 'data:' + tomt + ';'));
//top.document.title+=' v' + mfile.size + mfile.name + evt.target.result.length;
} else if (parent.document.getElementById('aurl').title.indexOf('|' + mfile.size + mfile.name) != -1) {
parent.document.getElementById('aurl').title=parent.document.getElementById('aurl').title.replace('|' + mfile.size + mfile.name, '|' + evt.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + mfile.type + ';').replace('data:application/octet-stream;', 'data:' + tomt + ';'));
//top.document.title+=' a' + mfile.size + mfile.name + evt.target.result.length;
}
parent.document.getElementById('vurl').placeholder=evt.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + mfile.type + ';').replace('data:application/octet-stream;', 'data:' + tomt + ';').trim();
//parent.document.getElementById('burl').title=evt.target.result.replace('data:;', 'data:' + mfile.type + ';').replace('data:application/octet-stream;', 'data:' + mfile.type + ';').trim();
//parent.document.getElementById('burl').value=evt.target.result.replace('data:;', 'data:' + mfile.type + ';').replace('data:application/octet-stream;', 'data:' + mfile.type + ';').trim();
//alert(evt.target.result.substring(0,56));
slideshowparent=true;
}
} else if (parent.document.getElementById('resultout') || parent.document.getElementById('resultav')) {
slideshowparent=true;
//for (var ikj=0; ikj<tbins.length; ikj++) {
// if (tbins[ikj] == (mfile.name + mfile.size)) {
// parent.document.getElementById('body' + ikj).value=evt.target.result.replace('data:;', 'data:' + mfile.type + ';').replace('data:application/octet-stream;', 'data:' + mfile.type + ';');
// }
//}
}
}
if (!slideshowparent) {
if (mfile.type.indexOf('image/') == 0) {
if (document.getElementById('ibchkbox').checked || thecanvas || documentURL.indexOf('vionly=') != -1) {
if (document.getElementById('gb')) {
document.getElementById('gb').src=evt.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + mfile.type + ';');
document.getElementById('gb').style.display='inline-block';
if (document.getElementById('downimage')) {
document.getElementById('downimage').style.display='inline-block';
document.getElementById('rightimage').style.display='none';
} else {
document.getElementById('dtli').open=true;
}
} else if (document.getElementById('icontent').innerHTML == '') {
// var dsprefix="<details open><summary>"; // + dsplus
// var dsmid="</summary>";
// var dssuffix="</details>";
if (dsprefix.indexOf('image') != -1) {
dp='<hr>' + dsprefix.replace(/xx/g,'vb').replace(/image/g,'video') + 'Video' + dsmid + dssuffix;
dp+=dsprefix.replace(/xx/g,'ab').replace(/image/g,'audio') + 'Audio' + dsmid + dssuffix;
dp+=dsprefix.replace(/xx/g,'ib').replace(/image/g,'other') + 'Other' + dsmid + dssuffix;
dp+=(dsprefix.replace('iNlInE-bLoCk','none').replace('NoNe','inline-block').replace(/xx/g,'gb') + 'Image').replace('>Image', ' id=sumimg>Image') + dsmid;
} else {
dp=dsprefix.replace('><',' id=dtlv><') + 'Video  ' + dsmid + dssuffix;
dp+=dsprefix.replace('><',' id=dtla><') + 'Audio  ' + dsmid + dssuffix;
dp+=dsprefix.replace('><',' id=dtlo><') + 'Other  ' + dsmid + dssuffix;
dp+=(dsprefix.replace('><',' id=dtli><') + 'Image').replace('>Image', ' id=sumimg>Image') + '  ' + dsmid;
}
document.getElementById('icontent').innerHTML+=dp + ipre + evt.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + mfile.type + ';') + isuf + ds;

} else if (document.getElementById('dtli') || document.getElementById('divshtimage')) {
if (dsprefix.indexOf('image') != -1) {
if (document.getElementById('ab')) { document.getElementById(downright('ab')).style.display='none'; }
if (document.getElementById('vb')) { document.getElementById(downright('vb')).style.display='none'; }
if (document.getElementById('ib')) { document.getElementById(downright('ib')).style.display='none'; }
document.getElementById('divshtimage').innerHTML+=ipre + evt.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + mfile.type + ';') + isuf;
tdownright('gb');
} else {
document.getElementById('dtla').open=false;
document.getElementById('dtlv').open=false;
document.getElementById('dtlo').open=false;
document.getElementById('dtli').open=true;
document.getElementById('dtli').innerHTML+=ipre + evt.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + mfile.type + ';') + isuf;
}
} else {
document.getElementById('icontent').innerHTML+=ipre + evt.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + mfile.type + ';') + isuf;
}
} else if (slideshowparent && mfile.type.indexOf('audio/') == 0) {
//alert(327);
slideshowparent=slideshowparent;
} else if (slideshowparent && mfile.type.indexOf('video/') == 0) {
slideshowparent=slideshowparent;
} else if (wponeokay) {
//alert('why12');
wo=window.open(wp1,wp2);
wo.document.write(ipre + evt.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + mfile.type + ';') + isuf);
wo.document.title = mfile.name.replace(/\\/g,'/').split('/')[eval(-1 + mfile.name.replace(/\\/g,'/').split('/').length)];
}
} else if (mfile.type.indexOf('audio/') == 0) {
//alert(427);
if (document.getElementById('ibchkbox').checked || thecanvas || documentURL.indexOf('vionly=') != -1) {
//alert(527);
if (document.getElementById('ab')) {
document.getElementById('ab').src=evt.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + mfile.type + ';');
document.getElementById('ab').style.display='inline-block';
if (document.getElementById('downaudio')) {
document.getElementById('downaudio').style.display='inline-block';
document.getElementById('rightaudio').style.display='none';
} else {
document.getElementById('dtla').open=true;
}
} else if (document.getElementById('icontent').innerHTML == '') {
// var dsprefix="<details open><summary>"; // + dsplus
// var dsmid="</summary>";
// var dssuffix="</details>";
if (dsprefix.indexOf('image') != -1) {
dp='<hr>' + dsprefix.replace(/xx/g,'vb').replace(/image/g,'video') + 'Video' + dsmid + dssuffix;
dp+=(dsprefix.replace(/xx/g,'gb') + 'Image').replace('>Image', ' id=sumimg>Image') + dsmid + dssuffix;
dp+=dsprefix.replace(/xx/g,'ib').replace(/image/g,'other') + 'Other' + dsmid + dssuffix;
dp+=dsprefix.replace('iNlInE-bLoCk','none').replace('NoNe','inline-block').replace(/xx/g,'ab').replace(/image/g,'audio') + 'Audio' + dsmid;
} else {
//alert(107);
dp=dsprefix.replace('><',' id=dtlv><') + 'Video  ' + dsmid + dssuffix;
dp+=(dsprefix.replace('><',' id=dtli><') + 'Image').replace('>Image', ' id=sumimg>Image') + '  ' + dsmid + dssuffix;
dp+=dsprefix.replace('><',' id=dtlo><') + 'Other  ' + dsmid + dssuffix;
dp+=dsprefix.replace('><',' id=dtla><') + 'Audio  ' + dsmid;
}
document.getElementById('icontent').innerHTML+=dp + apre + mfile.type + amid + evt.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + mfile.type + ';') + asuf.replace('><', ' id=v' + mfile.name + '><') + ds;

} else if (document.getElementById('dtla') || document.getElementById('divshtaudio')) {
if (dsprefix.indexOf('image') != -1) {
if (document.getElementById('gb')) { document.getElementById(downright('gb')).style.display='none'; }
if (document.getElementById('vb')) { document.getElementById(downright('vb')).style.display='none'; }
if (document.getElementById('ib')) { document.getElementById(downright('ib')).style.display='none'; }
document.getElementById('divshtaudio').innerHTML+=apre + mfile.type + amid + evt.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + mfile.type + ';') + asuf.replace('><', ' id=v' + mfile.name + '><');
tdownright('ab');
} else {
//alert(507);
document.getElementById('dtli').open=false;
document.getElementById('dtlv').open=false;
document.getElementById('dtlo').open=false;
document.getElementById('dtla').open=true;
document.getElementById('dtla').innerHTML+=apre + mfile.type + amid + evt.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + mfile.type + ';') + asuf.replace('><', ' id=v' + mfile.name + '><');
}
} else {
document.getElementById('icontent').innerHTML+=apre + mfile.type + amid + evt.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + mfile.type + ';') + asuf.replace('><', ' id=v' + mfile.name + '><');
}
} else if (slideshowparent && mfile.type.indexOf('audio/') == 0) {
//alert(627);
slideshowparent=slideshowparent;
} else if (slideshowparent && mfile.type.indexOf('video/') == 0) {
slideshowparent=slideshowparent;
} else if (wponeokay) {
//alert('why123');
wo=window.open(wp1,wp2);
wo.document.write(apre + mfile.type + amid + evt.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + mfile.type + ';') + asuf.replace('><', ' id=a' + mfile.name + '><'));
wo.document.title = mfile.name.replace(/\\/g,'/').split('/')[eval(-1 + mfile.name.replace(/\\/g,'/').split('/').length)];
}
} else if (mfile.type.indexOf('video/') == 0) {
if (document.getElementById('ibchkbox').checked || thecanvas || documentURL.indexOf('vionly=') != -1) {
if (document.getElementById('vb')) {
document.getElementById('vb').src=evt.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + mfile.type.replace('application/octet-stream', tomt) + ';');
document.getElementById('vb').style.display='inline-block';
if (document.getElementById('downvideo')) {
document.getElementById('downvideo').style.display='inline-block';
document.getElementById('rightvideo').style.display='none';
} else {
document.getElementById('dtlv').open=true;
}
} else if (document.getElementById('icontent').innerHTML == '') {
// var dsprefix="<details open><summary>"; // + dsplus
// var dsmid="</summary>";
// var dssuffix="</details>";
if (dsprefix.indexOf('image') != -1) {
dp='<hr>' + dsprefix.replace(/xx/g,'ab').replace(/image/g,'audio') + 'Audio' + dsmid + dssuffix;
dp+=(dsprefix.replace(/xx/g,'gb') + 'Image').replace('>Image', ' id=sumimg>Image') + dsmid + dssuffix;
dp+=dsprefix.replace(/xx/g,'ib').replace(/image/g,'other') + 'Other' + dsmid + dssuffix;
dp+=dsprefix.replace('iNlInE-bLoCk','none').replace('NoNe','inline-block').replace(/xx/g,'vb').replace(/image/g,'video') + 'Video' + dsmid;
} else {
//alert(607);
dp=(dsprefix.replace('><',' id=dtli><') + 'Image').replace('>Image', ' id=sumimg>Image') + '  ' + dsmid + dssuffix;
dp+=dsprefix.replace('><',' id=dtla><') + 'Audio  ' + dsmid + dssuffix;
dp+=dsprefix.replace('><',' id=dtlo><') + 'Other  ' + dsmid + dssuffix;
dp+=dsprefix.replace('><',' id=dtlv><') + 'Video  ' + dsmid;
}
document.getElementById('icontent').innerHTML+=dp + vpre + mfile.type.replace('application/octet-stream', tomt) + vmid + evt.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + mfile.type.replace('application/octet-stream', tomt) + ';') + vsuf.replace('><', ' id=v' + mfile.name + '><').replace('application/octet-stream', tomt) + ds;
} else if (document.getElementById('dtlv') || document.getElementById('divshtvideo')) {
if (dsprefix.indexOf('image') != -1) {
if (document.getElementById('gb')) { document.getElementById(downright('gb')).style.display='none'; }
if (document.getElementById('ab')) { document.getElementById(downright('ab')).style.display='none'; }
if (document.getElementById('ib')) { document.getElementById(downright('ib')).style.display='none'; }
document.getElementById('divshtvideo').innerHTML+=vpre + mfile.type.replace('application/octet-stream', tomt) + vmid + evt.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + mfile.type.replace('application/octet-stream', tomt) + ';') + vsuf.replace('><', ' id=v' + mfile.name + '><').replace('application/octet-stream', tomt);
tdownright('vb');
} else {
document.getElementById('dtla').open=false;
document.getElementById('dtli').open=false;
document.getElementById('dtlo').open=false;
document.getElementById('dtlv').open=true;
document.getElementById('dtlv').innerHTML+=vpre + mfile.type.replace('application/octet-stream', tomt) + vmid + evt.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + mfile.type.replace('application/octet-stream', tomt) + ';') + vsuf.replace('><', ' id=v' + mfile.name + '><').replace('application/octet-stream', tomt);
}
} else {
document.getElementById('icontent').innerHTML+=vpre + mfile.type.replace('application/octet-stream', tomt) + vmid + evt.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + mfile.type.replace('application/octet-stream', tomt) + ';') + vsuf.replace('><', ' id=v' + mfile.name + '><').replace('application/octet-stream', tomt);
}
} else if (slideshowparent && mfile.type.indexOf('audio/') == 0) {
//alert(727);
slideshowparent=slideshowparent;
} else if (slideshowparent && mfile.type.indexOf('video/') == 0) {
slideshowparent=slideshowparent;
} else if (wponeokay) {
//alert('why1234');
wo=window.open(wp1,wp2);
wo.document.write(vpre + mfile.type.replace('application/octet-stream', tomt) + vmid + evt.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + mfile.type.replace('application/octet-stream', tomt) + ';') + vsuf.replace('><', ' id=v' + mfile.name + '><').replace('application/octet-stream', tomt));
wo.document.title = mfile.name.replace(/\\/g,'/').split('/')[eval(-1 + mfile.name.replace(/\\/g,'/').split('/').length)];
}
} else {
if (document.getElementById('ibchkbox').checked || thecanvas || documentURL.indexOf('vionly=') != -1) {
if (document.getElementById('ib')) {
document.getElementById('ib').src=evt.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + mfile.type.replace('application/octet-stream', tomt) + ';');
document.getElementById('ib').style.display='inline-block';
if (document.getElementById('downother')) {
document.getElementById('downother').style.display='inline-block';
document.getElementById('rightother').style.display='none';
} else {
document.getElementById('dtlo').open=true;
}
} else if (document.getElementById('icontent').innerHTML == '') {
// var dsprefix="<details open><summary>"; // + dsplus
// var dsmid="</summary>";
// var dssuffix="</details>";
if (dsprefix.indexOf('image') != -1) {
dp='<hr>' + dsprefix.replace(/xx/g,'ab').replace(/image/g,'audio') + 'Audio' + dsmid + dssuffix;
dp+=(dsprefix.replace(/xx/g,'gb') + 'Image').replace('>Image', ' id=sumimg>Image') + dsmid + dssuffix;
dp+=dsprefix.replace(/xx/g,'vb').replace(/image/g,'video') + 'Video' + dsmid + dssuffix;
dp+=dsprefix.replace('iNlInE-bLoCk','none').replace('NoNe','inline-block').replace(/xx/g,'ib').replace(/image/g,'other') + 'Other' + dsmid;
} else {
//alert(707);
dp=dsprefix.replace('><',' id=dtlv><') + 'Video  ' + dsmid + dssuffix;
dp+=dsprefix.replace('><',' id=dtla><') + 'Audio  ' + dsmid + dssuffix;
dp+=(dsprefix.replace('><',' id=dtli><') + 'Image').replace('>Image', ' id=sumimg>Image') + '  ' + dsmid + dssuffix;
dp+=dsprefix.replace('><',' id=dtlo><') + 'Other  ' + dsmid;
}
document.getElementById('icontent').innerHTML+=dp + opre + evt.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + tomt + ';') + osuf + ds;

} else if (document.getElementById('dtlo') || document.getElementById('divshtother')) {
if (dsprefix.indexOf('image') != -1) {
if (document.getElementById('gb')) { document.getElementById(downright('gb')).style.display='none'; }
if (document.getElementById('ab')) { document.getElementById(downright('ab')).style.display='none'; }
if (document.getElementById('vb')) { document.getElementById(downright('vb')).style.display='none'; }
document.getElementById('divshtother').innerHTML+=opre + evt.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + tomt + ';') + osuf;
tdownright('ib');
} else {
document.getElementById('dtla').open=false;
document.getElementById('dtlv').open=false;
document.getElementById('dtli').open=false;
document.getElementById('dtlo').open=true;
document.getElementById('dtlo').innerHTML+=opre + evt.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + tomt + ';') + osuf;
}
} else {
document.getElementById('icontent').innerHTML+=opre + evt.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + tomt + ';') + osuf;
}
} else if (slideshowparent && mfile.type.indexOf('audio/') == 0) {
//alert(827);
slideshowparent=slideshowparent;
} else if (slideshowparent && mfile.type.indexOf('video/') == 0) {
slideshowparent=slideshowparent;
} else if (wponeokay) {
//alert('why12345');
wo=window.open(wp1,wp2);
wo.document.write(opre + evt.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + tomt + ';') + osuf);
wo.document.title = mfile.name.replace(/\\/g,'/').split('/')[eval(-1 + mfile.name.replace(/\\/g,'/').split('/').length)];
}
}
}
} };
})(files[ij]);

blob.push(file.slice(start, stop + 1));
reader[ij].readAsDataURL(blob[ij]);
kij++;
// for (variiuy=0; variiuy<file.size; variiuy++) {
// blks+=' ';
// }

}
}


function onl() {
document.querySelector('.readBytesButtons').addEventListener('click', function(evt) {
if (evt.target.tagName.toLowerCase() == 'button') {
var startByte = evt.target.getAttribute('data-startbyte');
var endByte = evt.target.getAttribute('data-endbyte');
readBlob(startByte, endByte);
}
}, false);
if (window.parent) {
if (parent.document.getElementById('slideshow')) {
if (document.URL.indexOf('?d=') != -1 && document.URL.indexOf('&clickfiles=') != -1) {
setTimeout(clickfiles, 5000);
}
}
}
}

function clickfiles() {
document.getElementById('files').click();
}

function actoit(iois) {
if (iois != null) {
tconto = (iois.contentWindow || iois.contentDocument);
if (tconto != null) {
if (tconto.document) { tconto = tconto.document; }
if (tconto.body == null) {
tconto=null;
}
}
}
}

function maybenothing() {
if (document.getElementById('share')) {
var huhrectx=document.getElementById('files').getBoundingClientRect();
document.getElementById('share').style.position='absolute';
document.getElementById('share').style.top='' + eval(-1.0 + eval('' + huhrectx.bottom)) + 'px';
document.getElementById('share').style.left='' + huhrectx.left + 'px';
document.getElementById('share').title='Share your media or documents or link!';
document.getElementById('files').disable=false;
if (('' + parent.document.getElementById(ourcbi).style.height) == '228px') {
parent.document.getElementById(ourcbi).style.marginTop='-201px';
parent.document.getElementById(ourcbi).style.height='238px';
}
isdone=true;
} else {
document.getElementById('files').style.visibility='hidden';
}
}

function filesd() {
document.getElementById('files').disable=false;
}

function dolhsh() {
if (window.parent) {
if (parent.document.getElementById('voiceoveraskfor')) {
return '';
}
}
if (window.parent) {
if (parent.document.getElementById('cbix') && !parent.document.getElementById('voiceoveraskfor')) {
if (document.URL == parent.document.getElementById('cbix').src) {
ourcbi='cbix';
if (document.getElementById('share')) {
if (document.getElementById('files')) {
document.getElementById('files').disable=true;
setTimeout(filesd, 5000);
}
document.getElementById('files').onmousedown = function() { return parent.stayex(); }
document.getElementById('files').ontouchdown = function() { return parent.stayex(); }
document.getElementById('share').onmousedown = function() { return parent.stayex(); }
document.getElementById('share').ontouchdown = function() { return parent.stayex(); }
}
}
}
}
thecanvas = document.querySelector("#video-canvas");
thecontext = thecanvas.getContext("2d");
thevideo = document.querySelector("#main-video");

if (wdingandon.indexOf('Pdfimages') == 0 && document.getElementById('share')) {
var idrs=0, drs=document.getElementsByTagName('h1');
for (idrs=0; idrs<drs.length; idrs++) {
drs[idrs].style.visibility='hidden';
}
drs=document.getElementsByTagName('h3');
for (idrs=0; idrs<drs.length; idrs++) {
drs[idrs].style.visibility='hidden';
}
setTimeout(maybenothing, 5000);
} else if (!document.getElementById('share') && ourcbi == 'cbix') {
document.getElementById('files').style.visibility='hidden';
document.getElementById('files').style.display='none';
}

if (document.URL.indexOf('vionly=') != -1) {
document.getElementById('files').accept='video/*,image/*';
}

if (document.URL.replace('Allimages','Gifimages').replace('Pdfimages','Gifimages').indexOf('Gifimages') != -1) {
if (document.URL.indexOf('Gifimages') != -1) {
document.getElementById('files').accept='image/gif';
} else if (document.URL.indexOf('Allimages') != -1) {
document.getElementById('files').accept='image/*';
}
var idrs=0, drs=document.getElementsByTagName('h1');
for (idrs=0; idrs<drs.length; idrs++) {
drs[idrs].style.visibility='hidden';
}
drs=document.getElementsByTagName('h3');
for (idrs=0; idrs<drs.length; idrs++) {
drs[idrs].style.visibility='hidden';
}
}

if (document.URL.indexOf('audonly=') != -1) {
document.getElementById('files').accept='audio/*';
}

document.querySelector("#files").addEventListener('change', function() {
var xtomt='', xthext='', ixthext=0;
try {
if (document.querySelector("#files").files[0].type != 'application/octet-stream') { xtomt=document.querySelector("#files").files[0].type; }
//if (document.querySelector("#files").files[0].name.indexOf('.') != -1) { xthext='.' + document.querySelector("#files").files[0].name.split('.')[eval(-1 + file.name.split('.').length)].toLowerCase(); }
if (document.querySelector("#files").files[0].name.indexOf('.') != -1) { xthext='.' + document.querySelector("#files").files[0].name.split('.')[eval(-1 + document.querySelector("#files").files[0].name.split('.').length)].toLowerCase(); }
} catch (excs) {
if (document.querySelector("#files").file.type != 'application/octet-stream') { xtomt=document.querySelector("#files").file.type; }
//if (document.querySelector("#files").file.name.indexOf('.') != -1) { xthext='.' + document.querySelector("#files").file.name.split('.')[eval(-1 + file.name.split('.').length)].toLowerCase(); }
if (document.querySelector("#files").file.name.indexOf('.') != -1) { xthext='.' + document.querySelector("#files").file.name.split('.')[eval(-1 + document.querySelector("#files").file.name.split('.').length)].toLowerCase(); }
}
if (xthext != '') {
for (ixthext=0; ixthext<mexts.length; ixthext++) {
if (mexts[ixthext] == xthext) {
xtomt=mtypes[ixthext];
//alert('Tomt=' + tomt);
}
}
}
//alert('xtomt=' + xtomt);
documentURL=document.URL;
if (xtomt.indexOf('video/') != 0 && document.getElementById('sumimg')) {
document.getElementById('sumimg').innerHTML='Image';
}
if (xtomt.indexOf('video/') == 0) {
documentURL+='#vionly=y';
// Object Url as the video source
document.querySelector("#main-video source").setAttribute('src', URL.createObjectURL(document.querySelector("#files").files[0]));

// Load the video and show it
thevideo.load();

// Load metadata of the video to get video duration and dimensions
thevideo.addEventListener('loadedmetadata', function() {
// Set canvas dimensions same as video dimensions
thecanvas.width = thevideo.videoWidth;
thecanvas.height = thevideo.videoHeight;
setTimeout(() => {
//thecanvas.style.display = 'inline';
//thecanvas.style.border = '2px solid pink';
thecontext.drawImage(thevideo, 0, 0, thevideo.videoWidth, thevideo.videoHeight);
if (parent.document.getElementById('tdright') || documentURL.indexOf('vionly=') != -1) {
if (!document.getElementById('ibchkbox').checked && wponeokay) {
if (document.getElementById('dtli')) {
if ((document.getElementById('dtli').innerHTML + '~').replace('<hr>','').trim().indexOf('</summary>~') != -1) {
if (document.getElementById('dtli').innerHTML.indexOf('<hr') != -1) {
document.getElementById('dtli').innerHTML=document.getElementById('dtli').innerHTML.replace('<hr', '<img title="First frame of video" src="' + thecanvas.toDataURL() + '"></img><hr');
} else {
document.getElementById('dtli').innerHTML+='<img title="First frame of video" src="' + thecanvas.toDataURL() + '"></img>';
}
if (document.getElementById('sumimg')) {
document.getElementById('sumimg').innerHTML='Image <img onclick="event.stopPropagation(); document.querySelector(' + "'" + 'video' + "'" + ').play(); setTimeout(dtlvize,2000); " style="width:60px;border:1px dotted yellow;" title="First frame of video" src="' + thecanvas.toDataURL() + '"></img>';
document.getElementById('dtli').open=false;
}
}
}
//alert('why123456');
ourwois=window.open(wp1,wp2);
ourwois.document.write('<html><body><img title="First frame of video" src="' + thecanvas.toDataURL() + '"></img></body></html>');
ourwois.document.title='First frame of video';
} else if (document.getElementById('dtli')) {
if ((document.getElementById('dtli').innerHTML + '~').replace('<hr>','').trim().indexOf('</summary>~') != -1) {
if (document.getElementById('dtli').innerHTML.indexOf('<hr') != -1) {
document.getElementById('dtli').innerHTML=document.getElementById('dtli').innerHTML.replace('<hr', '<img title="First frame of video" src="' + thecanvas.toDataURL() + '"></img><hr');
} else {
document.getElementById('dtli').innerHTML+='<img title="First frame of video" src="' + thecanvas.toDataURL() + '"></img>';
}
if (document.getElementById('sumimg')) {
document.getElementById('sumimg').innerHTML='Image <img onclick="event.stopPropagation(); document.querySelector(' + "'" + 'video' + "'" + ').play(); setTimeout(dtlvize,2000); " style="width:60px;border:1px dotted yellow;" title="First frame of video" src="' + thecanvas.toDataURL() + '"></img>';
document.getElementById('dtli').open=false;
}
}
}
//document.body.style.background='URL(' + thecanvas.toDataURL() + ')';
//document.body.style.backgroundRepeat='no-repeat';
if (parent.document.getElementById('tdright')) {
parent.document.getElementById('tdright').style.width='' + thecanvas.width + 'px';
parent.document.getElementById('tdright').style.height='' + thecanvas.height + 'px';
parent.document.getElementById('tdright').style.background='URL(' + thecanvas.toDataURL() + ')';
parent.document.getElementById('tdright').style.backgroundSize='contain';
parent.document.getElementById('tdright').style.backgroundRepeat='no-repeat';
parent.document.getElementById('tdright').style.backgroundPosition='0px 80px';
}
//alert(thecanvas.toDataURL());
} else if (parent.document.getElementById('tdleft')) {
if (!document.getElementById('ibchkbox').checked && wponeokay) {
if (document.getElementById('dtli')) {
if ((document.getElementById('dtli').innerHTML + '~').replace('<hr>','').trim().indexOf('</summary>~') != -1) {
if (document.getElementById('dtli').innerHTML.indexOf('<hr') != -1) {
document.getElementById('dtli').innerHTML=document.getElementById('dtli').innerHTML.replace('<hr', '<img title="First frame of video" src="' + thecanvas.toDataURL() + '"></img><hr');
} else {
document.getElementById('dtli').innerHTML+='<img title="First frame of video" src="' + thecanvas.toDataURL() + '"></img>';
}
if (document.getElementById('sumimg')) {
document.getElementById('sumimg').innerHTML='Image <img onclick="event.stopPropagation(); document.querySelector(' + "'" + 'video' + "'" + ').play(); setTimeout(dtlvize,2000); " style="width:60px;border:1px dotted yellow;" title="First frame of video" src="' + thecanvas.toDataURL() + '"></img>';
document.getElementById('dtli').open=false;
}
}
}
//alert('why1234567');
ourwois=window.open(wp1,wp2);
ourwois.document.write('<html><body><img title="First frame of video" src="' + thecanvas.toDataURL() + '"></img></body></html>');
ourwois.document.title='First frame of video';
} else if (document.getElementById('dtli')) {
if ((document.getElementById('dtli').innerHTML + '~').replace('<hr>','').trim().indexOf('</summary>~') != -1) {
if (document.getElementById('dtli').innerHTML.indexOf('<hr') != -1) {
document.getElementById('dtli').innerHTML=document.getElementById('dtli').innerHTML.replace('<hr', '<img title="First frame of video" src="' + thecanvas.toDataURL() + '"></img><hr');
} else {
document.getElementById('dtli').innerHTML+='<img title="First frame of video" src="' + thecanvas.toDataURL() + '"></img>';
}
if (document.getElementById('sumimg')) {
document.getElementById('sumimg').innerHTML='Image <img onclick="event.stopPropagation(); document.querySelector(' + "'" + 'video' + "'" + ').play(); setTimeout(dtlvize,2000); " style="width:60px;border:1px dotted yellow;" title="First frame of video" src="' + thecanvas.toDataURL() + '"></img>';
document.getElementById('dtli').open=false;
}
}
}
parent.document.getElementById('tdleft').style.background='URL(' + thecanvas.toDataURL() + ')';
parent.document.getElementById('tdleft').style.backgroundSize='contain';
parent.document.getElementById('tdleft').style.backgroundRepeat='no-repeat';
parent.document.getElementById('tdleft').style.backgroundPosition='0px 80px';
//alert(thecanvas.toDataURL());
} else {
if (!document.getElementById('ibchkbox').checked && wponeokay) {
if (document.getElementById('dtli')) {
if ((document.getElementById('dtli').innerHTML + '~').replace('<hr>','').trim().indexOf('</summary>~') != -1) {
if (document.getElementById('dtli').innerHTML.indexOf('<hr') != -1) {
document.getElementById('dtli').innerHTML=document.getElementById('dtli').innerHTML.replace('<hr', '<img title="First frame of video" src="' + thecanvas.toDataURL() + '"></img><hr');
} else {
document.getElementById('dtli').innerHTML+='<img title="First frame of video" src="' + thecanvas.toDataURL() + '"></img>';
}
if (document.getElementById('sumimg')) {
document.getElementById('sumimg').innerHTML='Image <img onclick="event.stopPropagation(); document.querySelector(' + "'" + 'video' + "'" + ').play(); setTimeout(dtlvize,2000); " style="width:60px;border:1px dotted yellow;" title="First frame of video" src="' + thecanvas.toDataURL() + '"></img>';
document.getElementById('dtli').open=false;
}
}
}
//alert('why123456789');
ourwois=window.open(wp1,wp2);
ourwois.document.write('<html><body><img title="First frame of video" src="' + thecanvas.toDataURL() + '"></img></body></html>');
ourwois.document.title='First frame of video';
} else if (document.getElementById('dtli')) {
if ((document.getElementById('dtli').innerHTML + '~').replace('<hr>','').trim().indexOf('</summary>~') != -1) {
if (document.getElementById('dtli').innerHTML.indexOf('<hr') != -1) {
document.getElementById('dtli').innerHTML=document.getElementById('dtli').innerHTML.replace('<hr', '<img title="First frame of video" src="' + thecanvas.toDataURL() + '"></img><hr');
} else {
document.getElementById('dtli').innerHTML+='<img title="First frame of video" src="' + thecanvas.toDataURL() + '"></img>';
}
if (document.getElementById('sumimg')) {
document.getElementById('sumimg').innerHTML='Image <img onclick="event.stopPropagation(); document.querySelector(' + "'" + 'video' + "'" + ').play(); setTimeout(dtlvize,2000); " style="width:60px;border:1px dotted yellow;" title="First frame of video" src="' + thecanvas.toDataURL() + '"></img>';
document.getElementById('dtli').open=false;
}
}
}
parent.document.getElementById('resultvi').innerHTML=thecanvas.toDataURL();
}
//document.getElementById('nowplay').innerHTML=' <button onclick=nowplay(); style="background:URL(' + thecanvas.toDataURL() + ');background-size:cover;background-repeat:no-repeat;">Play</button>'
}, 100);
});

} // end of video check if

});

if (window.parent != window) {
document.body.style.backgroundColor='transparent';
document.getElementById('files').style.marginTop='-10px';
document.getElementById('files').style.marginLeft='-12px';
document.getElementById('files').style.backgroundColor='#d7d7d7';
document.getElementById('distyle').innerHTML='<style> input { -webkit-appearance: border-bevel !important; border: 0 !important; } </style>'; // thanks to https://forum.webflow.com/t/disable-ios-safari-round-corners-on-form-elements/591
if (parent.document.getElementById('resultout')) {
document.getElementById('files').accept='.pdf,.doc,.docx,.htm,.html,.txt';
} else if (parent.document.getElementById('resultav')) {
document.getElementById('files').accept='.pdf,audio/*,video/*,image/*';
} else if (parent.document.getElementById('resultvi') || document.URL.indexOf('vionly=') != -1) {
document.getElementById('files').accept='video/*,image/*';
}
}
if (('' + window.location.hash).replace('#','') != '') {
document.getElementById('lhsh').innerHTML=window.location.hash.substring(1);
if (window.parent) {
if (parent.document.URL.indexOf('macos_say_record.php') != -1) {
//alert(document.URL);
if (document.URL.indexOf('//localhost') != -1) {
document.getElementById('ttag').innerHTML='<iframe style=display:none; name=posttid id=posttid src=""></iframe><iframe name=tid id=tid onload=actoit(this); style=display:none; src="' + document.URL.split('client_browsing')[0] + '../Htdocs/PHP/animegif/tutorial_to_animated_gif.php?rand=' + Math.floor(Math.random() * 19876543) + window.location.hash.replace(/\ /g,'%20') + '"></iframe>';
} else {
document.getElementById('ttag').innerHTML='<iframe style=display:none; name=posttid id=posttid src=""></iframe><iframe name=tid id=tid onload=actoit(this); style=display:none; src="' + document.URL.split('client_browsing')[0] + '../PHP/animegif/tutorial_to_animated_gif.php?rand=' + Math.floor(Math.random() * 19876543) + window.location.hash.replace(/\ /g,'%20') + '"></iframe>';
}
}
}
} else if (parent.window) {
if (parent.document.URL.indexOf('macos_say_record.php') != -1) {
if (parent.document.getElementById('lhsh')) {
if (parent.document.getElementById('lhsh').innerHTML != '') {
document.getElementById('lhsh').innerHTML=parent.document.getElementById('lhsh').innerHTML;
if (document.URL.indexOf('//localhost') != -1) {
document.getElementById('ttag').innerHTML='<iframe style=display:none; name=posttid id=posttid src=""></iframe><iframe name=tid id=tid onload=actoit(this); style=display:none; src="' + document.URL.split('client_browsing')[0] + '../Htdocs/PHP/animegif/tutorial_to_animated_gif.php?rand=' + Math.floor(Math.random() * 19876543) + window.location.hash.replace(/\ /g,'%20') + '"></iframe>';
} else {
document.getElementById('ttag').innerHTML='<iframe style=display:none; name=posttid id=posttid src=""></iframe><iframe name=tid id=tid onload=actoit(this); style=display:none; src="' + document.URL.split('client_browsing')[0] + '../PHP/animegif/tutorial_to_animated_gif.php?rand=' + Math.floor(Math.random() * 19876543) + window.location.hash.replace(/\ /g,'%20') + '"></iframe>';
}
}
}
}
}
}

function getwh(induri) {
var im=null, srcit=true, erro;

if (induri.indexOf(':image/') != -1 || induri.indexOf(':video/') != -1 || induri.indexOf(':audio/') != -1) {
if (induri.indexOf(':image/') != -1) {
try {
im=new Image();
} catch(erro) {
return induri;
}
} else if (induri.indexOf(':video/') != -1) {
if (nuancec == 'CT ') {
srcit=false;
//alert(im.type);
document.getElementById('icontent').innerHTML='<video controls><source src="' + induri + '" type="' + 'video/' + induri.split(':video/')[1].split(';')[0].split(',')[0] + '"></source></video>';
induri=induri.replace('data:', 'Data:');
document.getElementById('dctimode').innerHTML='';
setTimeout(agnone, 9000);
return induri;
} else {
try {
im=new Video();
} catch(erro) {
return induri;
}
im.type='video/' + induri.split(':video/')[1].split(';')[0].split(',')[0];
}
} else if (induri.indexOf(':audio/') != -1) {
if (nuancec == 'CT ') {
srcit=false;
//alert(im.type);
document.getElementById('icontent').innerHTML='<audio controls><source src="' + induri + '" type="' + 'audio/' + induri.split(':audio/')[1].split(';')[0].split(',')[0] + '"></source></audio>';
induri=induri.replace('data:', 'Data:');
document.getElementById('dctimode').innerHTML='';
setTimeout(agnone, 9000);
return induri;
} else {
try {
im=new Audio();
} catch(erro) {
return induri;
}
im.type='audio/' + induri.split(':audio/')[1].split(';')[0].split(',')[0];
}
}

im.onload = function() {
//alert(88);
var maxhw=Math.max(eval('' + im.width), eval('' + im.height));
//alert('' + im.width);
var wass=document.getElementById('icontent').innerHTML; //lastsrc;
//alert(188);
if (eval('' + maxhw) <= 70 || nuancec == 'cT') {
//alert(288);
wass=wass.replace('?','?repeat=repeat&bsize=auto&');
document.getElementById('cirdec').value='cT';
//alert(wass);
} else {
//alert(388);
wass=wass.replace('&radius=' + ('' + eval(prad / 2)).split('.')[0] + '.', '&radius=' + ('' + eval(maxhw / 2)).split('.')[0] + '.').replace('width:' + eval(50 + eval(1 * eval('' + prad))) + 'px', 'width:' + eval('' + im.width) + 'px').replace('height:' + eval(50 + eval(1 * eval('' + prad))) + 'px', 'height:' + eval('' + im.width) + 'px')
}
//alert(488);
if (nuancec == 'cT ' && eval('' + maxhw) > 70) {
//alert(588);
wass=wass.replace('?','?bsize=contain&');
}
//alert(688);
if (nuancec == 'CT ') {
//alert('9:' + im.outerHTML);
wass=im.outerHTML;
}
document.getElementById('icontent').innerHTML=wass;
};

im.onerror = function error(event) {
console.log(event)
};

//alert('7:' + induri);
if (srcit) { im.src=induri; }
}

return induri;
}

function ourprompt(inb, defb) {
var detid='', prectis=null, ihf='', dutwo='', gaurl='';
var fourteenlen=('' + ('https://www.google.com')).length;
var ninelen=('' + decodeURIComponent('https%3A%2F%2Fwww.rjmprogramming.com.au%2FITblog%2Fcircle-terminology-in-mathematics-tutorial%2F')).length;
prad=200;
preihf='';
iusuffix='';
var huhr=window.prompt(inb + ' Optionally suffix &iu= to any Javascript (onclick logic) you would like to see happen.', defb);
if (huhr == null) { huhr=''; }
if (huhr.indexOf('HtTp') == 0 || huhr.indexOf('hTtP') == 0) {
if (huhr.indexOf('&iu=') != -1) {
iusuffix='&iu=' + encodeURIComponent(huhr.split('&iu=')[1]);
huhr=huhr.split('&iu=')[0];
}
ctiname=huhr.replace('HtTp', 'http').replace('hTtP', 'http');
gaurl=document.URL.split('//')[0] + '//chart.googleapis.com/chart?chs=300x300&cht=qr&chl=http' + encodeURIComponent(ctiname.substring(4).replace('S:','s:')) + '&choe=UTF-8';
if (huhr.indexOf('hTtP') == 0) {
document.getElementById('askyou').value='http' + (ctiname.substring(4).replace('S:','s:'));
document.getElementById('askfor').value=document.getElementById('askfor').value.replace(/url\(\)/g, 'url("' + gaurl + '")');
document.getElementById('bstyle').click();
}
eighteen="18";
if (eval('' + ctiname.length) >= eval('' + ninelen)) {
eighteen="9";
} else if (eval('' + ctiname.length) >= eval('' + fourteenlen)) {
eighteen="18";
eighteen='' + eval(eval('' + eighteen) - Math.round(eval(eval('' + eval('' + ninelen) - eval('' + ctiname.length)) / eval('' + eval('' + ninelen) - eval('' + fourteenlen)) * 9)));
}
eighteen="18";
detid='agifn';
ihf='agifn';
prad=300;
ansis='';
preihf='icontent';
lastsrc='/HTMLCSS/circular_text.html?id=' + detid + '&idget=' + ihf.replace('div','') + '&ihfill=' + ihf + '&radius=' + ('' + eval(prad / 2)).split('.')[0] + '.360&text=' + encodeURIComponent(ctiname) + '&fontsize=' + eighteen + '&im=' + encodeURIComponent(gaurl) + iusuffix;
eighteen='18';
if (nuancec == 'CT ') {
//document.getElementById(preihf).innerHTML='<div style=cursor:pointer; onclick="window.open(' + "'" + urlmassage(gaurl) + "','_blank','top=30,left=30,width=600,height=600'" + ');"><iframe onclick="window.open(' + "'" + urlmassage(gaurl) + "','_blank','top=30,left=30,width=600,height=600'" + ');" onload="clickize(this,' + "'" + urlmassage(gaurl) + "'" + ');" id=pif frameborder=0 style="width:' + eval(50 + eval(1 * eval('' + prad))) + 'px;height:' + eval(50 + eval(1 * eval('' + prad))) + 'px;" data-onload="document.getElementById(' + "'" + ihf + "'" + ').style.display=' + "'" + 'none' + "'" + ';" id=ifon src="' + gaurl + '"></iframe></div>';
//alert('<div onclick="window.open(' + "'" + urlmassage(gaurl) + "','_blank','top=30,left=30,width=600,height=600'" + ');" id=ifon style="cursor:pointer;background:URL(' + "'" + gaurl + "'" + ');background-repeat:no-repeat;width:' + eval(50 + eval(1 * eval('' + prad))) + 'px;height:' + eval(50 + eval(1 * eval('' + prad))) + 'px;"></div>');
if (iusuffix != '') {
document.getElementById(preihf).innerHTML='<div class=fade title="Click for ' + urlmassage(gaurl) + '" onclick="' + decodeURIComponent(iusuffix.replace('&iu=','')).replace(/\"/g, String.fromCharCode(39)).replace(/\"/g, "\\".substring(0,1) + String.fromCharCode(34)) + '" onmousedown=" window.open(' + "'" + urlmassage(gaurl) + "','_blank','top=30,left=30,width=600,height=600'" + ');" ontouchdown=" window.open(' + "'" + urlmassage(gaurl) + "','_blank','top=30,left=30,width=600,height=600'" + ');" id=ifon style="cursor:pointer;background:URL(' + gaurl + ');background-repeat:no-repeat;width:' + eval(50 + eval(1 * eval('' + prad))) + 'px;height:' + eval(50 + eval(1 * eval('' + prad))) + 'px;"></div>';
} else {
document.getElementById(preihf).innerHTML='<div class=fade title="Click for ' + urlmassage(gaurl) + '" onclick=" window.open(' + "'" + urlmassage(gaurl) + "','_blank','top=30,left=30,width=600,height=600'" + ');" id=ifon style="cursor:pointer;background:URL(' + gaurl + ');background-repeat:no-repeat;width:' + eval(50 + eval(1 * eval('' + prad))) + 'px;height:' + eval(50 + eval(1 * eval('' + prad))) + 'px;"></div>';
}
} else {
document.getElementById(preihf).innerHTML='<iframe id=pif frameborder=0 style="width:' + eval(50 + eval(1 * eval('' + prad))) + 'px;height:' + eval(50 + eval(1 * eval('' + prad))) + 'px;" data-onload="document.getElementById(' + "'" + ihf + "'" + ').style.display=' + "'" + 'none' + "'" + ';" id=ifon src="' + lastsrc + '"></iframe>';
}
iusuffix='';
setTimeout(agnone, 9000);
huhr='';
}
if (huhr.indexOf('&iu=') != -1) {
iusuffix='&iu=' + encodeURIComponent(huhr.split('&iu=')[1]);
return huhr.split('&iu=')[0];
}
return huhr;
}

function clickize(iois, wourl) {
var aconto=null;
if (iois.src != '') {
aconto = (iois.contentWindow || iois.contentDocument);
if (aconto != null) {
if (aconto.document) { aconto = aconto.document; }
var imgsx=document.getElementsByTagName('img');
if (eval('' + imgsx.length) > 0) {
imgsx[0].setAttribute('data-u', wourl);
imgsx[0].onclick = function(evt) { window.open(evt.target.getAttribute('data-u'), '_blank', 'top=20,left=20,width=600,height=600'); };
}
}
}
}

function cirdecf(oosel) {
nuancec=oosel.value;
ansis='';
iusuffix='';
if (oosel.value.toLowerCase().trim() == 'ct') { document.getElementById('dctimode').innerHTML=''; document.getElementById('icontent').innerHTML=''; document.getElementById('agifn').innerHTML=''; if (oosel.value.trim() != 'ct') { ansis=ourprompt('What is your media URL or QR Code HtTp (or hTtP for animated QR Code) URL or Data URI?',''); if (ansis == null) { ansis=''; } if (ansis.trim() != '') { if (ansis.indexOf('/') != -1) { ctiname=ansis.split('/')[-1 + ansis.split('/').length]; } else if (ansis.indexOf('\\'.substring(0,1)) != -1) { ctiname=ansis.split('\\'.substring(0,1))[-1 + ansis.split('\\'.substring(0,1)).length]; } else { ctiname=ansis; } if (ansis.indexOf('data:') == 0 && ansis.indexOf('/') != -1) { document.getElementById('agifn').innerHTML=ansis; ctiname='data.' + ansis.split('/')[1].split('.')[0].split(';')[0]; } else { document.getElementById('dctimode').innerHTML='<iframe src="/PHP/fgc/index.php?askfor=' + encodeURIComponent(ansis) + '"></iframe>'; } ctimode=true; document.getElementById('ibchkbox').checked=true; setTimeout(ctilookfor, 3000); } } else { document.getElementById('icontent').innerHTML=''; document.getElementById('dctimode').innerHTML=''; document.getElementById('agifn').innerHTML=''; ctimode=true; document.getElementById('ibchkbox').checked=true; setTimeout(ctilookfor, 3000); } } else { ctimode=false; }
}

function ctilookfor() {
var longlen=-1, detid='', prectis=null, ihf='', dutwo='';
prad=200;
preihf='';
if (!ctimode) {
ctiname='';
} else if (ctiname != '' && (document.getElementById('dtlv') || document.getElementById('agifn').innerHTML.trim() != '')) {
if (ansis != '' && document.getElementById('agifn').innerHTML.trim() != '') {
detid='agifn';
ihf='agifn';
prad=eval(-50 + eval('' + screen.width));
ansis='';
preihf='icontent';
dutwo=getwh(document.getElementById('agifn').innerHTML);
longlen=eval('' + dutwo.length);
}
if (document.getElementById('dtlv')) {
if (eval('' + document.getElementById('dtlv').innerHTML.length) > eval('' + longlen)) {
longlen=eval('' + document.getElementById('dtlv').innerHTML.length);
if (document.getElementById('dtlv').innerHTML.indexOf('<video') != -1) {
detid='dtlv';
if (document.getElementById('vb')) {
prectis=document.getElementById('vb').getBoundingClientRect();
prad=Math.max(eval('' + prectis.width), eval('' + prectis.height));
ihf='divvb';
preihf='pre' + ihf;
}
}
}
if (eval('' + document.getElementById('dtla').innerHTML.length) > eval('' + longlen)) {
longlen=eval('' + document.getElementById('dtla').innerHTML.length);
if (document.getElementById('dtla').innerHTML.indexOf('<audio') != -1) {
detid='dtla';
if (document.getElementById('ab')) {
prectis=document.getElementById('ab').getBoundingClientRect();
prad=Math.max(eval('' + prectis.width), eval('' + prectis.height));
ihf='divab';
preihf='pre' + ihf;
}
}
}
if (ihf != 'divvb' && eval('' + document.getElementById('dtli').innerHTML.length) > eval('' + longlen)) {
longlen=eval('' + document.getElementById('dtli').innerHTML.length);
if (document.getElementById('dtli').innerHTML.indexOf('<img') != -1) {
detid='dtli';
if (document.getElementById('gb')) {
prectis=document.getElementById('gb').getBoundingClientRect();
prad=Math.max(eval('' + prectis.width), eval('' + prectis.height));
ihf='divgb';
preihf='pre' + ihf;
}
}
}
}
if (detid != '' && ihf != '') {
//alert('' + prectis.width + ' becomes ' + eval(50 + eval(2 * eval('' + prectis.width))));
//document.getElementById('pre' + ihf).innerHTML='<iframe frameborder=0 style="width:' + eval(50 + eval(1 * eval('' + prectis.width))) + 'px;height:' + eval(50 + eval(1 * eval('' + prectis.height))) + 'px;" data-onload="document.getElementById(' + "'" + ihf + "'" + ').style.display=' + "'" + 'none' + "'" + ';" id=ifon src="/HTMLCSS/circular_text.html?id=' + detid + '&idget=' + ihf.replace('div','') + '&ihfill=' + ihf + '&radius=' + ('' + eval(prad / 2)).split('.')[0] + '.360&widxth=' + eval(1 * eval('' + prectis.width)) + '&heigxht=' + eval(1 * eval('' + prectis.height)) + '&text=' + encodeURIComponent(ctiname) + '&fontsize=18&im=' + encodeURIComponent('data:') + '"></iframe>';
lastsrc='/HTMLCSS/circular_text.html?id=' + detid + '&idget=' + ihf.replace('div','') + '&ihfill=' + ihf + '&radius=' + ('' + eval(prad / 2)).split('.')[0] + '.360&text=' + encodeURIComponent(ctiname) + '&fontsize=' + eighteen + '&im=' + encodeURIComponent('data:') + iusuffix;
eighteen='18';
iusuffix='';
if (dutwo.indexOf('Data:') != 0 && document.getElementById(preihf).innerHTML.indexOf('?repeat=repeat&bsize=auto&') == -1) {
document.getElementById(preihf).innerHTML='<iframe id=pif frameborder=0 style="width:' + eval(50 + eval(1 * eval('' + prad))) + 'px;height:' + eval(50 + eval(1 * eval('' + prad))) + 'px;" data-onload="document.getElementById(' + "'" + ihf + "'" + ').style.display=' + "'" + 'none' + "'" + ';" id=ifon src="' + lastsrc + '"></iframe>';
document.getElementById('dctimode').innerHTML='';
setTimeout(agnone, 9000);
}
ctiname='';
}
setTimeout(ctilookfor, 3000);
} else {
setTimeout(ctilookfor, 3000);
}
}

function agnone() {
document.getElementById('agifn').innerHTML='';
if (document.getElementById('cirdec').value != '') {
document.getElementById('optif').innerText=document.getElementById('cirdec')[document.getElementById('cirdec').selectedIndex].innerText; //'Iframe via Media URL or Data URI';
document.getElementById('cirdec').value='';
}
}

function moveto(iois) {
}

function xcheckif(iois) {
var xaconto=null;
if (iois.src.indexOf('/fgc') == -1) {
xaconto = (iois.contentWindow || iois.contentDocument);
if (xaconto != null) {
if (xaconto.document) { xaconto = xaconto.document; }
document.getElementById('dstyle').innerHTML=xaconto.body.innerHTML;
}
document.getElementById('dwstyle').innerHTML=document.getElementById('dstyle').innerHTML.replace(fromst,tost);
}
}

</script>

</head>
<body style="background-color:#f0f0f0;" onload="setTimeout(dolhsh, 1500); setTimeout(onl,2000);">
<h1>Client Browsing</h1>
<h3>RJM Programming - June, 2019</h3>
<script type=text/javascript>
var ifchoices="<select style=display:inline-block; id=cirdec onchange=cirdecf(this);><option id=optif value=''>Iframe</option><option value='ct'>Circular Text Iframe Browsing</option><option value='CT'>Circular Text Iframe via Media/QR⎼Code⎼HtTp URL or Data URI</option><option value='cT'>Circular Text Iframe via Media URL or Data URI repeat</option><option value='cT '>Circular Text Iframe via Media URL or Data URI contain</option><option value='CT '>Iframe via Media/QR⎼Code⎼HtTp URL or Data URI</option></select>";
if (window.self == window.parent) {
document.write("<input onclick=\"this.value=null;\" onchange=\"document.getElementById('ibut').click();\" style='width:50%;background-color:orange;' type=\"file\" id=\"files\" name=\"file\" accept=\"image/*,video/*,audio/*,application/*,text/*\" multiple />     " + ifchoices + " Below <input type=checkbox id=ibchkbox></input> Versus New Window");
} else {
document.write("<input onclick=\"this.value=null;\" onchange=\"document.getElementById('ibut').click();\" style='width:50%;background-color:orange;' type=\"file\" id=\"files\" name=\"file\" accept=\"image/*,video/*,audio/*,application/*,text/*\" multiple /><br><br><br><br><br>" + ifchoices + " Below <input type=checkbox id=ibchkbox></input> Versus New Window");
}
</script>
<span class="readBytesButtons">
<button style='display:none;' data-startbyte="0" data-endbyte="4">1-5</button>
<button style='display:none;' data-startbyte="5" data-endbyte="14">6-15</button>
<button style='display:none;' data-startbyte="6" data-endbyte="7">7-8</button>
<button id=ibut style='background-color:pink;display:none;'>Send to Server Top Half</button>
</span>
<div style='display:none;' id="byte_range"></div>
<div style='display:none;' id="byte_content"></div>
<div id=icontent></div>
<div id=lhcs></div>
<div id=ttag></div>
<div id=dform style=display:none;></div>
<div id=agifn style=display:none;></div>
<div id=lhsh style=display:none;></div>
<div id=distyle></div>
<video id="main-video" class="pvideo" controls>
<source type="video/mp4">
</video>
<canvas id="video-canvas" class="pcanvas"></canvas>
<div id=datend></div>
<div id=dctimode style=display:none;></div>
<iframe onload="xcheckif(this);" name=ifstyle id=ifstyle src=/PHP/fgc/index.php style=display:none;></iframe>
<form method=POST style=display:none; target=ifstyle action=/PHP/fgc/index.php>
<input name=askyou id=askyou type=hidden value=''></input>
<textarea name=askfor id=askfor value='' style=display:none;>
.fade {
-webkit-animation: fade 11s ease-in-out infinite alternate;
-moz-animation: fade 11s ease-in-out infinite alternate;
animation: fade 11s ease-in-out infinite alternate;
}

@keyframes fade {
from {
background-image: url();
text-shadow: 0 0 3px #fff, 0 0 5px #fff, 0 0 37px #e60073, 0 0 9px #e60073, 0 0 11px #e60073, 0 0 13px #e60073, 0 0 15px #e60073;
background-repeat: no-repeat;
background-size: 300px 300px;
}

to {
background-image: URL();
text-shadow: 0 0 24px #fff, 0 0 6px #ff4da6, 0 0 8px #ff4da6, 0 0 10px #ff4da6, 0 0 12px #ff4da6, 0 0 14px #ff4da6, 0 0 16px #ff4da6;
background-repeat: no-repeat;
background-size: 300px 300px;
}
}

</textarea>
<input style=display:none; id=bstyle type=submit value=Screenshot></input>
</form>
<div id=dstyle style=display:none;></div>
<div id=dwstyle style=display:none;></div>
<div id=aside style=display:none;></div>
<div id=apostcard style=display:none;></div>
</body>
</html>