<!doctype html>
<html>
<head>
<title>Client Browsing - RJM Programming - June, 2019</title>
<script type=text/javascript src=../web_share_api_test.js?populate=as_necessary98476 defer></script>
<style>
.pcanvas {
display: none;
}
.pvideo {
opacity: 0;
width: 0;
height: 0;
}
</style>
<script type='text/javascript'>
var middlerestcont='';
var middlerestname='';
var evt=null;
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 noinitialstwo=false;
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 (('' + top.document.URL).indexOf('/splice_audio.') != -1) {
//alert(parent.document.URL);
var qsug=1;
while (top.document.getElementById('audio' + qsug) && top.document.getElementById('audio' + qsug).value != '') {
qsug++;
}
if (!top.document.getElementById('audio' + qsug)) { qsug--; }
if (eval(duration / 100) > 0.11) {
//alert(parent.document.URL + ' ... ' + qsug + ' ... ' + eval(duration / 100));
if (qsug > 1) {
if (('' + top.document.getElementById('end' + eval(-1 + qsug)).value) == '-1' && top.document.getElementById('audio' + eval(-1 + qsug)).value.toLowerCase().replace('.gif','/gif').indexOf('/gif') != -1) {
qsug--;
//setTimeout(function(){ top.document.getElementById('audio' + eval(1 + qsug)).value=''; }, 1000);
}
//alert('why?' + top.document.getElementById('audio' + eval(-1 + qsug)).value);
}
top.document.getElementById('end' + qsug).value='' + eval(duration / 100);
top.doinput(top.document.getElementById('audio' + qsug));
setTimeout(function(){ location.href=document.URL; }, 5000);
}
}
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 if (document.URL.indexOf('=csv') == -1) {
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() {
var tryi=2;
if (window.parent) {
if (parent.document.getElementById('slideshow')) {
if (parent.document.getElementById('ispec') && parent.document.getElementById('outext')) {
if (('' + parent.document.getElementById('ispec').getAttribute('data-dgize')).replace(/^undefined/g,'').replace(/^null/g,'') == '') {
parent.document.getElementById('slideshow').value=lastis;
} else {
while (('' + parent.document.getElementById('slideshow').getAttribute('data-slide' + tryi)).replace(/^undefined/g,'').replace(/^null/g,'').trim() != '') {
tryi++;
}
if (('' + parent.document.getElementById('slideshow').getAttribute('data-slide' + tryi)).replace(/^undefined/g,'').replace(/^null/g,'') == '') {
tryi--;
}
if (('' + parent.document.getElementById('slideshow').getAttribute('data-slide' + Math.max(tryi,2))).replace(/^undefined/g,'').replace(/^null/g,'') != '') {
parent.document.getElementById('slideshow').removeAttribute('data-slide' + Math.max(tryi,2));
}
parent.document.getElementById('slideshow').setAttribute('data-slide' + Math.max(tryi,2), lastis);
}
} else {
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='-';
var isnworry=false;
var typeshavetobe=(location.search.split('typehastobe=')[1] ? ('' + (decodeURIComponent(location.search.split('typehastobe=')[1].split('&')[0]))) : ' ');
var isn=(location.search.split('numhastobe=')[1] ? eval('' + (decodeURIComponent(location.search.split('numhastobe=')[1].split('&')[0]))) : 0);
if (isn > 0) {
isnworry=(location.search.split('numhastobe=')[1] ? (iinum != eval('' + (decodeURIComponent(location.search.split('numhastobe=')[1].split('&')[0])))) : false);
}
if (isnworry) {
if (typeshavetobe.trim() != '') {
alert('Have to select ' + isn + ' files that are ' + typeshavetobe.replace(/video/g, ' video ').replace(/pdf/g, ' pdf ').replace(/document/g, ' document ').replace(/audio/g, ' audio ').replace(/image/g, ' image ').replace(/text/g, ' text ').replace(/application/g, ' application ') + ' type files.');
} else {
alert('Have to select ' + isn + ' files.');
}
return '';
}
if (typeshavetobe != '') {
wastypeshavetobe=typeshavetobe;
for (ij=0; ij<files.length; ij++) {
typeshavetobe=typeshavetobe.replace(('' + files[ij].type), '');
typeshavetobe=typeshavetobe.replace(('' + files[ij].type).split('/')[0], '');
if (files[ij].type.indexOf('/') != -1) {
typeshavetobe=typeshavetobe.replace(('' + files[ij].type).split('/')[1], '');
}
}
if (typeshavetobe.replace(/\//g,'').replace(/\*\./g,'').replace(/\,/g,'').trim() != '') {
alert('Have to select ' + wastypeshavetobe.replace(/video/g, ' video ').replace(/audio/g, ' audio ').replace(/pdf/g, ' pdf ').replace(/document/g, ' document ').replace(/image/g, ' image ').replace(/text/g, ' text ').replace(/application/g, ' application ') + ' type files.');
return '';
}
}
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('yourvsource') && parent.document.getElementById('yourvideo') && files[ij].type.indexOf('video') == 0) {
parent.document.getElementById('yourvideo').type='' + files[ij].type;
parent.document.getElementById('yourvsource').type='' + files[ij].type;
//parent.document.getElementById('yourvsource').src='' + evt.target.result.replace('application/octet-stream', files[ij].type);
//return '';
} else if (parent.document.getElementById('yourasource') && parent.document.getElementById('youraudio') && files[ij].type.indexOf('audio') == 0) {
parent.document.getElementById('youraudio').type='' + files[ij].type;
parent.document.getElementById('yourasource').type='' + files[ij].type;
//parent.document.getElementById('yourasource').src='' + evt.target.result.replace('application/octet-stream', files[ij].type);
//return '';
} else if (parent.document.getElementById('yourvsource') && parent.document.getElementById('yourvideo')) {
isag=isag;
} else if (parent.document.getElementById('slideshow')) {
//alert(28807);
if (files[ij].type.indexOf('pdf') != -1) {
//pdffind='pdf';
if (('' + typeof parent.yesthreethree) == 'function') {
if (evt) {
parent.yesthreethree(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 if (('' + typeof parent.maybemore) == 'function') {
//alert(876);
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);
if (('' + typeof parent.yesthreethree) == 'function') {
if (evt) {
parent.yesthreethree(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 if (('' + typeof parent.maybemore) == 'function') {
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;
}
}
if (document.URL.replace('straight_text','straighttext').indexOf('straighttext=') == -1) { 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 (top.document.URL.indexOf('/splice_audio.') != -1) { alert('Here now'); }
if (parent.document.getElementById('ispec') && parent.document.getElementById('outext')) {
if (parent.document.getElementById('ispec').outerHTML.indexOf(' data-dgize=') != -1) {
noinitialstwo=true;
}
}
if ((!parent.document.getElementById('slideshow2') || noinitialstwo) && parent.document.getElementById('slideshow')) {
console.log('yes ' + ij);
if (parent.document.getElementById('ispec') && parent.document.getElementById('outext')) {
if (parent.document.getElementById('ispec').outerHTML.indexOf(' data-dgize=') == -1) {
parent.document.getElementById('ispec').setAttribute('data-dgize', 'y');
noinitialstwo=true;
//alert(evt.target.result);
}
}
} 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');
//}
if (parent.document.getElementById('ispec') && parent.document.getElementById('outext')) { // && xssuffix != '0'
if (('' + parent.document.getElementById('ispec').getAttribute('data-dgize')).replace(/^undefined/g,'').replace(/^null/g,'') == '') {
parent.document.getElementById('slideshow' + xssuffix.replace(/^0/g,'')).value=localhostmap('' + files[ij].size + ' ', files[ij].name, 'slideshow' + xssuffix.replace(/^0/g,''));
} else {
if (xssuffix == '0') {
parent.document.getElementById('slideshow').value='';
// alert('hsf');
hsf=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 + ';');
// alert(hsf);
} else {
parent.document.getElementById('slideshow').setAttribute('data-slide' + xssuffix, localhostmap('' + files[ij].size + ' ', files[ij].name, 'slideshow' + xssuffix.replace(/^0/g,'')));
}
}
} else {
parent.document.getElementById('slideshow' + xssuffix.replace(/^0/g,'')).value=localhostmap('' + files[ij].size + ' ', files[ij].name, 'slideshow' + xssuffix.replace(/^0/g,''));
}
if (('' + typeof parent.yes_three_three) == 'function') {
if (evt) {
parent.yes_three_three(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 + ';'), middlerestcont, mfile.name);
}
} else if (('' + typeof parent.yesthreethree) == 'function') {
if (evt) {
parent.yesthreethree(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 if (('' + typeof parent.maybemore) == 'function') {
parent.maybemore('' + files[ij].size + ' ', 'slideshow' + xnsuffix, parent.document.getElementById('slideshow' + xssuffix.replace(/^0/g,'')));
}
if (hsf != '') {
if (parent.document.getElementById('ispec') && parent.document.getElementById('outext')) { // && xssuffix != '0') {
if (('' + parent.document.getElementById('ispec').getAttribute('data-dgize')).replace(/^undefined/g,'').replace(/^null/g,'') == '') {
parent.document.getElementById('slideshow' + xssuffix.replace(/^0/g,'')).value+=hsf;
} else {
if (xssuffix == '0') {
// alert('hSf');
parent.document.getElementById('slideshow').value=hsf;
} else {
parent.document.getElementById('slideshow').setAttribute('data-slide' + xssuffix, hsf);
}
}
} else {
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;
if (parent.document.getElementById('resultrestout')) {
if (('' + parent.document.getElementById('outputname').value + '.').substring(0,1) == '.') {
parent.document.getElementById('outputname').value=files[ij].name.split('.')[0] + '.html';
}
}
} else if (middlerestcont == '' && !parent.document.getElementById('resultrestout')) {
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));
if (parent.document.getElementById('txtresultout')) {
parent.document.getElementById('outputname').value=files[ij].name; //.split('.')[0] + '.' + parent.document.getElementById('cto').value.replace('*',defto);
} else {
parent.document.getElementById('outputname').value=files[ij].name.split('.')[0] + '.' + parent.document.getElementById('cto').value.replace('*',defto);
}
} else if (!parent.document.getElementById('resultrestout')) {
console.log('2:' + parent.document.getElementById('cto').value.replace('*',defto));
if (parent.document.getElementById('txtresultout')) {
parent.document.getElementById('outputname').value+=',' + files[ij].name; //.split('.')[0] + '.' + parent.document.getElementById('cto').value.replace('*',defto);
} else {
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>';
if (document.URL.indexOf('localhost') == -1) {
myform+='<input type=hidden name=content id=content' + ij + ' value="resultav"></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('result' + middlerestcont + 'out') || 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;
if (parent.document.getElementById('resultrestout')) {
if (('' + parent.document.getElementById('outputname').value + '.').substring(0,1) == '.') {
parent.document.getElementById('outputname').value=files[ij].name.split('.')[0] + '.html';
}
}
} else if (middlerestcont == '' && !parent.document.getElementById('resultrestout')) {
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));
if (parent.document.getElementById('txtresultout')) {
parent.document.getElementById('outputname').value=files[ij].name; //.split('.')[0] + '.' + parent.document.getElementById('cto').value.replace('*',defto);
} else {
parent.document.getElementById('outputname').value=files[ij].name.split('.')[0] + '.' + parent.document.getElementById('cto').value.replace('*',defto);
}
} else if (!parent.document.getElementById('resultrestout')) {
console.log('2:' + parent.document.getElementById('cto').value.replace('*',defto));
if (parent.document.getElementById('txtresultout')) {
parent.document.getElementById('outputname').value+=',' + files[ij].name; //.split('.')[0] + '.' + parent.document.getElementById('cto').value.replace('*',defto);
} else {
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>';
if (document.URL.indexOf('localhost') == -1) {
myform+='<input type=hidden name=content id=content' + ij + ' value="resultav"></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, '');
}
}
}
var isnworry=false;
var typeshavetobe=(location.search.split('typehastobe=')[1] ? ('' + (decodeURIComponent(location.search.split('typehastobe=')[1].split('&')[0]))) : ' ');
var isn=(location.search.split('numhastobe=')[1] ? eval('' + (decodeURIComponent(location.search.split('numhastobe=')[1].split('&')[0]))) : 0);
if (isn > 0) {
isnworry=(location.search.split('numhastobe=')[1] ? (eval('' + files.length) != eval('' + (decodeURIComponent(location.search.split('numhastobe=')[1].split('&')[0])))) : false);
}
if (isnworry) {
if (typeshavetobe.trim() != '') {
alert('Have to select ' + isn + ' files that are ' + typeshavetobe.replace(/video/g, ' video ').replace(/pdf/g, ' pdf ').replace(/document/g, ' document ').replace(/audio/g, ' audio ').replace(/image/g, ' image ').replace(/text/g, ' text ').replace(/application/g, ' application ') + ' type files.');
} else {
alert('Have to select ' + isn + ' files.');
}
return '';
}
if (typeshavetobe != '') {
wastypeshavetobe=typeshavetobe;
for (ij=0; ij<files.length; ij++) {
typeshavetobe=typeshavetobe.replace(('' + files[ij].type), '');
typeshavetobe=typeshavetobe.replace(('' + files[ij].type).split('/')[0], '');
if (files[ij].type.indexOf('/') != -1) {
typeshavetobe=typeshavetobe.replace(('' + files[ij].type).split('/')[1], '');
}
}
if (typeshavetobe.replace(/\//g,'').replace(/\*\./g,'').replace(/\,/g,'').trim() != '') {
alert('Have to select ' + wastypeshavetobe.replace(/video/g, ' video ').replace(/audio/g, ' audio ').replace(/pdf/g, ' pdf ').replace(/document/g, ' document ').replace(/image/g, ' image ').replace(/text/g, ' text ').replace(/application/g, ' application ') + ' type files.');
return '';
}
}
for (ij=0; ij<files.length; ij++) {
file = files[ij];
filen = file.name;
lasttype = file.type;
//alert(23307);
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;
}
//alert(-23307);
if (document.URL.replace('straight_text','straighttext').indexOf('straighttext=') == -1) { 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
//alert(223307);
reader[ij].onloadend = (function(mfile) {
return function(evt) {
//alert(document.URL);
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 (window.parent) {
if (document.URL.indexOf('typehastobe=') != -1) {
if (parent.document.getElementById('your' + mfile.type.split('/')[0].substring(0,1) + mfile.type.split('/')[0])) {
parent.document.getElementById('your' + mfile.type.split('/')[0].substring(0,1) + mfile.type.split('/')[0]).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 + ';');
} else if (parent.document.getElementById('your' + mfile.type.split('/')[0].substring(0,1) + 'source')) {
parent.document.getElementById('your' + mfile.type.split('/')[0].substring(0,1) + + 'source').src=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 if (parent.document.getElementById('your' + mfile.type.split('/')[0].substring(0,1) + mfile.type.split('/')[0])) {
parent.document.getElementById('your' + mfile.type.split('/')[0].substring(0,1) + mfile.type.split('/')[0]).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 + ';');
} else if (parent.document.getElementById('your' + mfile.type.split('/')[0])) {
parent.document.getElementById('your' + mfile.type.split('/')[0]).src=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 (document.URL.replace('straight_text','straighttext').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=(evt.target.result); // used to use window.atob and .replace('data:application/octet-stream;base64,', '')
if (('' + typeof parent.yesthreethree) == 'function') {
parent.yesthreethree(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('result2').innerHTML=(evt.target.result); // retest earth_scanner.html
if (('' + typeof parent.yesthreethree) == 'function') {
parent.yesthreethree(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 (isag >= 0) {
//if (('' + top.document.URL).indexOf('/splice_audio.') != -1) {
//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 + mfile.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') || noinitialstwo) && parent.document.getElementById('slideshow')) {
// if (top.document.URL.indexOf('/splice_audio.') != -1) { alert('Here Now'); }
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>'));
if (('' + typeof parent.durip) == 'function') {
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) {
//alert('687 ' + mfile.type);
if (parent.document.getElementById('result' + middlerestcont + 'out') || parent.document.getElementById('resultav')) {
if (parent.document.getElementById('result' + middlerestcont + 'out')) {
if (('' + typeof parent.yes_three_three) == 'function') {
parent.yes_three_three(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 + ';'), middlerestcont, mfile.name);
if (middlerestcont == '' && parent.document.getElementById('resultrestout')) {
middlerestcont='rest';
}
} else if (('' + typeof parent.yesthreethree) == 'function') {
parent.yesthreethree(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 (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 + ';');
}
}
}
}
}
}
}
var mftype='' + mfile.type;
if (window.parent) {
if (parent.document.getElementById('yourvsource') && parent.document.getElementById('yourvideo') && mfile.type.indexOf('audio') == -1) {
if (document.URL.indexOf('rjmprogramming.com.au') != -1 && (mfile.type.indexOf('image/') == -1 || mfile.type.indexOf('audio/') == -1 || mfile.type.indexOf('video/') == -1)) {
mftype='image/whatevvvver';
}
}
}
if (window.parent && (mfile.type.indexOf('image/') == 0 || mftype.indexOf('image/') == 0 || mfile.type.indexOf('audio/') == 0 || mfile.type.indexOf('video/') == 0)) {
var fpref='';
//alert(987);
if (parent.document.getElementById('yourvsource') && parent.document.getElementById('yourvideo') && mfile.type.indexOf('audio') == -1) {
//alert(887);
if (mfile.type.indexOf('video') == 0) {
//alert(787);
parent.document.getElementById('yourvsource').src=evt.target.result.replace('application/octet-stream', mfile.type).replace('data:;', 'data:' + mfile.type + ';');
if (parent.document.getElementById('v1name') && parent.document.getElementById('v1cont') && parent.document.getElementById('v1sub')) {
//alert(7872);
parent.document.getElementById('v1name').value='' + mfile.name;
parent.document.getElementById('v1cont').value=evt.target.result.replace('application/octet-stream', mfile.type).replace('data:;', 'data:' + mfile.type + ';');
fpref='/tmp/';
if (parent.document.getElementById('cbt')) { parent.document.getElementById('cbt').innerHTML=fpref; }
}
if (parent.document.getElementById('scbi')) {
//alert(7873);
parent.document.getElementById('scbi').innerHTML=fpref + mfile.name;
parent.document.getElementById('scbi').setAttribute('contenteditable', true);
parent.document.getElementById('scbi').title=evt.target.result.replace('application/octet-stream', mfile.type).replace('data:;', 'data:' + mfile.type + ';');
}
//if (parent.document.getElementById('v1name') && parent.document.getElementById('v1cont') && parent.document.getElementById('v1sub')) {
//parent.document.getElementById('v1sub').click();
//}
} else {
//alert(87);
if (parent.document.getElementById('v1name') && parent.document.getElementById('v1cont') && parent.document.getElementById('v1sub')) {
//alert(187);
parent.document.getElementById('v1name').value='' + mfile.name;
parent.document.getElementById('v1cont').value=evt.target.result.replace('application/octet-stream', mfile.type).replace('data:;', 'data:' + mfile.type + ';');
fpref='/tmp/';
//alert(287);
if (parent.document.getElementById('cbt')) { parent.document.getElementById('cbt').innerHTML=fpref; }
//alert(387);
}
if (parent.document.getElementById('scbi')) {
//alert(487);
parent.document.getElementById('scbi').innerHTML=fpref + mfile.name;
parent.document.getElementById('scbi').setAttribute('contenteditable', true);
parent.document.getElementById('scbi').title=evt.target.result.replace('application/octet-stream', mfile.type).replace('data:;', 'data:' + mfile.type + ';');
//alert(587);
}
//alert(687);
}
return '';
} else if (parent.document.getElementById('yourasource') && parent.document.getElementById('youraudio') && mfile.type.indexOf('audio') == 0) {
parent.document.getElementById('yourasource').src=evt.target.result.replace('application/octet-stream', mfile.type).replace('data:;', 'data:' + mfile.type + ';');
if (parent.document.getElementById('v2name') && parent.document.getElementById('v2cont') && parent.document.getElementById('v2sub')) {
parent.document.getElementById('v2name').value='' + mfile.name;
parent.document.getElementById('v2cont').value=evt.target.result.replace('application/octet-stream', mfile.type).replace('data:;', 'data:' + mfile.type + ';');
fpref='/tmp/';
if (parent.document.getElementById('cbt')) { parent.document.getElementById('cbt').innerHTML=fpref; }
}
if (parent.document.getElementById('scbix')) {
parent.document.getElementById('scbix').innerHTML=fpref + mfile.name;
parent.document.getElementById('scbix').setAttribute('contenteditable', true);
parent.document.getElementById('scbix').title=evt.target.result.replace('application/octet-stream', mfile.type).replace('data:;', 'data:' + mfile.type + ';');
}
//if (parent.document.getElementById('v2name') && parent.document.getElementById('v2cont') && parent.document.getElementById('v2sub')) {
//parent.document.getElementById('v2sub').click();
//}
return '';
} else if (parent.document.getElementById('slideshow')) {
//parent.document.title+=' ' + mfile.size;
// maybemore(this.value, 'slideshow1', this);
if (top.document.URL.indexOf('/splice_audio.') != -1) {
var psug=1;
while (top.document.getElementById('audio' + psug) && top.document.getElementById('audio' + psug).value != '') {
psug++;
}
if (!top.document.getElementById('audio' + psug)) { psug--; }
if (mfile.type.indexOf('image/') == 0) {
top.document.getElementById(('sel' + psug)).value='Image';
} else if (mfile.type.indexOf('audio/') == 0) {
top.document.getElementById(('sel' + psug)).value='Audio';
} else if (mfile.type.indexOf('video/') == 0) {
top.document.getElementById(('sel' + psug)).value='Video';
}
top.document.getElementById('audio' + psug).title='Matched with a slide';
top.document.getElementById('audio' + psug).value=event.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 (!parent.document.getElementById('slideshow2') && parent.document.getElementById('slideshow')) {
console.log('HerE');
// if (top.document.URL.indexOf('/splice_audio.') != -1) { alert('HerE noW'); }
if (parent.document.getElementById('ispec') && parent.document.getElementById('outext')) {
if (parent.document.getElementById('ispec').outerHTML.indexOf(' data-dgize=') != -1) {
noinitialstwo=true;
}
}
if ((!parent.document.getElementById('slideshow2') || noinitialstwo) && parent.document.getElementById('slideshow')) {
console.log('Yes ' + event.target.result.length);
if (parent.document.getElementById('ispec') && parent.document.getElementById('outext')) {
if (parent.document.getElementById('ispec').outerHTML.indexOf(' data-dgize=') == -1) {
parent.document.getElementById('ispec').setAttribute('data-dgize', 'y');
noinitialstwo=true;
}
//if (parent.document.title.indexOf('durip ') != 0) { parent.document.title='durip ... 2 ... '; }
//console.log(event.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('slideshow').value=event.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + mfile.type + ';').replace('data:application/octet-stream;', 'data:' + tomt + ';');
//alert('True');
//alert(evt.target.result);
//}
}
}
} //else {
// console.log('HERE');
//}
vvb=' ';
while (parent.document.getElementById('slideshow' + ssuffix.replace(/^0/g,'')) && vvb != '') {
if (parent.document.getElementById('slideshow' + ssuffix.replace(/^0/g,'')).value.split('#')[0].replace('' + mfile.size + ' ','') != '') {
vvb=parent.document.getElementById('slideshow' + ssuffix.replace(/^0/g,'')).value.split('#')[0].replace('' + mfile.size + ' ','');
ssuffix='' + eval(0 + eval('' + nsuffix));
nsuffix='' + eval(1 + eval('' + nsuffix));
} else {
vvb='';
}
}
if (!parent.document.getElementById('slideshow2')) {
// if (top.document.URL.indexOf('/splice_audio.') != -1) { alert('HEre noW'); }
console.log('HerE ' + nsuffix);
if (parent.document.getElementById('ispec') && parent.document.getElementById('outext')) {
if (parent.document.getElementById('ispec').outerHTML.indexOf(' data-dgize=') != -1) {
noinitialstwo=true;
}
}
if ((!parent.document.getElementById('slideshow2') || noinitialstwo) && parent.document.getElementById('slideshow')) {
// if (top.document.URL.indexOf('/splice_audio.') != -1) { alert('HeRe noW'); }
console.log('YeS ' + event.target.result.length);
if (parent.document.getElementById('ispec') && parent.document.getElementById('outext')) {
if (parent.document.getElementById('ispec').outerHTML.indexOf(' data-dgize=') == -1) {
parent.document.getElementById('ispec').setAttribute('data-dgize', 'y');
noinitialstwo=true;
}
//if (parent.document.title.indexOf('durip ') != 0) { parent.document.title='durip ... 3 ... '; }
//console.log(event.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('slideshow').value=event.target.result.replace('application/octet-stream', tomt).replace('application/octet-stream', tomt).replace('data:;', 'data:' + mfile.type + ';').replace('data:application/octet-stream;', 'data:' + tomt + ';');
//alert('TruE');
//alert(evt.target.result);
//}
}
}
} //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,''))) {
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;
} //else {
//alert('wow');
//}
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);
if (middlerestname != '') {
if (parent.document.getElementById('audio' + middlerestname + 'name').value == '') {
parent.document.getElementById('audio' + middlerestname + 'name').value=mfile.name;
} else {
parent.document.getElementById('audio' + middlerestname + 'name').value+='#' + mfile.name;
}
} else {
parent.document.getElementById('audio' + middlerestname + 'name').value=mfile.name;
}
if (middlerestname == '' && parent.document.getElementById('audiorestname')) {
middlerestname='rest';
}
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';
if (('' + typeof parent.yesthreethree) == 'function') {
parent.yesthreethree(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 (('' + typeof parent.notwotwo) == 'function') {
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 +tmorethanone(mto) {
morethanone=mto;
ourmto=mto;
if (ourmto) { courmto=' checked'; } else { courmto=''; }
if (morethanone) {
top.document.title+=' ';
tdt=' ';
document.getElementById('ajaxs').multiple=true;
courmto=' selected';
if (ajaxsih != '') {
//alert(987);
document.getElementById('ajaxs').innerHTML=oncnt(ajaxsih);
//if (('' + document.URL).indexOf('audiocard=') != -1) {
//alert('2:' + document.getElementById('ajaxs').outerHTML);
//tryagain();
//}
if (courmto != '' && document.getElementById('cajaxs')) { document.getElementById('cajaxs').checked=true; }
} else if (!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
//alert(1987);
if (document.getElementById('cajaxs')) {
document.getElementById('cajaxs').style.visibility='hidden';
}
document.getElementById('ajaxs').style.height='565px'; //'300px';
if (document.getElementById('tablenmup')) {
document.getElementById('tablenmup').style.marginTop='-165px';
}
setTimeout(andlr, 5000);
} else {
if (document.getElementById('cajaxs')) {
document.getElementById('cajaxs').style.visibility='hidden';
}
setTimeout(andlr, 5000);
}
givefactor=0;
document.getElementById('dajaxs').innerHTML=lfends + '<input title="Select Video(s) and then Click Here When Ready to Play them (with up to 20 seconds pause or time for your clicks between each)" type=button onclick=" lookatmultiple(eval(String.fromCharCode(50))); " style=display:inline;width:120px;background-color:olive; value="Sequentially?" id=iajaxsz></input> <input title="Select Video(s) and then Click Here When Ready to Play them (with up to 20 seconds pause or time for your clicks between each)" type=button onclick=" lookatmultiple(eval(String.fromCharCode(48))); givefactor=givefifteen; " style=display:inline;width:120px;background-color:yellow; value="Ready?" id=iajaxs></input> ' + lfb + '<input title="Select Video(s) and then Click Here When Ready to Play them in a 3x3 grid (where click matches to end result matches keep that order)" type=button onclick=" dnineit(); " style=display:inline;width:120px;background-color:orange; value="Grid?" id=gridajaxs></input> ' + lfb + ' <input title="Select Video(s) and then Click Here When Ready to Play them synchronously as a reveal, if possible" type=button onclick=" revealit(); " style=display:inline;width:120px;background-color:pink; value="Reveal?"></input> <input title="Select Video(s) and then Click Here When Ready to prepare links to Play just the Audio Stream part of them" type=button onclick=" justaudioit(); " style=display:inline;width:120px;background-color:silver; value="Audio?"></input> ' + lfb + ' <input title="Select Video(s) and then Click Here When Ready to Play them synchronously, if possible" type=button onclick=" sgive=true; givefactor=givefifteen; " style=display:inline;width:120px;background-color:lightgreen; value="Synchronize?" id=iiajaxs></input> ' + lfb + ' <input title="Select Video(s) and then Click Here When Ready to Play them synchronously and superimposed, if possible" type=button onclick=" pgive=true; sgive=true; givefactor=givefifteen; " style=display:inline;width:120px;background-color:lightblue; value="Superimpose?" id=iiajaxs></input> ' + lfends + lfends;
if (document.getElementById('cajaxs')) { document.getElementById('cajaxs').checked=true; }
//if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
// document.getElementById('ajaxs').style.width='80%';
//document.getElementById('myh1').innerHTML+=(' here');
//}
} else {
top.document.title=top.document.title.replace(' ','');
tdt='';
courmto='';
document.getElementById('ajaxs').multiple=false;
//if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
// document.getElementById('myh1').innerHTML+=(' There');
//}
}
}
function justaudioit() {
//alert(1);
givefactor=givefifteen;
var mysuff='', imy=0;
while (document.getElementById('myao' + mysuff)) {
imy++;
mysuff='' + imy;
}
bitatstart='<details id=myao' + mysuff + ' open><summary></summary>';
//alert(11);
var jsin=document.getElementById('ajaxs');
for (var jii=0; jii<jsin.options.length; jii++) {
if (jsin.options[jii].selected) {
if (jsin.options[jii].value != '') {
//alert(133);
bitatstart+='<span><a class="audioytplay" target=_blank title="' + jsin.options[jii].innerHTML.replace(/\"/g,'`') + '" href="//www.youtube.com/watch?v=' + jsin.options[jii].value + '">' + jsin.options[jii].innerHTML + ' ' + String.fromCodePoint(128251) + String.fromCodePoint(127926) + '</a></span><br>';
}
}
}
bitatend='</details></td></TR>'; //alert(56);
if (3 == 3) {
//alert(56);
if ((bitatstart + '~').indexOf('<summary></summary>~') == -1) {
//alert(345);
var wooo=window.open('','_blank','top=50,left=50,width=600,height=600');
wooo.document.write('<html><head><title>YouTube Audio Stream of Video Playing - RJM Programming - March, 2025</title><scr' + 'ipt src=//www.rjmprogramming.com.au/ytaudioonly.js></scr' + 'ipt></head><body>' + bitatstart + bitatend.split('</td>')[0] + '<div id=subtitlegoeshere style=background-color:orange; onclick=alert(this.title); title="Captions and subtitles"></div></body></html>');
}
} else {
document.getElementById("iiajaxs").click();
}
}
function revealit() {
sgive=true;
givefactor=givefifteen;
bitatstart='<details open><summary></summary>';
bitatend='</details></td></TR>'; //alert(56);
document.getElementById("iiajaxs").click();
}
function clickto() {
if (1 == 11) {
var ibitis=document.getElementById('emailer').src.split('?')[0].split('#')[0];
ibitis+='?to=' + encodeURIComponent(document.getElementById('to').value);
ibitis+='&cc=' + encodeURIComponent(document.getElementById('cc').value);
ibitis+='&bcc=' + encodeURIComponent(document.getElementById('bcc').value);
ibitis+='&url=' + encodeURIComponent(document.getElementById('url').value);
ibitis+='&urlbig=' + encodeURIComponent(document.getElementById('urlbig').value);
ibitis+='&subject=' + encodeURIComponent(document.getElementById('subject').value);
document.getElementById('emailer').src=ibitis;
} else {
document.getElementById('sendemail').click();
}
}
function doto(etv) {
document.getElementById('to').value=etv;
}
function closeaudio() {
try {
if (audiow != null) {
audiow.close();
audioask=false;
if (audiof == '') {
//audiof='';
var outaf=null;
if (dorecord) outaf=prompt('Please enter URL to access local audio you just captured. There is very little chance you will not need to change the default value. If it starts with file: you will have to double click these when prompted, else .wav ones are automated, and you can use local web servers like Mac OS X Apache/PHP MAMP (https://www.mamp.info) for a filename like //localhost:8888/myRecording00.wav that would work if you have copied the audio from the Downloads folder to /Applications/MAMP/htdocs/ for instance. Windows has Apache/PHP EasyPHP (//www.easyphp.org/) local web server.', 'file:///home/Downloads/myRecording00.wav');
if (outaf) {
if (outaf != '') {
morechanges=false;
document.getElementById('i' + audioi).value+=';' + outaf;
document.getElementById('trbutton').style.visibility='visible';
document.getElementById('dkaraoke').style.visibility='visible';
document.getElementById('dkaraokem').style.visibility='visible';
document.getElementById('dkaraoker').style.visibility='visible';
document.getElementById('trrhead').style.display='none';
document.getElementById('karaoke').style.visibility='visible';
if (document.getElementById('d' + emojisuffix + 'karaoke')) {
document.getElementById('d' + emojisuffix + 'karaoke').style.visibility='visible';
document.getElementById('d' + emojisuffix + 'karaokem').style.visibility='visible';
document.getElementById('d' + emojisuffix + 'karaoker').style.visibility='visible';
document.getElementById(emojisuffix + 'karaoke').style.visibility='visible';
// alert(emojisuffix + 'karaoke');
emojistuff();
}
}
} else {
ioffset=-1;
}
}
}
} catch (ee) { }
audiow=null;
}
function toms(inf) {
if (inf.value != '') {
if (inf.value.split(';')[0].substring(0,1) >= '0' && inf.value.split(';')[0].substring(0,1) <= '9') {
if (inf.value.split(';')[0].slice(-1) >= '0' && inf.value.split(';')[0].slice(-1) <= '9') {
var secsare=0;
//alert(Math.floor(secsare / 3600.0));
//alert(('0' + Math.floor(secsare / 60.0)));
//alert(('0' + eval(secsare,60.0)));
//alert('take two off length of ' + ('0' + Math.floor(eval(secsare,60.0))));
if (!ismobileplaylist) {
secsare=eval(inf.value.split(';')[0]);
if (inf.outerHTML.indexOf(' data-index') == -1) {
inf.title=Math.floor(secsare / 3600.0) + ':' + ('0' + Math.floor(secsare / 60.0)).substring(eval(-2 + ('0' + Math.floor(secsare / 60.0)).length)) + ':' + ('0' + eval(secsare % 60.0)).substring(eval(-2 + ('0' + Math.floor((secsare % 60.0))).length));
}
}
//alert(secsare + ' ' + inf.title);
}
}
}
}
function andthe() {
var ii=eval(1 + eval(document.getElementById('updatethisplease').value.replace('i','').replace('j','')));
next_thing='xx' + ii;
//if (next_thing == 'ddkaraoke') { alert('wow'); }
document.getElementById(next_thing).style.visibility='visible';
document.getElementById(document.getElementById('updatethisplease').value).style.backgroundColor=bcol;
setTimeout(andthe, 1000);
}
function andth() {
document.getElementById('mousei').style.visibility='hidden';
document.getElementById('mousej').style.visibility='hidden';
}
function mousebelowj(omo) {
//alert(omo.id.replace('j','i'));
document.getElementById(omo.id.replace('j','i')).style.visibility='hidden';
//alert(9000);
mbmode=true;
omo.value='When finished with Table Settings click Orange button to Play your Table Settings';
//alert(90000);
bcol='#f0f0f0';
document.getElementById('updatethisplease').value='j0';
document.getElementById(document.getElementById('updatethisplease').value).style.backgroundColor=bcol;
//alert(900000);
if (document.URL.indexOf('c0=off') == -1) {
document.getElementById('c0').checked=true;
}
document.getElementById('thft').innerHTML='Via Mouse Video Click Pauses ... <br>' + 'where Click, DoubleClick for the Finish entries <br>would mean no user Karaoke part ... <br>' + document.getElementById('thft').innerHTML;
//alert(9000000);
//document.getElementById('karaoke').click();
next=0;
queuenext();
setTimeout(andth, 5000);
andthe();
//alert(90000000);
}
function mousebelowi(omo) {
//alert(900);
document.getElementById(omo.id.replace('i','j')).style.visibility='hidden';
omo.value='When finished with Table Settings click Orange button to Play your Table Settings';
document.getElementById('updatethisplease').value='i0';
bcol='#f5f5f5';
document.getElementById(document.getElementById('updatethisplease').value).style.backgroundColor=bcol;
document.getElementById('thst').innerHTML='Via Mouse Video Click Pauses ... <br>' + document.getElementById('thst').innerHTML;
if (document.URL.indexOf('c0=off') == -1) {
document.getElementById('c0').checked=true;
}
//document.getElementById('karaoke').click();
mbmode=true;
next=0;
queuenext();
setTimeout(andth, 5000);
andthe();
}
function ofc(iois) {
okn=iois.value;
oko=iois;
lastokn=okn;
}
function precval(iois) {
//okn=iois.value;
oko=iois;
lastokn=okn;
if (okn.indexOf(':x') != -1) {
var cvi=okn.split(':');
if (cvi.length > 1) {
var scs=0.0, factor=1.0;
for (var ij=eval(-1 + cvi.length); ij>=0; ij--) {
if (cvi[ij] == "") cvi[ij]="00";
scs+=eval(factor * eval(cvi[ij]));
factor*=60.0;
}
okn='' + scs;
oko.value=okn;
lastokn=okn.replace(':','');
//document.title=oko.value;
//setTimeout(fixval,30);
}
}
}
function fixval() {
if (okn != '') {
oko.value=okn;
} else if (lastokn != '') {
oko.value=lastokn;
lastokn='';
} //else {
//document.title='why';
//}
}
function cval(eiois) {
if (document.URL.indexOf('i0=') == -1) {
//alert(eiois.which);
//okn+=String.fromCharCode(eiois.which || eiois.keyCode);
if ((eiois.which || eiois.keyCode) == 8) {
okn='';
} else if ((eiois.which || eiois.keyCode) == 186 || (eiois.which || eiois.keyCode) == 900000016) {
okn=okn.replace(':','') + ':';
//document.title=okn + ' ' + (eiois.which || eiois.keyCode);
var cvi=okn.split(':');
if (cvi.length > 1) {
var scs=0.0, factor=1.0;
for (var ij=eval(-1 + cvi.length); ij>=0; ij--) {
if (cvi[ij] == "") cvi[ij]="00";
scs+=eval(factor * eval(cvi[ij]));
factor*=60.0;
}
//alert(scs + ' ' + okn);
okn='' + scs;
oko.value=okn;
lastokn=okn.replace(':','');
//document.title=okn + ' ' + (eiois.which || eiois.keyCode) + ' ' + oko.value;
//setTimeout(fixval,30);
}
} else if ((eiois.which || eiois.keyCode) < 46 || (eiois.which || eiois.keyCode) > 58) {
okn=okn;
} else {
okn+=String.fromCharCode(eiois.which || eiois.keyCode);
//document.title+='=' + okn + '+' + eiois.which + ' ' + eiois.keyCode + ' ... ';
}
}
}
function lastjcheck() {
if (lastj != '') {
if (document.getElementById(lastj.replace('j','i')).value.indexOf('data:image/gif') != -1 || document.getElementById(lastj.replace('j','i')).value.indexOf('gif;base64,') != -1) {
if (gduration > 0) {
document.getElementById(lastj).value='' + gduration;
} else {
document.getElementById(lastj).value='5';
}
} else if (document.getElementById(lastj.replace('j','i')).value.indexOf('data:image/') != -1) {
document.getElementById(lastj).value='5';
}
document.getElementById(lastj).disabled=true;
lastj='';
}
}
function checkval(iois) {
var newa=null, dta='';
lastj='';
if (iois.value.trim() != '') {
if (iois.value.trim().indexOf('data:') == -1 && iois.value.trim().toLowerCase().indexOf('http') == -1) {
if (iois.value.substring(0,1) < '0' || iois.value.substring(0,1) > '9') {
if (iois.value.indexOf(' ') == -1 && eval('' + iois.value.length) == 11) {
lastj=lastj;
} else {
if (('' + iois.id + ' ').substring(0,1) == 'i') { lastj='j' + ('' + iois.id).substring(1); }
if (lastj != '') {
document.getElementById(lastj).value='5';
//document.getElementById(lastj).disabled=true;
lastj='';
}
iois.value="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' height='48' width='566' viewport='0 0 100 100'><text x='20%' y='30%' stroke='blue'>" + iois.value + "</text></svg>";
setTimeout(function(){ addrow(); }, 2000);
return checkval(iois);
}
}
}
}
if (iois.value.indexOf('data:') != -1 && browsebut != '') {
if (('' + iois.id + ' ').substring(0,1) == 'i') { lastj='j' + ('' + iois.id).substring(1); }
if (lastj != '') {
if (document.getElementById(lastj).disabled) { return true; }
}
document.getElementById('bcc').value='';
document.getElementById('to').value='';
document.getElementById('subject').value='';
//alert('data:' + iois.value.split('data:')[1]);
dta='data:' + iois.value.split('data:')[1];
gduration=-1;
if ('data:' + iois.value.split('data:')[1].indexOf('image/gif') != -1 || 'data:' + iois.value.split('data:')[1].indexOf('gif;base64,') != -1) {
prefetch('data:' + iois.value.split('data:')[1]);
}
document.getElementById('urlbig').value='data:' + iois.value.split('data:')[1];
document.getElementById('sendemail').click();
setTimeout(lastjcheck, 2000);
setTimeout(function(){ document.getElementById('bcc').value=' '; }, 20000);
}
if (document.URL.indexOf('i0=') == -1) {
if (iois.value.indexOf('data:') != -1) {
if (dta != 'data:' + iois.value.split('data:')[1]) {
if (('' + iois.id + ' ').substring(0,1) == 'i') { lastj='j' + ('' + iois.id).substring(1); }
if (lastj != '') {
if (document.getElementById(lastj).disabled) { return true; }
}
document.getElementById('bcc').value='';
document.getElementById('to').value='';
document.getElementById('subject').value='';
//alert('data:' + iois.value.split('data:')[1]);
gduration=-1;
if ('data:' + iois.value.split('data:')[1].indexOf('image/gif') != -1 || 'data:' + iois.value.split('data:')[1].indexOf('gif;base64,') != -1) {
prefetch('data:' + iois.value.split('data:')[1]);
}
document.getElementById('urlbig').value='data:' + iois.value.split('data:')[1];
document.getElementById('sendemail').click();
setTimeout(lastjcheck, 2000);
setTimeout(function(){ document.getElementById('bcc').value=' '; }, 20000);
}
}
if (iois.value.indexOf('data:') == -1) {
var cvi=iois.value.split(':');
if (cvi.length > 1) {
var scs=0.0, factor=1.0;
for (var ij=eval(-1 + cvi.length); ij>=0; ij--) {
scs+=eval(factor * eval(cvi[ij]));
factor*=60.0;
}
iois.value='' + scs;
}
} else if (iois.value.indexOf('data:audio/') != -1) {
//alert('Here');
newa=document.createElement('audio');
newa.onloadedmetadata=function(event){
document.getElementById(iois.id.replace('i','j')).value='' + event.target.duration;
}
newa.type='audio/' + iois.value.split('/')[1].split(';')[0].split(',')[0];
newa.src='data:' + iois.value.split('data:')[1];
} else if (iois.value.indexOf('data:video/') != -1) {
//alert('Here');
newa=document.createElement('video');
newa.onloadedmetadata=function(event){
document.getElementById(iois.id.replace('i','j')).value='' + event.target.duration;
}
newa.type='video/' + iois.value.split('/')[1].split(';')[0].split(',')[0];
newa.src='data:' + iois.value.split('data:')[1];
} else if (iois.value.indexOf('data:image/') != -1) {
//alert('Here');
newa=document.createElement('img');
newa.onloadedmetadata=function(event){
document.getElementById(iois.id.replace('i','j')).value='5';
}
newa.type='image/' + iois.value.split('/')[1].split(';')[0].split(',')[0];
newa.src='data:' + iois.value.split('data:')[1];
}
addrow();
} else {
if (iois.value.indexOf('data:audio/') != -1) {
//alert('HeRe');
newa=document.createElement('audio');
newa.onloadedmetadata=function(event){
document.getElementById(iois.id.replace('i','j')).value='' + event.target.duration;
}
newa.type='audio/' + iois.value.split('/')[1].split(';')[0].split(',')[0];
newa.src='data:' + iois.value.split('data:')[1];
} else if (iois.value.indexOf('data:video/') != -1) {
//alert('HeRe');
newa=document.createElement('video');
newa.onloadedmetadata=function(event){
document.getElementById(iois.id.replace('i','j')).value='' + event.target.duration;
}
newa.type='video/' + iois.value.split('/')[1].split(';')[0].split(',')[0];
newa.src='data:' + iois.value.split('data:')[1];
} else if (iois.value.indexOf('data:image/') != -1) {
//alert('HeRe');
newa=document.createElement('img');
newa.onloadedmetadata=function(event){
document.getElementById(iois.id.replace('i','j')).value='5';
}
newa.type='image/' + iois.value.split('/')[1].split(';')[0].split(',')[0];
newa.src='data:' + iois.value.split('data:')[1];
}
snippet=eval(iois.id.replace('i','').replace('j','').replace('c',''));
snippet++;
document.getElementById('xx' + snippet).style.visibility='visible';
}
}
function yofc(iois) {
yokn=iois.value;
yoko=iois;
ylastokn=yokn;
var huhpl=iois.placeholder;
if (huhpl.toLowerCase().indexOf(' subrip ') == -1) {
iois.placeholder='Can # delimit append SubRip subtitles filename URL or #srt= to make one. ' + huhpl;
}
}
function yprecval(iois) {
//yokn=iois.value;
yoko=iois;
ylastokn=yokn;
}
function yfixval() {
if (yokn != '') {
yoko.value=yokn;
} else if (ylastokn != '') {
yoko.value=ylastokn;
ylastokn='';
}
}
function ycval(eiois) {
if (document.URL.indexOf('i0=') == -1) {
//alert(eiois.which);
//yokn+=String.fromCharCode(eiois.which || eiois.keyCode);
if ((eiois.which || eiois.keyCode) == 8) {
yokn='';
} else if ((eiois.which || eiois.keyCode) < 33 || (eiois.which || eiois.keyCode) > 126) {
yokn=yokn;
} else {
yokn+=String.fromCharCode(eiois.which || eiois.keyCode);
getytlist(yokn, false);
}
}
}
function addrow() {
var suffix='', vmode='visible', chked='';
snippet++;
if (itt('') != '') { if (document.getElementById('c0')) { document.getElementById('c0').checked=true; } else if (1 == 2) { chked=' checked'; } } // else { alert(43); }
var csnippet=location.search.split('c' + snippet + '=')[1] ? location.search.split('c' + snippet + '=')[1].split('&')[0] : 'off';
var isnippet=location.search.split('i' + snippet + '=')[1] ? decodeURIComponent(location.search.split('i' + snippet + '=')[1].split('&')[0]) : ' ';
var jsnippet=location.search.split('j' + snippet + '=')[1] ? decodeURIComponent(location.search.split('j' + snippet + '=')[1].split('&')[0]) : ' ';
if (isnippet == ' ' && jsnippet == ' ') {
if (defval != '') {
//alert(0);
for (var ii=1; ii<=nine; ii++) {
suffix+='<tr style=visibility:' + vmode + ';background-color:pink; id=xx' + eval(ii + snippet) + '><td><input type=checkbox id=c' + eval(ii + snippet) + ' name=c' + eval(ii + snippet) + chked + '></input></td><td><input placeholder="Can | separate time to next YouTube video ID (use ; for just audio)" style=width:95%; onblur=checkval(this); type=text onmouseover=toms(this); id=i' + eval(ii + snippet) + ' name=i' + eval(ii + snippet) + ' value=></input></td><td><input style=width:100px; type=number onkeyup=cval(event); oninput=precval(this); onclick=ofc(this); onmouseover=toms(this); min=0 id=j' + eval(ii + snippet) + ' name=j' + eval(ii + snippet) + ' step=0.000001 value=></input></td></tr>';
chked='';
vmode='hidden';
}
document.getElementById(nextthing).innerHTML+='<tr id=xx0 style=background-color:pink;><td><input onclick=andth(); type=checkbox id=c' + snippet + ' name=c' + snippet + chked + '></input></td><td><input placeholder="Can | separate time to next YouTube video ID (use ; for just audio)" style=width:95%; onblur=checkval(this); type=text onmouseover=toms(this); id=i' + snippet + ' name=i' + snippet + ' value=' + defval + '></input></td><td><input style=width:100px; type=number onkeyup=cval(event); oninput=precval(this); onclick=ofc(this); onmouseover=toms(this); min=0 max=' + eval(document.getElementById('youtube_duration').value).toFixed(3) + ' id=j' + snippet + ' name=j' + snippet + ' step=0.000001 value=' + eval(document.getElementById('youtube_duration').value).toFixed(3) + '></input></td></tr>' + suffix;
chked='';
} else {
//alert(90);
//if (nextthing == 'ddkaraoke') { alert('Wow'); }
document.getElementById(nextthing).style.visibility='visible';
}
} else if (csnippet == 'off') {
if (defval != '') {
//alert(0);
for (var ii=1; ii<=nine; ii++) {
suffix+='<tr style=visibility:' + vmode + ';background-color:pink; id=xx' + eval(ii + snippet) + '><td><input type=checkbox id=c' + eval(ii + snippet) + ' name=c' + eval(ii + snippet) + chked + '></input></td><td><input placeholder="Can | separate time to next YouTube video ID (use ; for just audio)" style=width:95%; onblur=checkval(this); type=text onmouseover=toms(this); id=i' + eval(ii + snippet) + ' name=i' + eval(ii + snippet) + ' value=></input></td><td><input style=width:100px; type=number onkeyup=cval(event); oninput=precval(this); onclick=ofc(this); onmouseover=toms(this); min=0 id=j' + eval(ii + snippet) + ' name=j' + eval(ii + snippet) + ' step=0.000001 value=></input></td></tr>';
chked='';
vmode='hidden';
}
document.getElementById(nextthing).innerHTML+='<tr id=xx0 style=background-color:pink;><td><input onclick=andth(); type=checkbox id=c' + snippet + ' name=c' + snippet + chked + '></input></td><td><input placeholder="Can | separate time to next YouTube video ID (use ; for just audio)" style=width:95%; onblur=checkval(this); type=text onmouseover=toms(this); id=i' + snippet + ' name=i' + snippet + ' value=' + isnippet + '></input></td><td><input style=width:100px; type=number onkeyup=cval(event); oninput=precval(this); onclick=ofc(this); onmouseover=toms(this); min=0 max=' + document.getElementById('youtube_duration').value + ' id=j' + snippet + ' name=j' + snippet + ' step=0.000001 value=' + jsnippet + '></input></td></tr>' + suffix;
chked='';
} else {
//alert(90);
//if (nextthing == 'ddkaraoke') { alert('wOw'); }
document.getElementById(nextthing).style.visibility='visible';
document.getElementById('i' + snippet).value=isnippet;
document.getElementById('j' + snippet).value=jsnippet;
}
} else {
if (defval != '') {
//alert(0);
for (var ii=1; ii<=nine; ii++) {
suffix+='<tr style=visibility:' + vmode + ';background-color:pink; id=xx' + eval(ii + snippet) + '><td><input type=checkbox id=c' + eval(ii + snippet) + ' name=c' + eval(ii + snippet) + chked + '></input></td><td><input placeholder="Can | separate time to next YouTube video ID (use ; for just audio)" style=width:95%; onblur=checkval(this); type=text onmouseover=toms(this); id=i' + eval(ii + snippet) + ' name=i' + eval(ii + snippet) + ' value=></input></td><td><input style=width:100px; type=number onkeyup=cval(event); oninput=precval(this); onclick=ofc(this); onmouseover=toms(this); min=0 id=j' + eval(ii + snippet) + ' name=j' + eval(ii + snippet) + ' step=0.000001 value=></input></td></tr>';
chked='';
vmode='hidden';
}
document.getElementById(nextthing).innerHTML+='<tr id=xx0 style=background-color:pink;><td><input onclick=andth(); type=checkbox id=c' + snippet + ' name=c' + snippet + ' checked></input></td><td><input placeholder="Can | separate time to next YouTube video ID (use ; for just audio)" style=width:95%; onblur=checkval(this); type=text onmouseover=toms(this); id=i' + snippet + ' name=i' + snippet + ' value=' + isnippet + '></input></td><td><input style=width:100px; type=number onkeyup=cval(event); oninput=precval(this); onclick=ofc(this); onmouseover=toms(this); min=0 max=' + document.getElementById('youtube_duration').value + ' id=j' + snippet + ' name=j' + snippet + ' step=0.000001 value=' + jsnippet + '></input></td></tr>' + suffix;
} else {
//alert(90);
//if (nextthing == 'ddkaraoke') { alert('woW'); }
document.getElementById(nextthing).style.visibility='visible';
if (document.URL.indexOf('c' + snippet + '=off') == -1) {
document.getElementById('c' + snippet).checked=true;
}
document.getElementById('i' + snippet).value=isnippet;
document.getElementById('j' + snippet).value=jsnippet;
}
csnippet=location.search.split('c' + eval(1 + snippet) + '=')[1] ? location.search.split('c' + eval(1 + snippet) + '=')[1].split('&')[0] : 'off';
isnippet=location.search.split('i' + eval(1 + snippet) + '=')[1] ? location.search.split('i' + eval(1 + snippet) + '=')[1].split('&')[0] : ' ';
jsnippet=location.search.split('j' + eval(1 + snippet) + '=')[1] ? location.search.split('j' + eval(1 + snippet) + '=')[1].split('&')[0] : ' ';
//alert('isnippet=' + isnippet + '*and* jsnippet=' + jsnippet + '*');
if (isnippet.trim() == '' && jsnippet.trim() == '') {
//alert('isNippet=' + isnippet + '*and* snippet=' + snippet + '*');
queuenext(); //document.getElementById('dkaraoke').click();
// alert(11);
return;
} else {
nextthing='xx' + eval(1 + snippet);
defval='';
document.getElementById('trbutton').style.visibility='visible';
document.getElementById('dkaraoke').style.visibility='visible';
document.getElementById('dkaraokem').style.visibility='visible';
document.getElementById('dkaraoker').style.visibility='visible';
document.getElementById('trrhead').style.display='none';
if (document.getElementById('dd' + emojisuffix + 'karaoke')) {
//if (emojisuffix == 'd' || emojisuffix == 'dd') { alert('wOW'); }
document.getElementById('d' + emojisuffix + 'karaoke').style.visibility='visible';
document.getElementById('d' + emojisuffix + 'karaokem').style.visibility='visible';
document.getElementById('d' + emojisuffix + 'karaoker').style.visibility='visible';
document.getElementById(emojisuffix + 'karaoke').style.visibility='visible'; // huh
// alert(11111);
emojistuff();
}
//alert('isnippet=' + isnippet + '*and* jsnippet=' + jsnippet + '*');
addrow();
// alert(111);
return;
}
}
nextthing='xx' + eval(1 + snippet);
defval='';
document.getElementById('trbutton').style.visibility='visible';
document.getElementById('dkaraoke').style.visibility='visible';
document.getElementById('dkaraokem').style.visibility='visible';
document.getElementById('dkaraoker').style.visibility='visible';
document.getElementById('trrhead').style.display='none';
if (document.getElementById('dd' + emojisuffix + 'karaoke')) {
//if (emojisuffix == 'dd' || emojisuffix == 'd') { alert('WOW'); }
document.getElementById('d' + emojisuffix + 'karaoke').style.visibility='visible';
document.getElementById('d' + emojisuffix + 'karaokem').style.visibility='visible';
document.getElementById('d' + emojisuffix + 'karaoker').style.visibility='visible';
document.getElementById(emojisuffix + 'karaoke').style.visibility='visible'; // huh
// alert(1111);
emojistuff();
}
if (document.getElementById('j0').value.indexOf('.') == -1) {
document.getElementById('j0').value+='';
} else {
var xxqw=document.getElementById('j0').value.split('.');
if (xxqw[1].length > 3) {
document.getElementById('j0').value=xxqw[0] + '.' + xxqw[1].substring(0,3);
}
}
var nosup=' ';
//alert(zeroplay);
if (zeroplay != 0 && document.getElementById('c0')) {
//alert(4);
if (!top.window) {
//alert(44);
nosup='';
} else {
if (itt('') != '') { nosup=''; }
}
//alert(444);
}
if (zeroplay == 0) {
if (document.URL.indexOf('c0=off') == -1 || itt('') != '') {
document.getElementById('c0').checked=true;
}
//if (onestodo.length > 1) alert('hERe');
if (document.getElementById('dd' + emojisuffix + 'karaoke')) {
if (document.URL.indexOf('c0=off') == -1 || itt('') != '') {
document.getElementById(emojisuffix + 'karaoke').click();
}
} else {
document.getElementById('karaoke').click();
}
} else if (nosup == '') {
if (document.URL.indexOf('c0=off') == -1 || itt('') != '') {
document.getElementById('c0').checked=true;
}
//if (onestodo.length > 1) alert('hERE');
if (document.getElementById('ejkaraoke')) {
if (document.URL.indexOf('c0=off') == -1 || itt('') != '') {
document.getElementById('ejkaraoke').click();
}
}
} else if (top.document.title.indexOf("Country ") == 0 && top.document.title.indexOf(" Quiz") != -1 && document.getElementById('c0')) {
if (document.URL.indexOf('c0=off') == -1) {
document.getElementById('c0').checked=true;
}
//if (onestodo.length > 1) alert('hERE');
if (document.getElementById('ejkaraoke')) {
if (document.URL.indexOf('c0=off') == -1 || itt('') != '') {
document.getElementById('ejkaraoke').click();
}
}
} else if (((top.document.title.indexOf("Indigenous ") == 0 && top.document.title.indexOf(" Australia") != -1) || (top.document.URL.indexOf('rjmprogramming.com.au/wordpress') != -1 || top.document.URL.indexOf('rjmprogramming.com.au/ITblog') != -1)) && document.getElementById('c0')) {
if (document.URL.indexOf('c0=off') == -1 || itt('') != '') {
document.getElementById('c0').checked=true;
}
//if (onestodo.length > 1) alert('HEre');
if (document.getElementById('ejkaraoke')) {
if (document.URL.indexOf('c0=off') == -1 || itt('') != '') {
document.getElementById('ejkaraoke').click();
}
}
} else if (((top.document.title.indexOf("Health ") == 0 && top.document.title.indexOf(" Meaning") != -1) || (top.document.URL.indexOf('rjmprogramming.com.au/wordpress') != -1 || top.document.URL.indexOf('rjmprogramming.com.au/ITblog') != -1)) && document.getElementById('c0')) {
if (document.URL.indexOf('c0=off') == -1) {
document.getElementById('c0').checked=true;
}
//if (onestodo.length > 1) alert('HEre');
if (document.getElementById('ejkaraoke')) {
if (document.URL.indexOf('c0=off') == -1 || itt('') != '') {
document.getElementById('ejkaraoke').click();
}
}
} else if (((top.document.title.indexOf("Dams ") == 0 && top.document.title.indexOf(" United States") != -1) || (top.document.URL.indexOf('rjmprogramming.com.au/wordpress') != -1 || top.document.URL.indexOf('rjmprogramming.com.au/ITblog') != -1)) && document.getElementById('c0')) {
if (document.URL.indexOf('c0=off') == -1) {
document.getElementById('c0').checked=true;
}
//if (onestodo.length > 1) alert('HEre');
if (document.getElementById('ejkaraoke')) {
if (document.URL.indexOf('c0=off') == -1 || itt('') != '') {
document.getElementById('ejkaraoke').click();
}
}
} else if (((top.document.title.indexOf("Australian ") == 0) || (top.document.URL.indexOf('rjmprogramming.com.au/wordpress') != -1 || top.document.URL.indexOf('rjmprogramming.com.au/ITblog') != -1)) && document.getElementById('c0')) {
if (document.URL.indexOf('c0=off') == -1) {
document.getElementById('c0').checked=true;
}
//if (onestodo.length > 1) alert('HEre');
if (document.getElementById('ejkaraoke')) {
if (document.URL.indexOf('c0=off') == -1 || itt('') != '') {
document.getElementById('ejkaraoke').click();
}
}
} else if (top.document.title.indexOf("Nostalgia ") == 0 && document.getElementById('c0')) {
if (document.URL.indexOf('c0=off') == -1 || itt('') != '') {
document.getElementById('c0').checked=true;
}
//if (onestodo.length > 1) alert('HEre');
if (document.getElementById('ejkaraoke')) {
if (document.URL.indexOf('c0=off') == -1 || itt('') != '') {
document.getElementById('ejkaraoke').click();
}
}
} else if (top.document.title.indexOf("(at least on Google Chrome)") != -1 && document.getElementById('c0')) {
if (document.URL.indexOf('c0=off') == -1 || itt('') != '') {
document.getElementById('c0').checked=true;
}
//if (onestodo.length > 1) alert('HEre');
if (document.getElementById('ejkaraoke')) {
if (document.URL.indexOf('c0=off') == -1 || itt('') != '') {
document.getElementById('ejkaraoke').click();
}
}
} else if (top.document.title.indexOf("Top Look") == 0 && document.getElementById('c0')) {
if (document.URL.indexOf('c0=off') == -1 || itt('') != '') {
document.getElementById('c0').checked=true;
}
//if (onestodo.length > 1) alert('HEre');
if (document.getElementById('ejkaraoke')) {
if (document.URL.indexOf('c0=off') == -1 || itt('') != '') {
document.getElementById('ejkaraoke').click();
}
}
} else if (top.document.title.indexOf("The Other Side of the World") == 0 && document.getElementById('c0')) {
if (document.URL.indexOf('c0=off') == -1 || itt('') != '') {
document.getElementById('c0').checked=true;
}
//if (onestodo.length > 1) alert('HEre');
if (document.getElementById('ejkaraoke')) {
if (document.URL.indexOf('c0=off') == -1 || itt('') != '') {
document.getElementById('ejkaraoke').click();
}
}
}
tdt='';
}
function nextv() {
if (thisonetodo < onestodo.length) {
ourvid=onestodo[thisonetodo];
//if (thisonetodo > 0) alert(ourvid);
if (document.getElementById('ajax')) { document.getElementById('ajax').innerHTML=''; }
if (document.getElementById('youtubeid')) { document.getElementById('youtubeid').value=ourvid; }
if (document.getElementById('performance')) { console.warn('here at 1'); document.getElementById('performance').innerHTML=ouriframe("<iframe onload=checkss(this); id='myiframe' style='z-index:-4;width:720px;height:410px;' src='" + firstprefix + "stop_start_youtube.html?vid=" + ourvid + firstsuffix + onestodoprefix + encodeURIComponent(onestodosuffix) + passthislhon + hashidea + "'></iframe>"); }
firstprefix="";
if (document.getElementById(emojisuffix + 'karaokeemail')) { document.getElementById(emojisuffix + 'karaokeemail').value=document.getElementById('to').value; }
if (document.getElementById('performance')) { document.getElementById('performance').style.display='block'; }
//if (onestodo.length > 1) {
// top.document.title+=" ; " + onestodosuffix;
// alert(eval(1000 * onestododur[thisonetodo]) + " ; " + onestodosuffix);
//}
setTimeout(showd, 200);
setTimeout(nextv, eval(1000 * onestododur[thisonetodo]));
thisonetodo++;
}
}
function yourprefix(suggestedone) {
var outsug=suggestedone, ione=1;
var lastlslook=' ';
if (window.localStorage) {
while (lastlslook != '') {
outsug=('000' + ione).slice(-3);
lastlslook=decodeURIComponent(('' + localStorage.getItem('list' + outsug))).replace(/\+/g,' ').replace(/^null$/g,'').trim();
ione++;
}
}
return outsug;
}
function dnineit() {
var allinc=true;
var wasvl=ajaxoncnt;
var sin=document.getElementById('ajaxs');
var qtitle='', commalist='', commadelim='';
for (var i=0; i<sin.options.length; i++) {
if (sin.options[i].selected) {
if (sin.options[i].value != '') {
ajaxoncnt--;
if (ajaxclist.indexOf(sin.options[i].value) == -1) { allinc=false; }
if (qtitle == '') { qtitle='&atitle=' + encodeURIComponent(('' + sin.options[i].innerText).split(' (')[0]); }
commalist+=commadelim + sin.options[i].value;
commadelim=',';
}
}
}
if (commalist != '') {
if (ajaxoncnt == 0 && allinc && wasvl != 0) {
//alert("./the_wrecking_crew.html?aprefix=" + encodeURIComponent(yourprefix('kar')) + qtitle + '&alist=' + encodeURIComponent(' ' + ajaxclist + ' '));
if (ajaxf != '') {
document.getElementById('dnine').innerHTML="<a style='cursor:pointer;text-decoration:none;' href='#myh1' title=Down>👇</a><br><iframe style='width:100%;height:800px;' id=ifnine src='./the_wrecking_crew.html?aprefix=" + encodeURIComponent(yourprefix('kar')) + '&atitle=' + encodeURIComponent(ajaxf) + '&alist=' + encodeURIComponent(' ' + ajaxclist + ' ') + "'></iframe>";
} else {
document.getElementById('dnine').innerHTML="<a style='cursor:pointer;text-decoration:none;' href='#myh1' title=Down>👇</a><br><iframe style='width:100%;height:800px;' id=ifnine src='./the_wrecking_crew.html?aprefix=" + encodeURIComponent(yourprefix('kar')) + qtitle + '&alist=' + encodeURIComponent(' ' + ajaxclist + ' ') + "'></iframe>";
}
} else {
document.getElementById('dnine').innerHTML="<a style='cursor:pointer;text-decoration:none;' href='#myh1' title=Down>👇</a><br><iframe style='width:100%;height:800px;' id=ifnine src='./the_wrecking_crew.html?aprefix=" + encodeURIComponent(yourprefix('kar')) + qtitle + '&alist=' + encodeURIComponent(commalist) + "'></iframe>";
}
}
ajaxoncnt=wasvl;
}
function getloopstatus() { return looping; }
function getwasloopstatus() { return waslooping; }
function getsecs() { return ggsecs; }
function loopstatus() {
if (top.document.getElementById("listeleven")) {
if (top.document.getElementById("listeleven").innerHTML.replace(" "," ").indexOf(" ") == 0) {
looping=false;
} else {
if (eval('' + gsecs) < 0) {
gsecs=0;
} else {
gsecs++;
}
if (eval('' + ggsecs) < 0 && top.document.getElementById("listeleven").innerHTML.replace(" "," ").indexOf(" ") == 0) {
ggsecs=gsecs;
}
}
}
setTimeout(loopstatus, 1000)
}
function postputy(sin, secok) {
var i=0, ik=0;
var kik=0, lik=0, mik=0;
var onetoone=[], atoone=[];
var ntoone=[], sometoone=[];
cumd=0.0;
var soivc='';
var xrect;
var wasi=0;
var retval='', oneto=true;
var czis='on';
var docbod='', docbodi=1, selbod='';
var aot,jaot=0,aotfactor=1.0,iaot,aotdur=0.0,faot=[60.0,60.0,24.0];
var kbitis=document.URL.split('#')[0].split('?')[0].split('/')[eval(-1 + document.URL.split('#')[0].split('?')[0].split('/').length)];
var utemplate='https://www.rjmprogramming.com.au/HTMLCSS/' + kbitis + '?youtubeid=SuJFdLxisPs&youtube_duration=575.621&email=&email=&emoji=on&c0=' + czzis + '&i0=0&j0=575.621&i1=&j1=&i2=&j2=&i3=&j3=&i4=&j4=&i5=&j5=&i6=&j6=&i7=&j7=&i8=&j8=&i9=&j9=&i10=&j10=&i11=&j11=&i12=&j12=&i13=&j13=&i14=&j14=&i15=&j15=&i16=&j16=&i17=&j17=&i18=&j18=&i19=&j19=&i20=&j20=&i21=&j21=&i22=&j22=&i23=&j23=&i24=&j24=&i25=&j25=&i26=&j26=&i27=&j27=&i28=&j28=&i29=&j29=';
var defc=0;
var origbitatstart=bitatstart;
var extrascript='<script type="text/javascript"> </scr' + 'ipt>';
if (csajaxs == '') {
looping=false;
waslooping=false;
extrascript=extrascript.replace(' </scr' + 'ipt>', String.fromCharCode(10) + 'var looping=false, waslooping=false; ' + String.fromCharCode(10) + ' </scr' + 'ipt>');
} else {
looping=true;
waslooping=true;
extrascript=extrascript.replace(' </scr' + 'ipt>', String.fromCharCode(10) + 'var looping=true, waslooping=true; ' + String.fromCharCode(10) + ' </scr' + 'ipt>');
}
extrascript=extrascript.replace(' </scr' + 'ipt>', String.fromCharCode(10) + 'function getloopstatus() { return looping; } ' + String.fromCharCode(10) + ' </scr' + 'ipt>');
extrascript=extrascript.replace(' </scr' + 'ipt>', String.fromCharCode(10) + 'function getwasloopstatus() { return waslooping; } ' + String.fromCharCode(10) + ' </scr' + 'ipt>');
extrascript=extrascript.replace(' </scr' + 'ipt>', String.fromCharCode(10) + 'function loopstatus() { ' + String.fromCharCode(10) + ' </scr' + 'ipt>');
extrascript=extrascript.replace(' </scr' + 'ipt>', String.fromCharCode(10) + 'if (top.document.getElementById("listeleven")) { ' + String.fromCharCode(10) + ' </scr' + 'ipt>');
extrascript=extrascript.replace(' </scr' + 'ipt>', String.fromCharCode(10) + 'if (top.document.getElementById("listeleven").innerHTML.replace(" "," ").indexOf(" ") == 0) { ' + String.fromCharCode(10) + ' </scr' + 'ipt>');
extrascript=extrascript.replace(' </scr' + 'ipt>', String.fromCharCode(10) + ' looping=false; ' + String.fromCharCode(10) + ' </scr' + 'ipt>');
extrascript=extrascript.replace(' </scr' + 'ipt>', String.fromCharCode(10) + '} ' + String.fromCharCode(10) + ' </scr' + 'ipt>');
extrascript=extrascript.replace(' </scr' + 'ipt>', String.fromCharCode(10) + '} setTimeout(loopstatus, 1000); ' + String.fromCharCode(10) + ' </scr' + 'ipt>');
extrascript=extrascript.replace(' </scr' + 'ipt>', String.fromCharCode(10) + '} ' + String.fromCharCode(10) + ' </scr' + 'ipt>');
if (csajaxs != '') {
setTimeout(loopstatus, 1000);
extrascript=extrascript.replace(' </scr' + 'ipt>', String.fromCharCode(10) + 'setTimeout(loopstatus, 1000); ' + String.fromCharCode(10) + ' </scr' + 'ipt>');
}
extrascript="<script type='text/javascript'> function consolelog(inm) { if (window.top) { if (top.document.getElementById('postlist') && top.document.URL.indexOf('debug=') != -1) { top.document.getElementById('postlist').style.display='block'; top.document.getElementById('postlist').innerHTML+='<br>' + inm; } else { console.log(inm); } } else { console.log(inm); } } </scr" + "ipt>";
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i) && lastajaxs != '') {
//preajaxswatch();
ajaxclist=lastajaxs;
ajaxoncnt=eval('' + ajaxclist.split(',').length);
ajaxf='';
//alert(rep + ' lastajaxs=' + lastajaxs);
//} else if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
//alert('why? ' + rep + ' Vs ' + lastajaxs + ' ourmto=' + ourmto);
}
for (var ii=0; ii<sin.options.length; ii++) {
ntoone.push(ii);
if (sin.options[ii].selected) {
if (sin.options[ii].value != '') { onetoone.push(sin.options[ii].value); defc++; }
}
}
if (eval('' + defc) <= eval('' + ajaxoncnt) && eval('' + ajaxoncnt) > 1) {
atoone=ajaxclist.split(',');
for (var iiii=0; iiii<atoone.length; iiii++) {
for (var iii=0; iii<sin.options.length; iii++) {
if (atoone[iiii] == sin.options[iii].value) { sometoone.push(iii); }
}
}
//alert('Defc=' + defc + ' and ajaxoncnt=' + ajaxoncnt);
//} else {
// alert('defc=' + defc + ' and ajaxoncnt=' + ajaxoncnt);
}
for (var j=0; j<sin.options.length; j++) {
if (eval('' + atoone.length) > eval('' + j)) {
soivc=atoone[j];
i=eval('' + sometoone[j]);
ntoone[j]=0;
kik=0;
lik=eval(-1 + eval('' + sin.options.length));
//if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
// alert('i=' + i + ' kik=' + kik + ' lik=' + lik + ' soivc=,' + soivc + ', Defc=' + defc + ' and ajaxoncnt=' + ajaxoncnt + ' vs=' + (',' + ajaxclist + ',') + ' found=' + (',' + ajaxclist + ',').indexOf(',' + soivc + ','));
//}
//alert('i=' + i + ' kik=' + kik + ' lik=' + lik + ' soivc=,' + soivc + ', Defc=' + defc + ' and ajaxoncnt=' + ajaxoncnt + ' vs=' + (',' + ajaxclist + ',') + ' found=' + (',' + ajaxclist + ',').indexOf(',' + soivc + ','));
} else if (eval('' + atoone.length) > 0) {
kik=0;
lik=0;
i=-1;
soivc="youllneverfindthis";
//alert('i=' + j + ' soivc=' + soivc + ' Defc=' + defc + ' and ajaxoncnt=' + ajaxoncnt);
} else {
kik=j;
lik=j;
i=j;
soivc=sin.options[j].value;
}
for (ik=kik; ik<=lik; ik++) {
if (sin.options[ik].value != '' && eval('' + i) == eval('' + ik) && (sin.options[ntoone[j]].selected || (sin.options[ik].value == soivc && ('' + (',' + ajaxclist + ',').indexOf(',' + soivc + ',')) != '-1'))) {
//if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
// alert('I=' + i + ' Soivc=' + soivc + ' Defc=' + defc + ' and ajaxoncnt=' + ajaxoncnt + ' text=' + sin.options[i].innerText);
//}
if (sin.options[ik].value != '') {
//if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
// alert('I=' + i + ' soivc=' + soivc + ' Defc=' + defc + ' and ajaxoncnt=' + ajaxoncnt + ' text=' + sin.options[i].innerText);
//}
//alert(sin.options[i].value);
if (oneto) {
oneto=false;
onestodo=[];
onestododur=[];
}
aotdur=0.0;
aotfactor=1.0;
jaot=0;
aot=sin.options[i].text.split('(')[eval(-1 + sin.options[i].text.replace(')',' ').split('(').length)].replace(')',' ').split(':');
if (aot.length == 1 && aot[0].replace(' second ',',').replace(' seconds ',',').indexOf(',') != -1) {
var hvis=aot[0].split(' hour');
if (hvis.length != 1) { console.log(hvis[0]); aotdur+=eval(eval('' + hvis[0]) * 60 * 60); aot[0]=aot[0].replace(' hours,',' hour').replace(' hour,',' hour').split(' hour')[1]; }
hvis=aot[0].split(' minute');
if (hvis.length != 1) { console.log(hvis[0]); aotdur+=eval(eval('' + hvis[0]) * 60); aot[0]=aot[0].replace(' minutes,',' minute').replace(' minute,',' minute').split(' minute')[1]; }
hvis=aot[0].split(' second');
if (hvis.length != 1) { console.log(hvis[0]); aotdur+=eval(eval('' + hvis[0]) * 1); }
} else {
for (iaot=eval(-1 + aot.length); iaot>=0; iaot--) {
aotdur+=eval(aotfactor * aot[iaot]);
jaot++;
aotfactor *= faot[jaot];
}
}
cumd+=aotdur;
cumd+=15;
var oneis="1";
if (bitatstart != '') { oneis="2"; }
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) { oneis="2"; }
//alert(sin.options[i].value + ' aotdur=' + aotdur + ' aotfactor=' + aotfactor + ' title=' + sin.options[i].text);
if (sgive) {
document.getElementById('myh1').style.maxWidth='700px';
if (docbod == '') {
selbod='<select style="width:60px;display:inline-block;" onchange="if (this.value.length > 1 || this.value.trim().length == 1) { if (!pgive) { location.href=' + "'#' + this.value;" + ' } } else if (this.value.length == 1 && this.value.trim().length == 0) { addrecline(this.value); }" title="Focus on"><option value="">...</option></select>';
if ((csajaxs + ' ').substring(0,1) == 'X') {
docbod='<h' + oneis + ' id=myh1 title="Double click for YouTube search" ondblclick="location.href=document.URL.split(String.fromCharCode(35))[0].split(String.fromCharCode(63))[0];">YouTube API - RJM Programming - September, 2016 <a target=_blank title="Search again" href="' + document.URL.replace('ht' + 'tp:','ht' + 'tps:').split('?')[0].split('#')[0] + '">...</a> <font size=1>selected from</font> "' + document.getElementById('youtubeid').value.trim() + '" <input onclick=emojirestart(); type=button id=ebutn value=🔁 title=Restart></input> <font size=1>below</font> ' + selbod + '</h' + oneis + '><table id="myvtable" style="border:1px solid red;"><tbody><tr></tr></tbody></table><div id=listeleven style=display:none;>' + document.getElementById('listeleven').innerHTML + '</div><div id=postlist style=display:none;></div>';
} else {
docbod='<h' + oneis + ' id=myh1 title="Double click for YouTube search" ondblclick="location.href=document.URL.split(String.fromCharCode(35))[0].split(String.fromCharCode(63))[0];">YouTube API - RJM Programming - September, 2016 <a target=_blank title="Search again" href="' + document.URL.replace('ht' + 'tp:','ht' + 'tps:').split('?')[0].split('#')[0] + '">...</a> <font size=1>selected from</font> "' + document.getElementById('youtubeid').value.trim() + '" <font size=1>below</font> ' + selbod + '</h' + oneis + '><table id="myvtable" style="border:1px solid red;"><tbody><tr></tr></tbody></table><div id=listeleven style=display:none;>' + document.getElementById('listeleven').innerHTML + '</div>';
}
}
selbod=selbod.replace('</select>', '<option value="td' + docbodi + '">' + sin.options[i].text.split('(0')[0].split('(1')[0].split('(2')[0].split('(3')[0].split('(4')[0].split('(5')[0].split('(6')[0].split('(7')[0].split('(8')[0].split('(9')[0] + '</option></select>');
docbod=docbod.replace(/\<\/select\>/g, '<option value="td' + docbodi + '">' + sin.options[i].text.split('(0')[0].split('(1')[0].split('(2')[0].split('(3')[0].split('(4')[0].split('(5')[0].split('(6')[0].split('(7')[0].split('(8')[0].split('(9')[0] + '</option></select>');
document.getElementById('myh1').innerHTML=sin.options[i].text.replace(/\[/g,'(').replace(/\]/g,')').replace(/junk\~junk/g,'junk|junk').split('(0')[0].split('(1')[0].split('(2')[0].split('(3')[0].split('(4')[0].split('(5')[0].split('(6')[0].split('(7')[0].split('(8')[0].split('(9')[0];
xrect=document.getElementById('myh1').getBoundingClientRect();
if (pgive) {
//alert(1);
docbod=docbod.replace('</tr>', '<td id="td' + docbodi + '"><iframe id=iftd' + docbodi + ' title="' + eval(0 * xrect.height) + '" onload="ifmyh1(this,' + eval(-1 + docbodi) + ');" style="width:700px;height:85vh;" src="' + utemplate.replace('c0=on','c0=' + czis).replace('SuJFdLxisPs',sin.options[i].value).replace(/575\.621/g,'' + aotdur) + '&fixedh1h=y"></iframe>' + selbod.replace("(this.value);","('" + docbodi + "');").replace('...</option>','...</option><option value=" ">... ... Move this video over to left</option>').replace('<select ','<select id=seltd' + docbodi + ' ') + '</td></tr>');
if (sgive && !pgive) {
czis='off&tdd=' + eval(1 + eval('' + docbodi)) + '&ezj=' + ('' + cumd).split('.')[0];
} else if (!pgive) {
czis='off&tdd=' + eval(1 + eval('' + docbodi)) + '&ezj=1';
}
} else {
if (document.getElementById('listeleven').innerHTML == '') {
document.getElementById('listeleven').innerHTML=sin.options[i].value + '## ' + sin.options[i].text;
} else {
document.getElementById('listeleven').innerHTML+='^' + sin.options[i].value + '## ' + sin.options[i].text;
}
if (sgive && !pgive) {
//alert(11);
if (docbod.indexOf(' </summary>') != -1) { docbod=docbod.replace(' </summary>', ' <font size=1>(then ' + sin.options[i].text + ')</font></summary>'); }
docbod=docbod.replace('</tr>', '<td id="td' + docbodi + '">' + bitatstart.replace('></summary>', ' id=sm' + docbodi + '>' + sin.options[i].text + ' </summary>').replace('<details ', '<details id=dt' + docbodi + ' ') + '<iframe title="' + eval(0 * xrect.height) + '" onload="ifmyh1(this,' + eval(-1 + docbodi) + ');" style="width:700px;height:85vh;" src="' + utemplate.replace('c0=on','c0=' + czis).replace('c0=on','c0=' + czis).replace('SuJFdLxisPs',sin.options[i].value).replace(/575\.621/g,'' + aotdur) + '&fixedh1h=y"></iframe>' + selbod.replace("(this.value);","('" + docbodi + "');").replace('...</option>','...</option><option value=" ">... ... Move this video over to left</option>') + ('</td>' + bitatend).replace('</td></d', '</d') + '</tr>');
czis='off&tdd=' + eval(1 + eval('' + docbodi)) + '&ezj=' + ('' + cumd).split('.')[0];
} else if (!pgive) {
if (docbod.indexOf(' </summary>') != -1) { docbod=docbod.replace(' </summary>', ' <font size=1>(then ' + sin.options[i].text + ')</font></summary>'); }
docbod=docbod.replace('</tr>', '<td id="td' + docbodi + '">' + bitatstart.replace('></summary>', ' id=sm' + docbodi + '>' + sin.options[i].text + ' </summary>').replace('<details ', '<details id=dt' + docbodi + ' ') + '<iframe title="' + eval(0 * xrect.height) + '" onload="ifmyh1(this,' + eval(-1 + docbodi) + ');" style="width:700px;height:85vh;" src="' + utemplate.replace('c0=on','c0=' + czis).replace('c0=on','c0=' + czis).replace('SuJFdLxisPs',sin.options[i].value).replace(/575\.621/g,'' + aotdur) + '&fixedh1h=y"></iframe>' + selbod.replace("(this.value);","('" + docbodi + "');").replace('...</option>','...</option><option value=" ">... ... Move this video over to left</option>') + ('</td>' + bitatend).replace('</td></d', '</d') + '</tr>');
czis='off&tdd=' + eval(1 + eval('' + docbodi)) + '&ezj=1';
//alert(111);
} else {
//alert(1111);
if (docbod.indexOf(' </summary>') != -1) { docbod=docbod.replace(' </summary>', ' <font size=1>(then ' + sin.options[i].text + ')</font></summary>'); }
docbod=docbod.replace('</tr>', '<td id="td' + docbodi + '">' + bitatstart.replace('></summary>', ' id=sm' + docbodi + '>' + sin.options[i].text + ' </summary>').replace('<details ', '<details id=dt' + docbodi + ' ') + '<iframe title="' + eval(0 * xrect.height) + '" onload="ifmyh1(this,' + eval(-1 + docbodi) + ');" style="width:700px;height:85vh;" src="' + utemplate.replace('c0=on','c0=' + czis).replace('c0=on','c0=' + czis).replace('SuJFdLxisPs',sin.options[i].value).replace(/575\.621/g,'' + aotdur) + '&fixedh1h=y"></iframe>' + selbod.replace("(this.value);","('" + docbodi + "');").replace('...</option>','...</option><option value=" ">... ... Move this video over to left</option>') + ('</td>' + bitatend).replace('</td></d', '</d') + '</tr>');
}
}
docbodi++;
if (bitatstart.indexOf(' open') != -1) {
bitatstart=bitatstart.replace(' open', '');
} else if (bitatstart == '') {
bitatstart='';
bitatend='';
}
}
thisonetodo=0;
if (onestodo.length <= 1) {
if (onestodo.length == 1) {
onestodoprefix='&andthen=';
onestodosuffix=onestododur[0] + ";" + sin.options[i].value + "," + aotdur;
console.log('yes more than one');
}
} else {
onestodosuffix+=";" + sin.options[i].value + "," + aotdur;
}
onestodo.push(sin.options[i].value);
onestododur.push(aotdur);
//alert('Expected duration for ' + sin.options[i].value + ' (' + eval(i + 1) + ') is ' + aotdur + ' seconds');
}
}
}
}
if (docbod.indexOf('details') != -1) {
lastdet='dt1';
}
//docbod=docbod.replace(/details\>\<\\td\>\<td/g, 'details></td></TR>').replace('</TR></tr>', '</tr>').replace('<div id=listeleven style=display:none;>' + '' + '</div>', '<div id=listeleven style=display:none;>' + document.getElementById('listeleven').innerHTML + '</div>');
docbod=docbod.replace(/details\>\<\\td\>\<td/g, 'details></td></TR>').replace('</TR></tr>', '</tr>').replace('<div id=listeleven style=display:none;></div>', '<div id=listeleven style=display:none; title="' + document.getElementById('listeleven').innerHTML + '" data-title=' + csajaxs + '>' + document.getElementById('listeleven').innerHTML + '</div>' + extrascript);
bigdocbod=docbod;
if (!secok) { return ''; }
if (onestodo.length > 0) {
if (onestodo.length > 1) {
if (prevonestodosuffix == "") {
document.getElementById('myformdiv').innerHTML="<input type=hidden name=andthen value='" + onestodosuffix + "'></input>";
}
//top.document.title+=" ; " + onestodosuffix;
}
nextv();
}
if (docbod != '') {
retval='';
document.title="Top Look";
if (pgive) {
//docbod+=String.fromCharCode(10) + "<scr" + "ipt type='text/javascript'> " + String.fromCharCode(10);
//docbod+= "function aut() { var ifsa=document.getElementsByTagName('iframe'); for (var iaut=0; iaut<ifsa.length; iaut++) { ifsa[iaut].style.position='absolute'; ifsa[iaut].style.opacity='0.5'; ifsa[iaut].style.top='100px'; ifsa[iaut].style.left='0px'; } } " + String.fromCharCode(10) + " setTimeout(aut, 2000); " + String.fromCharCode(10);
//docbod+="</scr" + "ipt> " + String.fromCharCode(10);
docbod=docbod.replace('ifmyh1(', ' setTimeout(aut,2000); ifmyh1(');
docbod=docbod.replace('<select ', '<select id=topselbod ');
}
//alert(0);
//myvtableoh=docbod; //.replace(' - ', ' <a title=Restart style="cursor:pointer;text-decoration:underline;" onclick="parent.document.body.innerHTML=parent.document.getBod();">-</a> ');
//alert((csajaxs + ' ').substring(0,1));
if ((csajaxs + ' ').substring(0,1) == 'X') {
setTimeout(ebutnc, eval(eval(5 + eval('' + cumd)) * 1000)); //alert('cumd=' + cumd);
}
if ((csajaxs + ' ').substring(0,1) == 'X' && 1 == 2) {
//alert('here');
bigo=window.open(document.URL.split('?')[0].split('#')[0], '_blank', 'top=0,left=0,width=' + screen.width + ',height=' + screen.height);
bigo.document.write(docbod);
} else {
document.body.innerHTML=docbod; //myvtableoh;
}
//alert(document.getElementById('bigscript').outerHTML);
//myvtableoh=''; //encodeURIComponent(myvtableoh); // + document.getElementById('bigscript').outerHTML);
}
bitatstart=origbitatstart;
return retval;
}
function preebutnc() {
validst=true;
}
function ebutnc() {
if (validst) {
if (document.getElementById('listeleven') && document.getElementById('ebutn')) {
if (document.getElementById('listeleven').innerHTML.replace(' ',' ').trim() == document.getElementById('listeleven').title) {
document.getElementById('ebutn').click();
} else if ((document.getElementById('listeleven').innerHTML.replace(' ',' ') + 'x').substring(0,1) != ' ') {
document.getElementById('ebutn').click();
}
}
}
validst=true;
}
function postBod() {
if (itt(czzyes) != '') { document.body.style.cursor='progress'; setTimeout(cejy, eval(eval(itt(czzyes)) * 1000)); } if (ourvids.length > 1) { helpoutparent(); } if (document.URL.indexOf('minimize=') != -1) { document.getElementById('dstyle').innerHTML='<style> * { overflow: hidden !important; } </style>'; } preselc='<br><div id=dajaxs style=display:inline;vertical-align:top;><span id=spanner>>1x</span> <input onchange=putmorethanone(this.checked); type=checkbox id=cajaxs' + courmto + '></input></div>'; if (document.URL.indexOf('nokaraoke=') != -1 || (top.document.title.indexOf('Country ') == 0 && top.document.title.indexOf(' Quiz') != -1) || top.document.title.indexOf('The Other Side of the World') == 0 || top.document.title.indexOf('(at least on Google Chrome)') != -1 || top.document.title.indexOf('Nostalgia ') == 0 || top.document.title.indexOf('Using ') == 0 || (top.document.title.indexOf('Dams ') == 0 && top.document.title.indexOf(' United States') != -1) || (top.document.title.indexOf('Health ') == 0 && top.document.title.indexOf(' Meaning') != -1) || (top.document.title.indexOf('Australian ') == 0) || (top.document.title.indexOf('Indigenous ') == 0 && top.document.title.indexOf(' Australia') != -1) || top.document.URL.indexOf('rjmprogramming.com.au/wordpress') != -1 || top.document.URL.indexOf('rjmprogramming.com.au/ITblog') != -1) { document.getElementById('myh1').innerHTML=document.getElementById('myh1').innerHTML.replace('Karaoke via ',ourvid + ' Video Lookup via '); } zeroplay=ourvid.replace('%20',' ').indexOf(' '); if (document.URL.indexOf('?random=') != -1) { playrandom(); } else { checkemailbits(); document.getElementById('urlbig').value=document.URL; document.getElementById('emailform').action=document.getElementById('emailer').src; if (doemoji != 'on') { document.getElementById('emoji').checked=false; } if (ourrec != 'off') { document.getElementById('recown').checked=true; dorecord=true; } if (ourvid == '') { ourvid=(location.search.split('youtubeid=')[1] ? decodeURIComponent(location.search.split('youtubeid=')[1].split('&')[0]).replace(/\+/g,' ') : ''); } if (ourvid != '') { document.getElementById('youtubeid').value=ourvid; findduration(null,ourvid); } }
}
function particularrestart(jtop, jvid) {
var topifs=top.document.getElementsByTagName('iframe');
for (var itop=0; itop<topifs.length; itop++) {
if (eval('' + jtop) < 0 && topifs[itop].src.indexOf('=' + encodeURIComponent(jvid) + '&') != -1) {
topifs[itop].src=topifs[itop].src.split('&rnd=')[0] + '&rnd=' + itop + '' + Math.floor(Math.random() * 1237654567);
} else if (eval('' + itop) == eval('' + jtop