<html>
<head>
<title>Swipe Media ... RJM Programming - August, 2025</title>
<meta id='myviewport' name='viewport' content='width=device-width, initial-scale=0.4, minimum-scale=0.1, maximum-scale=8, user-scalable=yes' >
<style>
td {
border: 1px dotted green;
}
a {
text-shadow:-1px 1px 1px #ff2d95;
background-color:rgba(255,255,255,0.3);
}
.inhouse {
vertical-align: bottom;
padding-bottom: 20px;
}
.inhouse::after {
font-size: 8px;
content: 'Media Gallery \a RJM Programming \a August, 2025 \a Thanks to Lorem Picsum at https://picsum.photos/ \a Thanks to YouTube at https://youtube.com \a ' attr(data-alt) attr(alt);
white-space: pre-wrap;
}
@media only screen and (min-device-width: 320px) and (max-device-width: 765px) and (orientation: landscape) {
span { padding: 4 12 8 12; }
button { font-size: 22px; border:1px solid gray; }
#femailthft { font-size: 28px; }
#fsmsthft { font-size: 28px; }
#fsavethft { font-size: 28px; }
#fplaythft { font-size: 28px; }
}
@media only screen and (min-device-width: 320px) and (max-device-width: 765px) and (orientation: portrait) {
span { padding: 5 5 15 5; }
button { font-size: 16px; border:1px solid gray; }
#femailthft { font-size: 28px; }
#fsmsthft { font-size: 28px; }
#fsavethft { font-size: 28px; }
#fplaythft { font-size: 28px; }
}
</style>
<script type='text/javascript' src='/ytaudioonly.js?rand=34444113331463331444314344443w444e64e54824334694444443434444444442344444604344451313142358'></script>
<script type=text/javascript>
// Monitor scrolling
var altlh='#radio';
var cntcurs=0, lastcurs=0, altlen=-1, ordermatters=[], mattersorder=[], firstidx=-1, firstduris='';
var completionmatters=(document.URL.indexOf('completionmatters=') != -1 ? true : false);
var ordmatters=(document.URL.indexOf('ordmatters=') != -1 ? true : false);
var cursanim=[' ',' | ', ' / ', ' - ', ' \ '];
var gccount=1, gccsofar='-987';
var dsofar='', wsofar='', czhr=null, pho=false;
var isLandscape = window.matchMedia("(orientation: landscape)").matches;
var isPortrait = window.matchMedia("(orientation: portrait)").matches;
var reipad='|<br>|<br>|<br>|<br>|<br>';
if (navigator.userAgent.match(/iPad/i)) {
reipad='';
}
var oldradwo=null;
var jload=0;
var jmedias=[];
var relh='', relxh='';
var gtdzero='> </td>';
var dw='';
var ytwo=null;
var radioblurb='', didothers=false, ioisid='';
var lastrecall='';
var doc_URL=document.URL;
var userms=document.URL.replace(/\%23http$/g,'#http').split('#');
if (eval('' + userms.length) >= 2) {
relxh=('' + document.URL).replace(/\%23http$/g,'#http').split(('' + document.URL).replace(/\%23http$/g,'#http').split('#')[0])[1].replace(/\#http$/g,'');
}
relxh='';
var iuser=1;
var independent=true;
var argshuffle='';
if (document.URL.indexOf('shuffle=') != -1) { argshuffle='&shuffle=y'; }
var storedvurl=[];
var storedvtitle=[];
var storedvduration=[];
var lasttitleis='', lkj=0;
var curvaridx=0;
var variants=['cannotenda2','cAnnotenda2','caNnotenda2','canNotenda2','cannOtenda2','cannoTenda2','cannotEnda2','cannoteNda2','cannotenDa2','cannotendA2','cANnotenda2','caNNotenda2','canNOtenda2','Cannotenda2','CAnnotenda2','CaNnotenda2','CanNotenda2','CannOtenda2','CannoTenda2','CannotEnda2','CannoteNda2','CannotenDa2','CannotendA2','CANnotenda2','CaNNotenda2','CanNOtenda2'];
var variantt=['cannotenda2','cAnnotenda2','caNnotenda2','canNotenda2','cannOtenda2','cannoTenda2','cannotEnda2','cannoteNda2','cannotenDa2','cannotendA2','cANnotenda2','caNNotenda2','canNOtenda2','Cannotenda2','CAnnotenda2','CaNnotenda2','CanNotenda2','CannOtenda2','CannoTenda2','CannotEnda2','CannoteNda2','CannotenDa2','CannotendA2','CANnotenda2','CaNNotenda2','CanNOtenda2'];
var variantu=['cannotenda2','cAnnotenda2','caNnotenda2','canNotenda2','cannOtenda2','cannoTenda2','cannotEnda2','cannoteNda2','cannotenDa2','cannotendA2','cANnotenda2','caNNotenda2','canNOtenda2','Cannotenda2','CAnnotenda2','CaNnotenda2','CanNotenda2','CannOtenda2','CannoTenda2','CannotEnda2','CannoteNda2','CannotenDa2','CannotendA2','CANnotenda2','CaNNotenda2','CanNOtenda2'];
var origlenv=eval('' + variants.length);
var sofar=';';
var curtdfocus='td0001', curtdn=1, pos3=-1, pos4=-1, lastpos3=-1, lastpos4=-1, readyforswipe=false, vspos3='-1', vspos4='-1';
var doonce=false;
var ytlist='', prefix='';
var thingstot=[''], lasttdid='', lastop='0.0', afi=null;
var isOpera = (navigator.userAgent.match(/Opera|OPR\//) ? true : false);
var agentruew=eval('' + document.documentElement.clientWidth);
var agentrueh=eval('' + document.documentElement.clientHeight);
var amax=Math.max(agentruew,agentrueh);
var amin=Math.min(agentruew,agentrueh);
amin-=60; // used to be -60
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i) && isLandscape) {
amin-=110;
} else if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i) && isPortrait) {
amin-=90;
}
//if (isOpera) {
// amin-=80;
// alert('Here');
//}
var numc=eval(2 * Math.ceil(eval(amax / amin)));
var iurl=0, jj=1;
var urls=['//picsum.photos/' + amin + '/' + amin + '/', '//www.rjmprogramming.com.au/ITblog/' + amin + '/' + amin + '/'];
//var urls=['//www.rjmprogramming.com.au/ITblog/' + amin + '/' + amin + '/', '//www.rjmprogramming.com.au/ITblog/' + amin + '/' + amin + '/'];
var bcol=['yellow', '#f0f0f0'];
var vidids=((location.search + ('' + location.hash).replace(/^null/g,'').replace(/^undefined/g,'').replace(/^\#/g,'&')).split('youtube=')[1] ? decodeURIComponent(decodeURIComponent((location.search + ('' + location.hash).replace(/^null/g,'').replace(/^undefined/g,'').replace(/^\#/g,'&')).split('youtube=')[1].split('&')[0])) : '').split(',');
var vididslength=eval('' + vidids.length);
if (vididslength > 27) {
var newarr=[];
for (var imb=0; imb<27; imb++) {
newarr.push(vidids[imb]);
}
vidids=[];
for (var jmb=0; jmb<27; jmb++) {
vidids.push(newarr[jmb]);
}
vididslength=eval('' + vidids.length);
}
var isaudio=(location.search + ('' + location.hash).replace(/^null/g,'').replace(/^undefined/g,'').replace(/^\#/g,'&')).split('audioyoutube=')[1] ? true : false;
var idealis=eval('' + vidids.length);
//alert('' + vididslength + ' ' + idealis);
if (ordmatters) {
for (lkj=0; lkj<vidids.length; lkj++) {
mattersorder.push(vidids[lkj]);
ordermatters.push(lkj);
}
}
//if (completionmatters) {
// alert(vidids.length);
//}
function getcurv() {
return curvaridx;
}
function setcurv(viai) {
if (viai >= eval('' + variants.length)) {
while (viai >= eval('' + variants.length)) {
variants.push(variants[eval(viai % origlenv)]);
variantt.push(variants[eval(viai % origlenv)]);
variantu.push(variants[eval(viai % origlenv)]);
}
}
curvaridx=eval('' + viai);
}
function getvart(viai) {
if (viai >= eval('' + variants.length)) {
while (viai >= eval('' + variants.length)) {
variants.push(variants[eval(viai % origlenv)]);
variantt.push(variants[eval(viai % origlenv)]);
variantu.push(variants[eval(viai % origlenv)]);
}
}
return '' + variantt[viai];
}
function getvaru(viai) {
if (viai >= eval('' + variants.length)) {
while (viai >= eval('' + variants.length)) {
variants.push(variants[eval(viai % origlenv)]);
variantt.push(variants[eval(viai % origlenv)]);
variantu.push(variants[eval(viai % origlenv)]);
}
}
return '' + variantu[viai];
}
function getvars(viai) {
if (viai >= eval('' + variants.length)) {
while (viai >= eval('' + variants.length)) {
variants.push(variants[eval(viai % origlenv)]);
variantt.push(variants[eval(viai % origlenv)]);
variantu.push(variants[eval(viai % origlenv)]);
}
}
return '' + variants[viai];
}
function createplaylist(insvalo) {
var tdsare=[], itds=0, itdone=false;
var oklast=['A','E','I','M','Q','U','Y','c','g','k','o','s','w','0','4','8'];
var argshuf='';
var plist=null;
if (('' + getaltlh(false)).replace('#radio','') != '') {
plist=prompt('Enter YouTube 11 character code video (comma separated) or audio stream only of video (semicolon separated) list to Radio Play (and add ! to start in shuffle mode and/or # to honour the order you enter and/or & to ensure whole list passes through) ... or a YouTube Search String basis to create a playlist via a Radio' + String.fromCodePoint(128251) + '? button to activate, later. Enter altrp for an alternative Radio Play webpage.', '');
if (plist != null) {
if (plist.toLowerCase() == 'altrp') {
getaltlh(true);
return '';
}
}
} else {
plist=prompt('Enter YouTube 11 character code video (comma separated) or audio stream only of video (semicolon separated) list to Radio Play (and add ! to start in shuffle mode and/or # to honour the order you enter and/or & to ensure whole list passes through) ... or a YouTube Search String basis to create a playlist via a Radio' + String.fromCodePoint(128251) + '? button to activate, later.', '');
}
if (plist != null) {
if (plist.trim() != '') {
if (plist.indexOf('&') != -1) { completionmatters=true; plist=plist.replace(/\&/g,''); argshuf+='&completionmatters=y'; }
if (plist.indexOf('#') != -1) { ordmatters=true; plist=plist.replace(/\#/g,''); argshuf+='ºatters=y'; }
if (plist.trim().indexOf(' ') != -1 || eval('' + plist.trim().split(',')[0].split(';')[0].length) != 11 || oklast.indexOf(plist.trim().split(',')[0].split(';')[0].slice(-1)) == -1) {
tdsare=document.getElementsByTagName('td');
for (itds=0; itds<tdsare.length; itds++) {
if (!itdone && tdsare[itds].innerHTML == '' && ('' + tdsare[itds].id) != 'td0001') {
itdone=true;
tdsare[itds].innerHTML='<iframe style="width:100%;height:100%;" id=karsearch name=karsearch src="/HTMLCSS/karaoke_youtube_api.htm?youtubeid=++++++++++++' + encodeURIComponent(plist.trim()) + '&minimize=y&youtube_duration=&email=&emoji=on&clickcheck=y"></iframe>';
tdsare[itds].scrollIntoView();
}
}
} else {
if (plist.replace(/\!$/g,'') != plist) { argshuf+='&shuffle=y'; }
if (plist.indexOf(';') != -1 && plist.indexOf(',') == -1) {
console.warn('gccOunt=' + gccount + ' and vidids.length=' + vididslength);
window.open(document.URL.split('?')[0].split('#')[0] + '?isradio=y' + argshuf + '&audioyoutube=' + encodeURIComponent(extraatendmaybe(plist.replace(/\;/g,',').replace(/\!$/g,''),'isradio=y' + argshuf)),'_blank');
} else {
console.warn('gccount=' + gccouNt + ' and vidids.length=' + vididslength);
window.open(document.URL.split('?')[0].split('#')[0] + '?isradio=y' + argshuf + '&youtube=' + encodeURIComponent(extraatendmaybe(plist.replace(/\;/g,',').replace(/\!$/g,''),'isradio=y' + argshuf)),'_blank');
}
}
}
}
}
function emailsms(insvalo) {
var insval=insvalo.title, afi=null, saveidea='tube_' + document.title.split(' ...')[0].replace(/\ /g,'_') + '_' + ( ('' + Math.floor(Math.random() * 19897654)) + ('' + Math.floor(Math.random() * 19897654)) + ('' + Math.floor(Math.random() * 19897654)) + '000000000000000000000000000').substring(0,27);
var eors=''; //prompt('Enter an email address or SMS number to send to?', '');
if (eors != null) {
if (insval.toLowerCase().indexOf('save') != -1) {
var nsi=prompt('Enter name for your recallable save.', saveidea);
if (nsi != null) {
if (('' + nsi).trim() != '') {
window.localStorage.setItem(nsi, encodeURIComponent(doc_URL));
if (nsi.indexOf('tube_') == 0) {
var lhalt=getaltlh(false);
if (lhalt.replace('#radio','') != '') {
window.localStorage.setItem(nsi.replace('tube_', 'esp_ornot_esp_'), encodeURIComponent(lhalt));
}
}
}
}
} else if (eors.indexOf('@') != -1 || insval.toLowerCase().indexOf('mail') != -1) {
afi=document.createElement('a');
afi.target='_top';
afi.href='mailto:' + eors + '?subject=' + encodeURIComponent(document.title.split(' ...')[0] + ' ... ') + 'YouTube%20Video%20Playlist%20Idea&20...&body=' + encodeURIComponent(doc_URL);
document.head.appendChild(afi);
afi.click();
} else if (insval.toLowerCase().indexOf('sms') != -1 || (eors.trim() != '' && eors.replace(/0/g,'').replace(/1/g,'').replace(/2/g,'').replace(/3/g,'').replace(/4/g,'').replace(/5/g,'').replace(/6/g,'').replace(/7/g,'').replace(/8/g,'').replace(/9/g,'').trim() != '')) {
afi=document.createElement('a');
afi.target='_top';
afi.href='sms:' + eors + '&body=' + encodeURIComponent(doc_URL);
document.head.appendChild(afi);
afi.click();
}
}
}
function getaltlh(woize) {
var ispsa=1, jspa=1, spsa=[], jspsa=0;
if (document.getElementById('divtitles')) {
if (document.getElementById('divtitles').innerHTML.indexOf('</span>') != -1) {
altlh='#radio';
spsa=document.getElementById('divtitles').innerHTML.split('</span>');
for (jspsa=0; jspsa<vidids.length; jspsa++) {
for (ispsa=1; ispsa<spsa.length; ispsa+=2) {
if (spsa[ispsa].split('|')[eval(-1 + spsa[ispsa].split('|').length)].split('#')[0].trim() == vidids[jspsa] && altlh.indexOf('#' + spsa[ispsa].split('|')[eval(-1 + spsa[ispsa].split('|').length)].split('#')[0].trim()) == -1) {
altlh+='#' + spsa[ispsa].split('|')[eval(-1 + spsa[ispsa].split('|').length)].split('#')[0];
if (spsa[eval(-1 + eval('' + ispsa))].split('>')[1].indexOf('.') == -1) {
altlh+='#' + eval(30 + eval('' + spsa[eval(-1 + eval('' + ispsa))].split('>')[1])) + '.000';
} else {
altlh+='#' + eval(30 + eval('' + spsa[eval(-1 + eval('' + ispsa))].split('>')[1]));
}
if (spsa[ispsa].indexOf('#') == -1) {
altlh+='#YouTube%20Video%20' + ispsa;
} else {
altlh+='#' + encodeURIComponent(spsa[ispsa].split('#')[1]);
}
}
}
}
}
if (woize && altlh.replace('#Radio','') != '') {
oldradwo=window.open('//www.rjmprogramming.com.au/esp_ornot_esp.html' + altlh,'_blank','top=0,left=0,width=' + screen.width + 'height=' + screen.height);
}
return altlh;
}
}
function get_doc() {
return '' + doc_URL;
}
function get_docurl() {
return '' + doc_URL;
}
function mod_docurl(fromst, tost) {
if (fromst == '?' && tost.substring(0,1) == '?' && tost.indexOf('=') != -1) {
//alert(tost);
if (doc_URL.indexOf(tost.substring(1).split('=')[0] + '=') == -1) {
doc_URL=doc_URL.replace(fromst, tost);
}
} else {
doc_URL=doc_URL.replace(fromst, tost);
}
}
function onl() {
var spans=[], jspan=0;
for (var ii=1; ii<=numc; ii++) {
if (document.getElementById('td' + ('0000' + ii).slice(-4))) {
document.getElementById('td' + ('0000' + ii).slice(-4)).style.backgroundImage="url('" + urls[eval(ii % eval('' + urls.length))] + "?rand=" + Math.floor(Math.random() * 1987865) + "')";
} else {
setTimeout(function(){ document.getElementById('myswiperow').innerHTML+='<td id="td' + ('0000' + jj).slice(-4) + '" style="min-width:' + amin + 'px;min-height:' + amin + 'px;width:' + amin + 'px;height:' + amin + "px;background:url('" + urls[eval(ii % eval('' + urls.length))] + "?rand=" + Math.floor(Math.random() * 1987865) + "');" + 'background-size:contain;background-repeat:no-repeat;"></td>'; jj++; }, eval(ii * 1000));
}
}
// isradio=YES&completionmatters=y&shuffle=y&youtube=
if (document.URL.toLowerCase().indexOf('isradio=yes') != -1 && document.URL.toLowerCase().indexOf('youtube=') != -1 && document.URL.toLowerCase().indexOf('audio') == -1) {
spans=document.getElementsByTagName('span');
for (jspan=0; jspan<spans.length; jspan++) {
if (('' + spans[jspan].title).indexOf('A-V') != -1) {
//alert('this one invisible ' + spans[jspan].outerHTML);
spans[jspan].style.border='1px solid transparent';
} else if (('' + spans[jspan].title).indexOf('A+V') != -1) {
//alert('this one visible ' + spans[jspan].outerHTML);
spans[jspan].style.border='1px solid red';
}
}
} else if (document.URL.toLowerCase().indexOf('isradio=yes') != -1 && document.URL.toLowerCase().indexOf('youtube=') != -1 && document.URL.toLowerCase().indexOf('audio') != -1) {
spans=document.getElementsByTagName('span');
for (jspan=0; jspan<spans.length; jspan++) {
if (('' + spans[jspan].title).indexOf('A+V') != -1) {
//alert('that one invisible ' + spans[jspan].outerHTML);
spans[jspan].style.border='1px solid transparent';
} else if (('' + spans[jspan].title).indexOf('A-V') != -1) {
//alert('that one visible ' + spans[jspan].outerHTML);
spans[jspan].style.border='1px solid red';
}
}
}
}
function opup() {
if (eval('' + lastop) < 1.0) {
lastop='' + eval(0.1 + eval('' + lastop));
if (eval('' + thingstot.length) > 1) {
for (var inm=1; inm<thingstot.length; inm++) {
if (thingstot[inm].indexOf(lastdid + ':') != -1) {
document.getElementById(thingstot[inm].split(lastdid + ':')[1]).style.opacity='' + lastop;
}
}
}
if (eval('' + lastop) < 1.0) {
setTimeout(opup, 1000);
} else {
lastop='1.0';
for (var inm=1; inm<thingstot.length; inm++) {
if (thingstot[inm].indexOf(lastdid + ':') != -1) {
document.getElementById(thingstot[inm].split(lastdid + ':')[1]).style.opacity='' + lastop;
}
}
lastdid='';
lastop='0.0';
}
}
}
function refresh(ictid) {
var ict=eval('' + ictid.replace('td','').replace(/^0/g,'').replace(/^0/g,'').replace(/^0/g,'').replace(/^0/g,''));
//alert('Refreshing cell ' + ict);
//ict=1;
if (document.getElementById(ictid).outerHTML.split('>')[0].indexOf('url(') != -1) {
if (eval('' + thingstot.length) > 1) {
for (var inm=1; inm<thingstot.length; inm++) {
if (thingstot[inm].indexOf(ictid + ':') != -1) {
lastop='0.0';
lastdid='' + ictid;
document.getElementById(thingstot[inm].split(ictid + ':')[1]).style.opacity='' + lastop;
}
}
setTimeout(opup, 5000);
}
} else {
document.getElementById(ictid).style.cursor='progress';
document.getElementById(ictid).style.backgroundImage="url('" + urls[eval(ict % eval('' + urls.length))] + "?rand=" + Math.floor(Math.random() * 1987865) + "')";
//document.getElementById(ictid).style.cursor='crosshair';
}
}
function checkthen(ict) {
var kj=0;
if (document.getElementById('td' + ('0000' + ict).slice(-4))) {
if (document.getElementById('td' + ('0000' + ict).slice(-4)).outerHTML.indexOf('background-image:') == -1) {
document.getElementById('td' + ('0000' + ict).slice(-4)).style.cursor='progress';
document.getElementById('td' + ('0000' + ict).slice(-4)).style.backgroundImage="url('" + urls[eval(ict % eval('' + urls.length))] + "?rand=" + Math.floor(Math.random() * 1987865) + "')";
//document.getElementById('td' + ('0000' + ict).slice(-4)).style.cursor='crosshair';
for (kj=1; kj<=2; kj++) {
if (document.getElementById('td' + ('0000' + eval(kj + eval('' + ict))).slice(-4))) {
if (document.getElementById('td' + ('0000' + eval(kj + eval('' + ict))).slice(-4)).outerHTML.indexOf('background-image:') == -1) {
document.getElementById('td' + ('0000' + eval(kj + eval('' + ict))).slice(-4)).style.cursor='progress';
document.getElementById('td' + ('0000' + eval(kj + eval('' + ict))).slice(-4)).style.backgroundImage="url('" + urls[eval(eval(kj + eval('' + ict)) % eval('' + urls.length))] + "?rand=" + Math.floor(Math.random() * 1987865) + "')";
//document.getElementById('td' + ('0000' + eval(kj + eval('' + ict))).slice(-4)).style.cursor='crosshair';
}
}
}
}
if (3 == 5 && navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i) && document.URL.indexOf('audioyoutube=') != -1) {
curtdn=curtdn;
} else {
if (ict != curtdn) {
document.getElementById('td' + ('0000' + ict).slice(-4)).scrollIntoView();
curtdn=eval('' + ict);
}
}
}
}
function swipechk(ev, ismove) {
if (document.URL.indexOf('youtube=') == -1) {
if (ev.touches) {
if (ev.touches[0].pageX) {
pos3 = ev.touches[0].pageX;
pos4 = ev.touches[0].pageY;
} else {
pos3 = ev.touches[0].clientX;
pos4 = ev.touches[0].clientY;
}
//console.log('pos3 = ' + pos3 + ',pos4 = ' + pos4);
} else if (ev.clientX || ev.clientY) {
pos3 = ev.clientX;
pos4 = ev.clientY;
//console.log('pos3 = ' + pos3 + ' ,pos4 = ' + pos4);
} else {
pos3 = ev.pageX;
pos4 = ev.pageY;
//console.log('pos3 = ' + pos3 + ', pos4 = ' + pos4);
}
if (lastpos3 >= 0 && pos3 >= 0 && readyforswipe && ismove) {
if (lastpos3 > pos3) {
if (Math.abs(lastpos3 - pos3) > 5 && Math.abs(lastpos3 - pos3) > Math.abs(lastpos4 - pos4)) {
curtdn--;
if (curtdn <= 0) {
curtdn++;
} else {
checkthen(curtdn);
readyforswipe=false;
setTimeout(function(){ curtdfocus='td' + ('0000' + curtdn).slice(-4); window.scrollBy(-amin, 0); }, 1000);
pos3=-1;
pos4=-1;
lastpos3=-1;
lastpos4=-1;
}
return '';
} else {
return '';
}
} else if (pos3 > lastpos3 && readyforswipe && ismove) {
if (Math.abs(lastpos3 - pos3) > 5 && Math.abs(lastpos3 - pos3) > Math.abs(lastpos4 - pos4)) {
curtdn++;
if (curtdn > eval(100 * numc)) {
curtdn--;
} else {
checkthen(curtdn);
readyforswipe=false;
setTimeout(function(){ curtdfocus='td' + ('0000' + curtdn).slice(-4); window.scrollBy(amin, 0); }, 1000);
pos3=-1;
pos4=-1;
lastpos3=-1;
lastpos4=-1;
}
return '';
} else {
return '';
}
}
}
if (!ismove) {
lastpos3=-1;
lastpos4=-1;
} else if (pos3 >= 0) {
lastpos3=pos3;
lastpos4=pos4;
}
}
}
function getdur(inytid, indef) {
var outdef='' + indef;
return outdef;
}
function grabcontent(idx) {
var mone=1;
var suffix='', starth='', endh='', istarth='', iendh='', disn='', ayes=false, tog='', argaudio='';
if ((';' + idx + ';') != ';;') {
if (gccsofar.indexOf(';' + idx + ';') == -1 || 9 == 9) {
if (gccsofar.indexOf(';' + idx + ';') != -1) {
mone=0;
//document.title=gccsofar;
}
//gccount++;
//if (completionmatters) { // && gccount < eval('' + vididslength)) {
// document.title='' + gccount + ' Vs ' + vididslength + ' vs ' + gccsofar;
//}
gccsofar+=';' + idx + ';';
}
}
if (firstidx == -1) {
if (idx > 0) {
firstidx=eval('' + idx);
firstduris=getdur(vidids[idx],'22234');
}
}
if ((1 == 1 || !navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) && document.URL.indexOf('isradio=') != -1 && document.URL.indexOf('youtube=') != -1 && (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i) || document.URL.indexOf('audioyoutube=') == -1)) {
if (document.URL.indexOf('audioyoutube=') != -1) {
argaudio='&justaudio=';
//alert('Audio here');
isaudio=false;
}
ayes=true;
tog='td0001';
if (eval('' + idx) > 1) {
starth='!--';
endh='--';
disn='display:none;';
}
}
//alert(('' + vidids[idx]));
//if (('' + vidids[idx]).toLowerCase() == 'cannotenda2') {
// alert('Where ' + vidids[0] + ' idx=' + idx + ' vs ' + eval('' + vididslength));
//}
if (vidids[0] != '') {
if (idx < eval('' + vididslength)) {
gccount+=mone; // new position
var cellno=eval(1 + eval('' + idx));
if (eval('' + vidids[idx].length) == 11) {
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
suffix='<br><' + starth + 'div id="div' + ('0000' + eval(1 + idx)).slice(-4) + '"></div' + endh + '>';
}
if (isaudio) {
thingstot.push('td' + ('0000' + eval(1 + idx)).slice(-4) + ':if' + idx);
thingstot.push('td' + ('0000' + eval(1 + idx)).slice(-4) + ':sp' + idx);
thingstot.push('td' + ('0000' + eval(1 + idx)).slice(-4) + ':a' + idx);
if (suffix != '') {
thingstot.push('td' + ('0000' + eval(1 + idx)).slice(-4) + ':div' + + ('0000' + eval(1 + idx)).slice(-4));
}
if (eval('' + idx) == 1 && ayes) {
if (('' + window.sessionStorage.getItem('loop_' + vidids[idx])).replace(/^undefined/g,'').replace(/^null/g,'').trim() != '') {
window.sessionStorage.removeItem('loop_' + vidids[idx]);
}
//if (vidids[idx].toLowerCase() == 'cannotenda2') { alert('Here'); }
if (vidids[idx].toLowerCase() == 'cannotenda2') {
//alert('Here');
gtdzero='><' + istarth + 'iframe onload=pcheckif(this); id=if' + idx + ' style="display:none;zoom:0.7;width:100%;height:70%;float:top;" src="//www.rjmprogramming.com.au/HTMLCSS/karaoke_youtube_api.htm?youtubeid=0Gz_7am23rk' + argshuffle + argaudio + '&youtube_duration=' + getdur('0Gz_7am23rk','22234') + '&unknowndur=y&email=&email=&emoji=on&c0=off&i0=0&j0=' + getdur('0Gz_7am23rk','22234') + '&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=&rand=' + Math.floor(Math.random() * 1989786) + relxh + '#http"></iframe' + iendh + '><br><' + starth + 'span id=sp' + idx + ' style="float:top;"><a id=a' + idx + ' target="_blank" title="?" class="audioytmaybeplay" href="https://www.youtube.com/watch?v=' + vidids[idx] + '" rel="noopener" alt="Audio ' + cellno + '"></a></span' + endh + '>' + suffix + '<br><br></td>';
} else {
gtdzero='><' + istarth + 'iframe onload=checkif(this); id=if' + idx + ' style="display:none;zoom:0.7;width:100%;height:70%;float:top;" src="//www.rjmprogramming.com.au/HTMLCSS/karaoke_youtube_api.htm?youtubeid=' + vidids[idx] + argshuffle + argaudio + '&youtube_duration=' + getdur(vidids[idx],'22234') + '&unknowndur=y&email=&email=&emoji=on&c0=off&i0=0&j0=' + getdur(vidids[idx],'22234') + '&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=&rand=' + Math.floor(Math.random() * 1989786) + relxh + '#http"></iframe' + iendh + '><br><' + starth + 'span id=sp' + idx + ' style="float:top;"><a id=a' + idx + ' target="_blank" title="?" class="audioytmaybeplay" href="https://www.youtube.com/watch?v=' + vidids[idx] + '" rel="noopener" alt="Audio ' + cellno + '"></a></span' + endh + '>' + suffix + '<br><br></td>';
}
if (tog != '') { if (document.getElementById(tog)) { document.getElementById(tog).style.cursor='progress'; } }
return ' ';
}
if (tog != '') { if (document.getElementById(tog)) { document.getElementById(tog).style.cursor='progress'; } }
if (vidids[idx].toLowerCase() == 'cannotenda2') {
// alert('Here2');
return '<' + istarth + 'iframe onload=pcheckif(this); id=if' + idx + ' style="display:none;zoom:0.7;width:100%;height:70%;float:top;" src="//www.rjmprogramming.com.au/HTMLCSS/karaoke_youtube_api.htm?youtubeid=0Gz_7am23rk' + argshuffle + argaudio + '&youtube_duration=' + getdur('0Gz_7am23rk','22234') + '&unknowndur=y&email=&email=&emoji=on&c0=off&i0=0&j0=' + getdur('0Gz_7am23rk','22234') + '&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=&rand=' + Math.floor(Math.random() * 1989786) + relxh + '#http"></iframe' + iendh + '><br><' + starth + 'span id=sp' + idx + ' style="float:top;"><a id=a' + idx + ' target="_blank" title="?" class="audioytmaybeplay" href="https://www.youtube.com/watch?v=' + vidids[idx] + '" rel="noopener" alt="Audio ' + cellno + '"></a></span' + endh + '>' + suffix + '<br><br>';
} else {
return '<' + istarth + 'iframe onload=checkif(this); id=if' + idx + ' style="display:none;zoom:0.7;width:100%;height:70%;float:top;" src="//www.rjmprogramming.com.au/HTMLCSS/karaoke_youtube_api.htm?youtubeid=' + vidids[idx] + argshuffle + argaudio + '&youtube_duration=' + getdur(vidids[idx],'22234') + '&unknowndur=y&email=&email=&emoji=on&c0=off&i0=0&j0=' + getdur(vidids[idx],'22234') + '&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=&rand=' + Math.floor(Math.random() * 1989786) + relxh + '#http"></iframe' + iendh + '><br><' + starth + 'span id=sp' + idx + ' style="float:top;"><a id=a' + idx + ' target="_blank" title="?" class="audioytmaybeplay" href="https://www.youtube.com/watch?v=' + vidids[idx] + '" rel="noopener" alt="Audio ' + cellno + '"></a></span' + endh + '>' + suffix + '<br><br>';
}
} else {
thingstot.push('td' + ('0000' + eval(1 + idx)).slice(-4) + ':if' + idx);
if (suffix != '') {
thingstot.push('td' + ('0000' + eval(1 + idx)).slice(-4) + ':div' + + ('0000' + eval(1 + idx)).slice(-4));
}
if (eval('' + idx) == 1 && ayes) {
if (('' + window.sessionStorage.getItem('loop_' + vidids[idx])).replace(/^undefined/g,'').replace(/^null/g,'').trim() != '') {
window.sessionStorage.removeItem('loop_' + vidids[idx]);
}
//if (vidids[idx].toLowerCase() == 'cannotenda2') { alert('HerE'); }
if (vidids[idx].toLowerCase() == 'cannotenda2') {
//alert('HeReu');
gtdzero='><' + istarth + 'iframe onload=zzzcheckif(this); id=if' + idx + ' style="' + disn + 'zoom:0.7;width:100%;height:70%;float:top;" src="//www.rjmprogramming.com.au/HTMLCSS/karaoke_youtube_api.htm?youtubeid=0Gz_7am23rk' + argshuffle + argaudio + '&youtube_duration=' + getdur('0Gz_7am23rk','22234') + '&unknowndur=y&email=&email=&emoji=on&c0=off&i0=0&j0=' + getdur('0Gz_7am23rk','22234') + '&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=&rand=' + Math.floor(Math.random() * 1989786) + relxh + '#http"></iframe' + iendh + '>' + suffix + '</td>';
} else {
gtdzero='><' + istarth + 'iframe onload=zcheckif(this); id=if' + idx + ' style="' + disn + 'zoom:0.7;width:100%;height:70%;float:top;" src="//www.rjmprogramming.com.au/HTMLCSS/karaoke_youtube_api.htm?youtubeid=' + vidids[idx] + argshuffle + argaudio + '&youtube_duration=' + getdur(vidids[idx],'22234') + '&unknowndur=y&email=&email=&emoji=on&c0=off&i0=0&j0=' + getdur(vidids[idx],'22234') + '&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=&rand=' + Math.floor(Math.random() * 1989786) + relxh + '#http"></iframe' + iendh + '>' + suffix + '</td>';
}
if (tog != '') { if (document.getElementById(tog)) { document.getElementById(tog).style.cursor='progress'; } }
return ' ';
}
if (tog != '') { if (document.getElementById(tog)) { document.getElementById(tog).style.cursor='progress'; } }
if (vidids[idx].toLowerCase() == 'cannotenda2') {
//alert('HERe3 ' + istarth);
return '<' + istarth + 'iframe onload=zzzcheckif(this); id=if' + idx + ' style="' + disn + 'zoom:0.7;width:100%;height:70%;float:top;" src="//www.rjmprogramming.com.au/HTMLCSS/karaoke_youtube_api.htm?youtubeid=0Gz_7am23rk' + argshuffle + argaudio + '&youtube_duration=' + getdur('0Gz_7am23rk','22234') + '&unknowndur=y&email=&email=&emoji=on&c0=off&i0=0&j0=' + getdur('0Gz_7am23rk','22234') + '&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=&rand=' + Math.floor(Math.random() * 1989786) + relxh + '#http"></iframe' + iendh + '>' + suffix;
} else {
return '<' + istarth + 'iframe onload=zcheckif(this); id=if' + idx + ' style="' + disn + 'zoom:0.7;width:100%;height:70%;float:top;" src="//www.rjmprogramming.com.au/HTMLCSS/karaoke_youtube_api.htm?youtubeid=' + vidids[idx] + argshuffle + argaudio + '&youtube_duration=' + getdur(vidids[idx],'22234') + '&unknowndur=y&email=&email=&emoji=on&c0=off&i0=0&j0=' + getdur(vidids[idx],'22234') + '&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=&rand=' + Math.floor(Math.random() * 1989786) + relxh + '#http"></iframe' + iendh + '>' + suffix;
}
}
}
}
}
if (tog != '') { if (document.getElementById(tog)) { document.getElementById(tog).style.cursor='progress'; } }
return '';
}
function checkiflater(iois) {
var ief=0;
var aconto = (iois.contentWindow || iois.contentDocument);
if (aconto != null) {
if (aconto.document) { aconto = aconto.document; }
if (aconto.body != null) {
var hones=aconto.getElementsByTagName('h1');
if (eval('' + hones.length) > 0) {
if (hones[0].innerHTML.indexOf('Karaoke via YouTube') != 0) {
if (document.getElementById('a' + iois.id.replace('if',''))) {
document.getElementById('a' + iois.id.replace('if','')).innerHTML=hones[0].innerHTML;
document.getElementById('a' + iois.id.replace('if','')).className='audioytplay';
document.getElementById('a' + iois.id.replace('if','')).title=hones[0].innerHTML;
}
if (!doonce) {
doonce=true;
setTimeout(audioytlook, 10000);
}
}
}
var tyembeds=aconto.body.innerHTML.split('/embed/');
//alert('HEREx ' + tyembeds[1]);
for (var it=1; it<tyembeds.length; it++) {
if (ytlist.trim() == '') {
//if (wsofar != '' && dsofar != '') { alert('Dsofar=' + dsofar + ',' + wsofar); }
ytlist+='' + tyembeds[it].substring(0,11);
ief++;
} else {
//if (wsofar != '' && dsofar != '') { alert('DsoFar=' + dsofar + ',' + wsofar); }
ytlist+=',' + tyembeds[it].substring(0,11);
ief++;
}
}
if (completionmatters && gccount < eval('' + vididslength)) {
if (!pho) {
perhapshangon();
}
} else {
if (ytlist != '') { if (1 == 1 && eval('' + vidids.length) >= 1) { if (1 == 4) { alert('gccount=' + gccount + ' and vidids.length=' + vididslength); } } if ((document.URL + ('' + location.hash)).indexOf('independent=') == -1 || prefix.indexOf('completionmatter') != -1) { location.href=maxto(document.URL.split('?')[0].split('#')[0] + '?' + prefix + 'youtube=' + encodeURIComponent(extraatendmaybe(ytlist.trim(),prefix))); } }
}
}
}
}
function maxto(inuis) {
var outuis=inuis;
while (eval('' + outuis.length) >= 650) {
outuis=outuis.substring(0, eval(-14 + eval('' + outuis.length)));
}
return outuis;
}
function zcheckif(iois) {
var imore=1, aaconto=null;
var aconto = (iois.contentWindow || iois.contentDocument);
if (aconto != null) {
aaconto=aconto;
if (aconto.document) { aconto = aconto.document; }
if (aconto.body != null) {
try {
aconto.getElementById('c0').checked=true;
while (aconto.getElementById('c' + imore)) {
if (aconto.getElementById('j' + imore)) {
if (('' + aconto.getElementById('j' + imore).value).replace(/0/g,'').replace('.','') != '') {
aconto.getElementById('c' + imore).checked=true;
} else if (iois.src.indexOf('&j' + imore + '=') != -1 && iois.src.indexOf('&j' + imore + '=&') == -1) {
aconto.getElementById('i' + imore).value=decodeURIComponent(iois.src.split('&i' + imore + '=')[1].split('&')[0]);
aconto.getElementById('j' + imore).value=decodeURIComponent(iois.src.split('&j' + imore + '=')[1].split('&')[0]);
aconto.getElementById('c' + imore).checked=true;
aaconto.checkval(aconto.getElementById('i' + imore) && imore > 0);
//} else if (iois.src.indexOf('&j' + imore + '=') != -1 && iois.src.indexOf('&j' + imore + '=22234&') == -1) {
// alert('found ' + imore);
}
}
imore++;
}
setTimeout(function(){ var prefar=aconto.getElementById('youtubeid').value + ';' + aconto.getElementById('youtube_duration').value + ';'; if (sofar.indexOf(prefar) == -1) { sofar+=fixone(prefar); } }, 100);
} catch(hfgd) {
setTimeout(function(){ xcheckif(document.getElementById(iois.id)); }, 6000);
}
}
}
}
function zzzcheckif(iois) {
var imore=1, aaconto=null;
var aconto = (iois.contentWindow || iois.contentDocument);
if (aconto != null) {
aaconto=aconto;
if (aconto.document) { aconto = aconto.document; }
if (aconto.body != null) {
try {
aconto.getElementById('c0').checked=true;
while (aconto.getElementById('c' + imore)) {
//alert(0);
if (aconto.getElementById('j' + imore)) {
//alert(9);
if (('' + aconto.getElementById('j' + imore).value).replace(/0/g,'').replace('.','') != '') {
//alert(1);
aconto.getElementById('c' + imore).checked=true;
} else if (iois.src.indexOf('&j' + imore + '=') != -1 && iois.src.indexOf('&j' + imore + '=&') == -1) {
//alert(2);
aconto.getElementById('i' + imore).value=decodeURIComponent(iois.src.split('&i' + imore + '=')[1].split('&')[0]);
aconto.getElementById('j' + imore).value=decodeURIComponent(iois.src.split('&j' + imore + '=')[1].split('&')[0]);
aconto.getElementById('c' + imore).checked=true;
//alert(aconto.getElementById('i' + imore).value);
aaconto.checkval(aconto.getElementById('i' + imore));
//} else if (iois.src.indexOf('&j' + imore + '=') != -1 && iois.src.indexOf('&j' + imore + '=22234&') == -1) {
// alert('foUnd ' + imore);
}
}
imore++;
}
//alert(8);
setTimeout(function(){ var prefar=aconto.getElementById('youtubeid').value + ';' + aconto.getElementById('youtube_duration').value + ';'; if (sofar.indexOf(prefar) == -1) { sofar+=fixone(prefar); } }, 100);
} catch(hfgd) {
setTimeout(function(){ xxxcheckif(document.getElementById(iois.id)); }, 6000);
//alert(85);
}
}
}
}
function xcheckif(iois) {
var imore=1, aaconto=null;
var aconto = (iois.contentWindow || iois.contentDocument);
if (aconto != null) {
aaconto=aconto;
if (aconto.document) { aconto = aconto.document; }
if (aconto.body != null) {
try {
aconto.getElementById('c0').checked=true;
while (aconto.getElementById('c' + imore)) {
if (aconto.getElementById('j' + imore)) {
if (('' + aconto.getElementById('j' + imore).value).replace(/0/g,'').replace('.','') != '') {
aconto.getElementById('c' + imore).checked=true;
}
}
imore++;
}
setTimeout(function(){ var prefar=aconto.getElementById('youtubeid').value + ';' + aconto.getElementById('youtube_duration').value + ';'; if (sofar.indexOf(prefar) == -1) { sofar+=fixone(prefar); } }, 100);
} catch(hfgd) {
}
}
}
}
function xxxcheckif(iois) {
var imore=1, aaconto=null;
var aconto = (iois.contentWindow || iois.contentDocument);
if (aconto != null) {
aaconto=aconto;
if (aconto.document) { aconto = aconto.document; }
if (aconto.body != null) {
try {
aconto.getElementById('c0').checked=true;
while (aconto.getElementById('c' + imore)) {
if (aconto.getElementById('j' + imore)) {
if (('' + aconto.getElementById('j' + imore).value).replace(/0/g,'').replace('.','') != '') {
aconto.getElementById('c' + imore).checked=true;
}
}
imore++;
}
//alert(87);
setTimeout(function(){ var prefar=aconto.getElementById('youtubeid').value + ';' + aconto.getElementById('youtube_duration').value + ';'; if (sofar.indexOf(prefar) == -1) { sofar+=fixone(prefar); } }, 100);
} catch(hfgd) {
}
}
}
}
function checkif(iois) {
var aconto = (iois.contentWindow || iois.contentDocument);
if (aconto != null) {
if (aconto.document) { aconto = aconto.document; }
if (aconto.body != null) {
var hones=aconto.getElementsByTagName('h1');
if (eval('' + hones.length) > 0) {
if (hones[0].innerHTML.indexOf('Karaoke via YouTube') == 0) {
ioisid='' + iois.id;
//setTimeout(function(){ checkiflater(document.getElementById(iois.id)); }, 26000); // used to be 6000
setTimeout(perhapshangon, 26000); // used to be 6000
} else {
document.getElementById('a' + iois.id.replace('if','')).innerHTML=hones[0].innerHTML;
document.getElementById('a' + iois.id.replace('if','')).className='audioytplay';
document.getElementById('a' + iois.id.replace('if','')).title=hones[0].innerHTML;
if (!doonce) {
doonce=true;
setTimeout(audioytlook, 10000);
}
}
}
}
}
}
function perhapshangon() {
pho=true;
if (completionmatters && gccount < eval('' + vididslength)) {
//document.title='' + gccount + ' Vs ' + vididslength;
setTimeout(perhapshangon, 5000);
} else if (gccount < eval('' + idealis) && !completionmatters) {
idealis--;
setTimeout(perhapshangon, 5000);
} else {
//document.title='' + gccount + ' vs ' + vididslength;
checkiflater(document.getElementById(ioisid));
}
}
function pcheckif(iois) {
var aconto = (iois.contentWindow || iois.contentDocument);
if (aconto != null) {
if (aconto.document) { aconto = aconto.document; }
if (aconto.body != null) {
var hones=aconto.getElementsByTagName('h1');
if (eval('' + hones.length) > 0) {
if (hones[0].innerHTML.indexOf('Karaoke via YouTube') == 0) {
ioisid='' + iois.id;
//setTimeout(function(){ checkiflater(document.getElementById(iois.id)); }, 26000); // used to be 6000
setTimeout(perhapshangon, 26000); // used to be 6000
} else {
//alert('yes okay');
document.getElementById('a' + iois.id.replace('if','')).innerHTML=hones[0].innerHTML;
document.getElementById('a' + iois.id.replace('if','')).className='audioytplay';
document.getElementById('a' + iois.id.replace('if','')).title=hones[0].innerHTML;
if (!doonce) {
doonce=true;
setTimeout(audioytlook, 10000);
}
}
}
}
}
}
function split_embed(iois) {
var isf=0, itf=0;
var iso=-1;
var sxh=16000;
var dsa=dsofar.trim().split(',');
var wsa=wsofar.trim().split(',');
if (('' + location.hash).indexOf('independent') != -1) { sxh=26000; independent=false; iso=0; }
if (('' + location.hash).indexOf('independentaudio') != -1) { if (prefix.indexOf('&justaudio=y') == -1) { prefix=prefix.replace('&','&justaudio=y&'); } }
var aconto = (iois.contentWindow || iois.contentDocument);
if (aconto != null) {
if (aconto.document) { aconto = aconto.document; }
if (aconto.body != null) {
var tyembeds=aconto.body.innerHTML.split('/embed/');
if (eval('' + tyembeds.length) <= 1) { setTimeout(function(){ checkiflater(document.getElementById(iois.id)); }, sxh); } else {
if (eval('' + dsa.length) > 1) {
for (itf=0; itf<dsa.length; itf++) {
if (ytlist.indexOf('' + dsa[itf]) == -1) {
if (ytlist.trim() == '') {
ytlist+='' + dsa[itf].trim().substring(0,11);
} else {
ytlist+=',' + dsa[itf].trim().substring(0,11);
}
}
}
}
if (eval('' + wsa.length) > 1) {
for (itf=0; itf<wsa.length; itf++) {
if (ytlist.indexOf('' + wsa[itf]) == -1) {
if (ytlist.trim() == '') {
ytlist+='' + wsa[itf].trim().substring(0,11);
} else {
ytlist+=',' + wsa[itf].trim().substring(0,11);
}
}
}
}
for (var it=1; it<tyembeds.length; it++) {
if (iso < 0 || iso < 9) {
if (iso >= 0) { iso++ }
if (ytlist.trim() == '') {
//if (wsofar != '' && dsofar != '') { alert('DsofaR=' + dsofar + ',' + wsofar); }
ytlist+='' + tyembeds[it].substring(0,11);
isf++;
} else {
//if (wsofar != '' && dsofar != '') { alert('DsofAr=' + dsofar + ',' + wsofar); }
ytlist+=',' + tyembeds[it].substring(0,11);
isf++;
}
}
}
if (ytlist != '') {
if (prefix.indexOf('isradio=') != -1 && !navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
if (ytwo) {
if (!ytwo.closed) {
ytwo.close();
ytwo=null;
}
ytwo=null;
}
if (!independent) {
prefix='isradio=YES&completionmatters=y' + argshuffle + '&';
if (eval('' + dsa.length) > 1 && eval('' + wsa.length) > 1) {
var anarr=ytlist.split(',');
anarr.sort();
ytlist='' + anarr[0];
for (var inb=1; inb<anarr.length; inb++) {
ytlist+=',' + anarr[inb];
}
}
}
if (!didothers) {
//alert(1);
ytwo=window.open(document.URL.split('?')[0].split('#')[0] + '?' + prefix + 'youtube=' + encodeURIComponent(extraatendmaybe(ytlist.trim(),prefix).trim()),'_blank','top=0,left=0,width=' + screen.width + ',height=' + screen.height);
} else {
//alert(11);
setTimeout(function(){
ytwo=window.open(document.URL.split('?')[0].split('#')[0] + '?' + prefix + 'youtube=' + encodeURIComponent(extraatendmaybe(ytlist.trim(),prefix).trim()),'_blank','top=0,left=0,width=' + screen.width + ',height=' + screen.height);
}, 4000);
}
} else {
if (!independent) {
prefix='isradio=YES&completionmatters=y' + argshuffle + '&';
}
if (!didothers) {
//alert(111);
if (eval('' + vidids.length) >= 1) { if (3 == 4) { alert('gCcount=' + gccount + ' and vidids.length=' + vidids.length + ' ' + tylist.trim().split(',').length + ' ' + document.URL); } }
if ((document.URL + ('' + location.hash)).indexOf('independent=') == -1 || prefix.indexOf('completionmatter') != -1) { location.href=maxto(document.URL.split('?')[0].split('#')[0] + '?' + prefix + 'youtube=' + encodeURIComponent(extraatendmaybe(ytlist.trim(),prefix).trim())); }
} else {
//alert(1111);
setTimeout(function(){
if (eval('' + vidids.length) >= 1) { if (5 == 6) { alert('gCcounT=' + gccount + ' and vidids.length=' + vidids.length + ' ' + tylist.trim().split(',').length + ' ' + document.URL); } }
if ((document.URL + ('' + location.hash)).indexOf('independent=') == -1 || prefix.indexOf('completionmatter') != -1) { location.href=maxto(document.URL.split('?')[0].split('#')[0] + '?' + prefix + 'youtube=' + encodeURIComponent(extraatendmaybe(ytlist.trim(),prefix).trim())); }
}, 4000);
}
//}
}
}
}
}
}
}
function split_embed_two(iois) {
//didothers=true;
var iso=-1;
var sxh=16000;
if (('' + location.hash).indexOf('independent') != -1) { sxh=26000; independent=false; iso=0; }
if (('' + location.hash).indexOf('independentaudio') != -1) { if (prefix.indexOf('&justaudio=y') == -1) { prefix=prefix.replace('&','&justaudio=y&'); } }
var aconto = (iois.contentWindow || iois.contentDocument);
if (aconto != null) {
if (aconto.document) { aconto = aconto.document; }
if (aconto.body != null) {
var tyembeds=aconto.body.innerHTML.split('/embed/');
if (eval('' + tyembeds.length) <= 1) { setTimeout(function(){ checkiflater(document.getElementById(iois.id)); }, sxh); } else {
for (var it=1; it<tyembeds.length; it++) {
if (iso < 0 || iso < 9) {
if (iso >= 0) { iso++ }
if (wsofar == ' ') {
wsofar='' + tyembeds[it].substring(0,11);
} else if (wsofar.trim() != '') {
wsofar+=',' + tyembeds[it].substring(0,11);
}
if (ytlist.trim() == '') {
ytlist+='' + tyembeds[it].substring(0,11);
} else {
ytlist+=',' + tyembeds[it].substring(0,11);
}
}
}
if (ytlist != '') {
if (prefix.indexOf('isradio=') != -1 && !navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
if (ytwo) {
if (!ytwo.closed) {
ytwo.close();
ytwo=null;
}
ytwo=null;
}
if (1 == 5) {
ytwo=window.open(document.URL.split('?')[0].split('#')[0] + '?' + prefix + 'youtube=' + encodeURIComponent(extraatendmaybe(ytlist.trim(),prefix).trim()),'_blank','top=0,left=0,width=' + screen.width + ',height=' + screen.height);
}
} else {
if (1 == 5) {
location.href=document.URL.split('?')[0].split('#')[0] + '?' + prefix + 'youtube=' + encodeURIComponent(extraatendmaybe(ytlist.trim(),prefix).trim());
}
}
}
}
}
}
}
function bordersmaybe() {
var spans=[], jspan=0;
var iso=-1;
if (document.URL.indexOf('isradio=YES&completionmatters=y&shuffle=y&youtube=') != -1 || document.URL.indexOf('isradio=YES&completionmatters=y&justaudio=y&shuffle=y&youtube=') != -1) {
spans=document.getElementsByTagName('span');
for (jspan=0; jspan<spans.length; jspan++) {
if ((prefix + document.URL).indexOf('justaudio=') != -1) {
if (('' + spans[jspan].title).indexOf('A-V')) {
spans[jspan].style.border='1px solid red';
}
} else {
if (('' + spans[jspan].title).indexOf('A+V')) {
spans[jspan].style.border='1px solid red';
}
}
}
}
}
function split_embed_three(iois) {
//didothers=true;
var spans=[], jspan=0;
var iso=-1;
var sxh=16000;
if (('' + location.hash).indexOf('independent') != -1) { sxh=26000; independent=false; iso=0; }
if (('' + location.hash).indexOf('independentaudio') != -1) { if (prefix.indexOf('&justaudio=y') == -1) { prefix=prefix.replace('&','&justaudio=y&'); } }
if (!independent) {
spans=document.getElementsByTagName('span');
for (jspan=0; jspan<spans.length; jspan++) {
if ((prefix + document.URL).indexOf('justaudio=') != -1) {
if (('' + spans[jspan].title).indexOf('A-V')) {
spans[jspan].style.border='1px solid red';
}
} else {
if (('' + spans[jspan].title).indexOf('A+V')) {
spans[jspan].style.border='1px solid red';
}
}
}
}
var aconto = (iois.contentWindow || iois.contentDocument);
if (aconto != null) {
if (aconto.document) { aconto = aconto.document; }
if (aconto.body != null) {
var tyembeds=aconto.body.innerHTML.split('/embed/');
if (eval('' + tyembeds.length) <= 1) { setTimeout(function(){ checkiflater(document.getElementById(iois.id)); }, sxh); } else {
for (var it=1; it<tyembeds.length; it++) {
if (iso < 0 || iso < 9) {
if (iso >= 0) { iso++ }
if (dsofar == ' ') {
dsofar='' + tyembeds[it].substring(0,11);
} else if (dsofar.trim() != '') {
dsofar+=',' + tyembeds[it].substring(0,11);
}
if (ytlist.trim() == '') {
ytlist+='' + tyembeds[it].substring(0,11);
} else {
ytlist+=',' + tyembeds[it].substring(0,11);
}
}
}
if (ytlist != '') {
if (prefix.indexOf('isradio=') != -1 && !navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
if (ytwo) {
if (!ytwo.closed) {
ytwo.close();
ytwo=null;
}
ytwo=null;
}
if (1 == 5) {
ytwo=window.open(document.URL.split('?')[0].split('#')[0] + '?' + prefix + 'youtube=' + encodeURIComponent(extraatendmaybe(ytlist.trim(),prefix).trim()),'_blank','top=0,left=0,width=' + screen.width + ',height=' + screen.height);
}
} else {
if (1 == 5) {
location.href=document.URL.split('?')[0].split('#')[0] + '?' + prefix + 'youtube=' + encodeURIComponent(extraatendmaybe(ytlist.trim(),prefix).trim());
}
}
}
}
}
}
}
function showStuff() {
var dod=true, yytlist='';
if (dsofar.trim() != '') {
dod=false;
}
if (czhr != null) {
if (czhr.readyState == 4) {
if (czhr.status == 200) {
var tyembeds=czhr.responseText.split('/embed/');
//var qwr=prompt('' + tyembeds.length + ':' + czhr.responseText, czhr.responseText);
if (eval('' + tyembeds.length) > 1) {
for (var it=1; it<tyembeds.length; it++) {
if (yytlist.trim() == '') {
yytlist+='' + tyembeds[it].substring(0,11);
if (dod) {
dsofar=yytlist;
} else {
wsofar=yytlist;
}
} else {
yytlist+=',' + tyembeds[it].substring(0,11);
if (dod) {
dsofar=yytlist;
} else {
wsofar=yytlist;
}
}
}
}
}
}
}
}
function fixone(oneijs) {
var nextis='2', i, fidx=-1, ishouldbe=-1, thisvis='', thisdis=0;
var ytids=oneijs.split(';');
if (gtdzero != '> </td>') {
nextis=gtdzero.split('=&j')[1].split('=')[0].split('&')[0];
//alert('nextis=' + nextis + ' and ordmatters.length=' + ordermatters.length + ' and ' + (ordmatters || document.URL.indexOf('ordmatters=') != -1));
if ((ordmatters || document.URL.indexOf('ordmatters=') != -1) && eval('' + ordermatters.length) > eval('' + nextis) && eval('' + mattersorder.length) > eval('' + nextis)) {
//gtdzero=gtdzero.replace('&i1=0&','&i1=&');
//alert('firstidx=' + firstidx);
//if (gtdzero.indexOf('&j0=&') == -1 && gtdzero.indexOf('&j1=&') != -1 && eval('' + firstidx) > 0) {
if (firstidx > 0) {
//firstidx++;
//gtdzero=gtdzero.replace('&i1=0&','&i1=&');
//ishouldbe=eval('' + mattersorder.indexOf(('' + gtdzero.split('&i0=')[1].split('&')[0])));
thisvis=gtdzero.split('youtubeid=')[1].split('&')[0];
thisdis=gtdzero.split('j0=')[1].split('&')[0];
//alert('thisvis=' + thisvis + ' and thisdis=' + thisdis);
gtdzero=gtdzero.replace('&i' + firstidx + '=' + gtdzero.split('i' + firstidx + '=')[1].split('&')[0] + '&', '&c' + firstidx + '=on&i' + firstidx + '=0' + encodeURIComponent('|') + thisvis + encodeURIComponent('#Will be filled in') + '&');
//alert(firstduris);
gtdzero=gtdzero.replace('j' + firstidx + '=' + gtdzero.split('j' + firstidx + '=')[1].split('&')[0] + '&', 'j' + firstidx + '=' + (firstduris.replace('22234','') == '' ? '-1' : firstduris) + '&');
gtdzero=gtdzero.replace('youtubeid=' + gtdzero.split('youtubeid=')[1].split('&')[0], 'youtubeid=' + mattersorder[0]);
gtdzero=gtdzero.replace('youtube_duration=' + gtdzero.split('youtube_duration=')[1].split('&')[0], 'youtube_duration=22234');
gtdzero=gtdzero.replace('i0=' + gtdzero.split('i0=')[1].split('&')[0] + '&', 'i0=0&');
gtdzero=gtdzero.replace('j0=' + gtdzero.split('j0=')[1].split('&')[0] + '&', 'j0=22234&');
console.warn('-1.' + nextis + ':' + gtdzero);
fidx=-9;
firstidx=-9;
} else {
gtdzero=gtdzero.replace('i0=' + gtdzero.split('i0=')[1].split('&')[0] + '&', 'i0=0&');
gtdzero=gtdzero.replace('j0=' + gtdzero.split('j0=')[1].split('&')[0] + '&', 'j0=22234&');
console.warn('000.' + nextis + ':' + gtdzero);
}
if (mattersorder[eval('' + nextis)] != ('' + ytids[0])) {
if (mattersorder.indexOf(('' + ytids[0])) != -1) {
nextis='' + mattersorder.indexOf(('' + ytids[0]));
if (('' + nextis) == '000') {
gtdzero=gtdzero.replace('youtubeid=' + gtdzero.split('youtubeid=')[1].split('&')[0], 'youtubeid=' + mattersorder[eval('' + nextis)]);
gtdzero=gtdzero.replace('youtube_duration=' + gtdzero.split('youtube_duration=')[1].split('&')[0], 'youtube_duration=22234');
//gtdzero=gtdzero.replace('i0=' + gtdzero.split('i0=')[1].split('&')[0] + '&', 'i0=0' + encodeURIComponent('|') + ytids[0] + '&');
//gtdzero=gtdzero.replace('j0=' + gtdzero.split('j0=')[1].split('&')[0] + '&', 'j0=' + ytids[1] + '&');
gtdzero=gtdzero.replace('i0=' + gtdzero.split('i0=')[1].split('&')[0] + '&', 'i0=0&');
gtdzero=gtdzero.replace('j0=' + gtdzero.split('j0=')[1].split('&')[0] + '&', 'j0=22234&');
console.warn('00.' + nextis + ':' + gtdzero);
}
}
}
} else {
while (eval('' + ordermatters.length) <= eval('' + nextis) || eval('' + mattersorder.length) <= eval('' + nextis)) {
ordermatters.push(('' + nextis));
mattersorder.push(('' + ytids[0]));
}
}
//alert('nextis=' + nextis + ' is ' + '&i' + nextis + '=&j' + nextis + '=&' + ' in ... ' + gtdzero);
if (('' + ytids[1]).indexOf('22234') != 0) {
//alert(ytids[0]);
if (ytids[0] == '0Gz_7am23rk') {
//gtdzero=prompt(gtdzero,gtdzero);
if (decodeURIComponent(userms[iuser]).toLowerCase().indexOf('.pdf') != -1) {
if (jload < eval('' + jmedias.length)) {
gtdzero=gtdzero.replace('&i' + ordermatters[nextis] + '=&j' + ordermatters[nextis] + '=&', '&c' + ordermatters[nextis] + '=on&kk' + ordermatters[nextis] + '=' + variants[eval(-1 + iuser)] + encodeURIComponent('' + decodeURIComponent(userms[iuser])) + '&i' + ordermatters[nextis] + '=0' + encodeURIComponent('|') + '0Gz_7am23rk' + '&j' + ordermatters[nextis] + '=' + jmedias[jload] + '&');
jload++;
} else {
gtdzero=gtdzero.replace('&i' + ordermatters[nextis] + '=&j' + ordermatters[nextis] + '=&', '&c' + ordermatters[nextis] + '=on&kk' + ordermatters[nextis] + '=' + variants[eval(-1 + iuser)] + encodeURIComponent('' + decodeURIComponent(userms[iuser])) + '&i' + ordermatters[nextis] + '=0' + encodeURIComponent('|') + '0Gz_7am23rk' + '&j' + ordermatters[nextis] + '=35.00&');
}
} else {
if (jload < eval('' + jmedias.length)) {
gtdzero=gtdzero.replace('&i' + ordermatters[nextis] + '=&j' + ordermatters[nextis] + '=&', '&c' + ordermatters[nextis] + '=on&kk' + ordermatters[nextis] + '=' + variants[eval(-1 + iuser)] + encodeURIComponent('' + decodeURIComponent(userms[iuser])) + '&i' + ordermatters[nextis] + '=0' + encodeURIComponent('|') + '0Gz_7am23rk' + '&j' + ordermatters[nextis] + '=' + jmedias[jload] + '&');
jload++;
} else {
gtdzero=gtdzero.replace('&i' + ordermatters[nextis] + '=&j' + ordermatters[nextis] + '=&', '&c' + ordermatters[nextis] + '=on&kk' + ordermatters[nextis] + '=' + variants[eval(-1 + iuser)] + encodeURIComponent('' + decodeURIComponent(userms[iuser])) + '&i' + ordermatters[nextis] + '=0' + encodeURIComponent('|') + '0Gz_7am23rk' + '&j' + ordermatters[nextis] + '=' + ytids[1] + '&');
}
}
document.getElementById('divtitles').innerHTML=document.getElementById('divtitles').innerHTML.replace('<span>0|0Gz_7am23rk#Virtual Tour</span>', '<span>0|' + variants[eval(-1 + iuser)] + '#' + decodeURIComponent(userms[iuser]) + '</span>');
iuser++;
} else {
gtdzero=gtdzero.replace('&i' + ordermatters[nextis] + '=&j' + ordermatters[nextis] + '=&', '&c' + ordermatters[nextis] + '=on&i' + ordermatters[nextis] + '=0' + encodeURIComponent('|') + ytids[0] + '&j' + ordermatters[nextis] + '=' + ytids[1] + '&');
}
} else {
//alert('oops ' + ytids[0]);
return '';
}
//alert('nextis=' + nextis + ' .+. ' + gtdzero);
}
return oneijs;
}
function dodisco(dwhat) {
setTimeout(cursanimate, 600);
if (dwhat.indexOf('=radnoiswas') != -1) {
document.getElementById(dwhat.split('=radnoiswas')[0]).style.border='1px dotted red';
} else if (dwhat.indexOf('isradio=') == 0) {
document.getElementById(dwhat.split('isradio=')[1].split('&')[0]).style.border='1px dotted red';
}
document.body.style.cursor='progress';
if (independent) {
if (prefix.indexOf('shuffle=') == -1) { prefix=dwhat; }
document.getElementById('spareif').src='/HTMLCSS/disco_version.html?rand=' + Math.floor(Math.random() * 1987865);
} else if (dwhat == dwhat.toUpperCase()) {
dsofar=' ';
czhr = new XMLHttpRequest();
czhr.onreadystatechange = showStuff;
czhr.responseType='Document';
czhr.open('GET', '/HTMLCSS/disco_version.html', true);
czhr.send(null);
if (ytlist == '') { ytlist=' '; }
document.getElementById('spareifthree').src='/HTMLCSS/disco_version.html?rand=' + Math.floor(Math.random() * 1987865);
//document.getElementById('spareiftwo').src='/HTMLCSS/the_wrecking_crew.html?rand=' + Math.floor(Math.random() * 1987865);
//document.getElementById('spareif').src='/HTMLCSS/yacht_rock.html?rand=' + Math.floor(Math.random() * 1987865);
}
setTimeout(function(){ document.body.style.cursor='pointer'; }, 5000);
}
function dowc(dwhat) { // <button id="bwca" onclick="dowc('bwca=radnoiswas&audio');" style="background-color: yellow; position: fixed; left: 392.25px; top: 714.945px;">The <br>Wrecking <br>Crew<sub>A-V</sub> <span id="bwcb" title="Radio A-V ... double click for compilation" ondblclick="event.stopPropagation(); triplewhammy(this); " onclick="event.stopPropagation(); setTimeout(function(){ dowc('isradio=bwcb&audio'); }, 2000);" style="background-color: yellow; visibility: visible; border: 1px solid red;">📻</span></button>
setTimeout(cursanimate, 600);
if (dwhat.indexOf('=radnoiswas') != -1) {
document.getElementById(dwhat.split('=radnoiswas')[0]).style.border='1px dotted red';
} else if (dwhat.indexOf('isradio=') == 0) {
document.getElementById(dwhat.split('isradio=')[1].split('&')[0]).style.border='1px dotted red'; setTimeout(function(){ oktoivid=true; }, 7900);
parent.document.getElementById('youtubeid').value=vidarrv[eval(-1 + vidarrv.length)];
parent.document.getElementById('youtube_duration').value='' + viddurs[eval(-1 + vidarrv.length)];
//alert('6:' + vid + ' of ' + vidarrv.length);
} else {
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
setTimeout(function(){ oktoivid=true; }, 29900);
} else {
setTimeout(function(){ oktoivid=true; }, 1900);
}
parent.document.getElementById('youtubeid').value=vid;
parent.document.getElementById('youtube_duration').value='' + viddurs[ivid];
}
setTimeout(function(){ if (atnextend) { parent.document.getElementById('youtube_duration').value='' + player.getDuration(); parent.document.getElementById('j' + eval(-1 + vidarrv.length)).value=parent.document.getElementById('youtube_duration').value; parent.document.getElementById('i' + eval(-1 + vidarrv.length)).title='' + parent.document.getElementById('myh1').innerHTML.replace(/\&\;/g,'&') + ' ... double tap/click to jump to this'; dowpwo(); } else { parent.document.getElementById('myh1').innerHTML=halfway(ivid,vid,viddurs[ivid],event.target.getVideoData().title); top.document.title=event.target.getVideoData().title; } }, 6000);
} else {
//setTimeout(function(){
vid=vidarrv[ivid];
secscnt='' + eval('' + vidstarts[ivid]);
vidarr=vid.split(',');
playtime=eval(eval('' + viddurs[ivid]) - eval('' + vidstarts[ivid]));
if (oktoivid) {
event.target.loadVideoById(vidarrv[ivid], eval('' + vidstarts[ivid]), eval(eval('' + viddurs[ivid]) - eval('' + vidstarts[ivid])));
}
oktoivid=false;
setTimeout(function(){ oktoivid=true; }, 1900);
//if (atnextend) {
//alert('7:' + vid);
//}
// parent.document.getElementById('youtubeid').value=vid;
// parent.document.getElementById('youtube_duration').value='' + viddurs[ivid];
setTimeout(function(){ parent.document.getElementById('myh1').innerHTML=halfway(ivid,vid,viddurs[ivid],event.target.getVideoData().title); top.document.title=event.target.getVideoData().title; }, 2000);
//}, 3000);
}
}
}
}
if (eval('' + endcnt) <= 0) { endcnt=1; }
consolelog('playing event.data=' + event.data + ' was=' + top.document.getElementById('listeleven').innerHTML);
//if (top.document.getElementById('listeleven').innerHTML.indexOf(vid + '##') == 0) {
top.document.getElementById('listeleven').innerHTML=' ' + top.document.getElementById('listeleven').innerHTML.replace(' ',' ').trim();
consolelog('Playing event.data=' + event.data + ' is=' + top.document.getElementById('listeleven').innerHTML);
//} else if (top.document.getElementById('listeleven').innerHTML.indexOf(vid + '##') == 2) {
// top.document.getElementById('listeleven').innerHTML=' ' + top.document.getElementById('listeleven').innerHTML.trim();
//}
if (lastshuffle < 0) { lastshuffle=ivid; }
} else if (event.data == YT.PlayerState.PAUSED) {
consolelog('paused event.data=' + event.data + ' was=' + top.document.getElementById('listeleven').innerHTML);
endcnt=2;
//alert('paused event.data=' + event.data);
//if (top.document.getElementById('listeleven').innerHTML.indexOf(vid + '##') == 0) {
top.document.getElementById('listeleven').innerHTML=' ' + top.document.getElementById('listeleven').innerHTML.replace(' ',' ').trim();
consolelog('Paused event.data=' + event.data + ' is=' + top.document.getElementById('listeleven').innerHTML);
//} else if (top.document.getElementById('listeleven').innerHTML.indexOf(vid + '##') == 1) {
// top.document.getElementById('listeleven').innerHTML=' ' + top.document.getElementById('listeleven').innerHTML.trim();
//}
} else if (event.data == YT.PlayerState.ENDED) {
//alert('prehere');
if (atnextend) {
if (parent.window.opener.document.getElementById('awowowo')) {
parent.window.opener.document.getElementById('awowowo').click();
parent.location.href=parent.document.URL.split('?')[0].split('#')[0];
}
}
oktoivid=true;
if (ismobileplaylistplay) {
//alert('here');
firstdelay=-1;
if (parent.document.getElementById('shufflechk')) {
if (parent.document.getElementById('shufflechk').checked) {
if (nextvidi >= 0) { nextvidi=-3; }
if (oktoivid) {
firstshuffle=true;
//for (var iuy=0; iuy<20; iuy++) {
ivid=eval(Math.floor(Math.random() * 198675643) % Math.max(1,eval('' + vidarrv.length)));
console.log('lastshuffle=' + lastshuffle + ' and pre0:' + ivid);
//}
sgoes=0;
while (!parent.document.getElementById('c' + ivid).checked || ivid == lastshuffle) {
console.log('was no good ' + ivid);
ivid=eval(Math.floor(Math.random() * 198675643) % Math.max(1,eval('' + vidarrv.length)));
sgoes++;
if (sgoes > 100) { lastshuffle=-1; }
}
lastshuffle=ivid;
}
}
}
if (ivid < eval('' + vidarrv.length)) {
console.log('0:' + ivid);
if (oktoivid) {
while (!parent.document.getElementById('c' + ivid).checked) {
//if (parent.document.URL.indexOf('&unknowndur=') != -1) {
// alert('huh3=');
//}
ivid++;
if (ivid >= eval('' + vidarrv.length)) {
if (!parent.document.getElementById('loopchk')) {
ivid=-1;
} else if (parent.document.getElementById('loopchk').checked) {
ivid=0;
if (parent.window.opener.document.getElementById('awowowo')) {
parent.window.opener.document.getElementById('awowowo').click();
}
} else {
ivid=-1;
}
}
}
}
console.log('00:' + ivid);
if (ivid >= 0) {
console.log('000:' + ivid + ' ' + vidarrv[ivid]);
if (1 == 1) {
ivid=ivid;
} else {
event.target.cueVideoById(vidarrv[ivid], eval('' + vidstarts[ivid]), eval(eval('' + viddurs[ivid]) - eval('' + vidstarts[ivid])), "medium");
}
if (firstdelay < 0) {
firststdone=false;
firstdelay=eval(eval('' + viddurs[eval(eval(1 + ivid) % viddurs.length)]) - eval('' + vidstarts[eval(eval(1 + ivid) % vidstarts.length)]));
}
if (1 == 1) {
if (parent.document.URL.indexOf('&unknowndur=') != -1) {
//alert('ivId=' + ivid);
if (ivid == 0) { ivid++; }
if (nextvidi >= 0) { ivid=nextvidi; console.log('ivid now =' + ivid); nextvidi=-4; console.log(vidarrv); console.log(vidstarts); console.log(viddurs); }
}
vid=vidarrv[ivid];
secscnt='' + eval('' + vidstarts[ivid]);
if (('' + vid).indexOf(',') != -1) { vidarr=vid.split(','); }
playtime=eval(eval('' + viddurs[ivid]) - eval('' + vidstarts[ivid]));
oktoivid=false;
setTimeout(function(){ oktoivid=true; }, 5000);
event.target.loadVideoById(vidarrv[ivid], eval('' + vidstarts[ivid]), eval(eval('' + viddurs[ivid]) - eval('' + vidstarts[ivid])));
//if (atnextend) {
// alert('8:' + vid + ' ivid=' + ivid + ' ' + event.target.getDuration());
//}
parent.document.getElementById('youtubeid').value=vid;
parent.document.getElementById('youtube_duration').value='' + viddurs[ivid];
setTimeout(function(){ parent.document.getElementById('myh1').innerHTML=halfway(ivid,vid,viddurs[ivid],event.target.getVideoData().title); top.document.title=event.target.getVideoData().title; }, 2000);
} else {
event.target.playVideo();
}
}
if (parent.document.URL.indexOf('&unknowndur=') != -1) {
//alert('huh4=' + ivid + ' ' + vidarrv.length);
if (eval('' + vidarrv.length) <= 1) { dovidarrv(); }
//top.document.title=('huh44=' + ivid + ' ' + vidarrv.length);
}
ivid++;
if (ivid >= eval('' + vidarrv.length)) {
ivid=0;
//top.document.title=('why');
}
if (ivid < eval('' + vidarrv.length)) {
console.log(eval(1000 * eval(eval('' + viddurs[ivid]) - eval('' + vidstarts[ivid]))));
if ('sadnews' == 'sadnews') {
if (firstdelay < 0) {
firststdone=false;
firstdelay=eval(eval('' + viddurs[ivid]) - eval('' + vidstarts[ivid]));
}
} else {
setTimeout(preparentlook, eval(1000 * eval(eval('' + viddurs[ivid]) - eval('' + vidstarts[ivid]))));
}
}
}
}
consolelog('ended event.data=' + event.data + ' was=' + top.document.getElementById('listeleven').innerHTML);
if (eval('' + endcnt) < 5) {
//alert('ended event.data=' + event.data);
endcnt=3;
var sufx='';
var capitalloop=top.document.getElementById('listeleven').getAttribute('data-title');
if ((capitalloop + 'a').substring(0,1) == 'X') {
sufx='^' + top.document.getElementById('listeleven').innerHTML.split('^')[0].replace(' ','').replace(' ','').trim();
}
if (top.document.getElementById('listeleven').innerHTML.indexOf('^') != -1) {
window.top.focus();
sufx='';
//alert('pre 1');
top.document.getElementById('listeleven').innerHTML=top.document.getElementById('listeleven').innerHTML.replace(top.document.getElementById('listeleven').innerHTML.split('^')[0] + '^','') + sufx; //.replace(top.document.getElementById('listeleven').innerHTML.split('^')[0],'');
//alert('1:' + top.document.getElementById('listeleven').innerHTML);
//top.document.title+=' ' + top.document.getElementById('listeleven').innerHTML.toUpperCase() + ' ';
//if (sufx != '') { alert(top.document.getElementById('listeleven').innerHTML); }
//top.document.title+=' 4';
} else {
window.top.focus();
//alert('pre 2');
var capitalloopx=top.document.getElementById('listeleven').getAttribute('data-title');
sufx=top.document.getElementById('listeleven').title; //sufx.replace('^','');
top.document.getElementById('listeleven').innerHTML=top.document.getElementById('listeleven').innerHTML.replace(top.document.getElementById('listeleven').innerHTML.split('^')[0] + '','') + sufx; //.replace(top.document.getElementById('listeleven').innerHTML.split('^')[0],'');
//alert('2:' + top.document.getElementById('listeleven').innerHTML);
//top.document.title+=' ' + top.document.getElementById('listeleven').innerHTML.toLowerCase() + ' ';
if ((capitalloopx + 'a').substring(0,1) == 'X') {
if (top.document.emojirestart) {
top.document.emojirestart();
} else {
var topifs=top.document.getElementsByTagName('iframe');
for (var itop=0; itop<topifs.length; itop++) {
if (itop != -1) { topifs[itop].src=topifs[itop].src.split('&rnd=')[0] + '&rnd=' + itop + '' + Math.floor(Math.random() * 1234567); }
}
//top.document.title+=' 1';
top.document.getElementById('myh1').style.marginLeft='1px';
//top.document.title+='2';
window.top.scrollTo(0,0);
//top.document.title+='3';
}
}
}
consolelog('Ended event.data=' + event.data + ' is=' + top.document.getElementById('listeleven').innerHTML);
}
//} else {
//alert('event.data=' + event.data);
}
}
}
}
}
}
if (event.data == YT.PlayerState.PLAYING) {
if (ismobileplaylistplay) {
if (firstdelay < 0) {
firstdelay=eval(eval(parent.document.URL.split('&j0=')[1].split('&')[0].split('#')[0]) - eval(parent.document.URL.split('&i0=')[1].split(';')[0].split('&')[0].split('#')[0]));
}
if (!firststdone) { firststdone=true; setTimeout(preparentlook, eval(1000 * firstdelay)); }
}
}
if (event.data == YT.PlayerState.PLAYING) one=1;
if (event.data == YT.PlayerState.PAUSED) onepause=1;
analyzemaybe(one, onepause, done);
if (event.data == YT.PlayerState.PLAYING && !done) {
duration=event.target.getDuration();
if (parent.document.getElementById('youtube_duration') && ('' + duration) != 'undefined') {
if (parent.document.getElementById('youtube_duration').value.indexOf('22221') == 0) {
parent.document.getElementById('youtube_duration').value='' + duration;
if (parent.document.getElementById('j0')) {
if (parent.document.getElementById('j0').value == '22221') {
parent.document.getElementById('j0').value='' + duration;
if (window.parent) {
if (parent.window.opener) {
if (typeof parent.window.opener.setvurl == 'function') {
setTimeout(function(){
parent.window.opener.setvurl(parent.document.getElementById('youtubeid').value, parent.document.getElementById('myh1').innerHTML, parent.document.getElementById('youtube_duration').value);
}, 2000);
}
}
}
}
}
}
}
if (('' + location.hash).replace(/^undefined/g,'').replace(/^null/g,'').replace(/\#/g,'') != '') {
if (('' + parent.parent.document.getElementById(location.hash.replace(/\#/g,'')).getAttribute('data-mute')).replace(/^undefined/g,'').replace(/^null/g,'') != '') {
event.target.mute();
}
if (parent.parent.document.getElementById(location.hash.replace(/\#/g,''))) {
parent.parent.document.getElementById(location.hash.replace(/\#/g,'')).placeholder='' + secscnt + '/' + duration + ' ... ' + 'P=pause/play S=stop M=mute U=unmute L=loop ';
parent.parent.document.getElementById(location.hash.replace(/\#/g,'')).setAttribute('data-duration', '' + duration);
if (lastokn > 0) {
parent.parent.document.getElementById(location.hash.replace(/\#/g,'')).value='' + lastokn;
}
if (!inplaying) { inplaying=true; setTimeout(playingvideo, 1000); }
if (('' + parent.parent.document.getElementById(location.hash.replace(/\#/g,'')).getAttribute('data-loop')).replace(/^undefined/g,'').replace(/^null/g,'') != '') {
startagain=true;
parent.parent.document.getElementById(location.hash.replace(/\#/g,'')).setAttribute('data-loop', '');
}
psuf='';
if (startagain) {
psuf=' ' + String.fromCodePoint(10004);
}
}
}
endcnt=0;
setTimeout(yeswell, eval(eval(10 + eval('' + duration)) * 1000));
console.log('0:' + (new Date()) + ' duration=' + duration);
if (document.URL.indexOf('start=') != -1 && document.URL.indexOf('playtime=') != -1) parent.document.getElementById('myh1').innerHTML=halfway(ivid,vid,duration,event.target.getVideoData().title);
if (document.URL.indexOf('start=0') != -1 && document.URL.indexOf('playtime=0') != -1) {
//alert(duration);
oursecscnt=-1;
setTimeout(stopVideo, 10);
console.log('00:' + (new Date()) + ' duration=' + duration);
if (parent.document.getElementById('youtube_duration').value.indexOf("22222.") != 0) {
parent.document.getElementById('youtube_duration').value='' + duration;
}
if (window.top) {
if (top.document.getElementById('list_eleven')) {
top.document.getElementById('list_eleven').title='' + duration;
//try {
//top.document.getElementById('list_eleven').title+='|' + event.target.getVideoData().title;
//} catch(errt) {
//top.document.getElementById('list_eleven').title='' + duration;
//}
}
}
//parent.document.getElementById('myh1').innerHTML=event.target.getVideoData().title;
if (kpi == -9) {
//alert(99);
if (document.URL.indexOf('start=') != -1 && document.URL.indexOf('playtime=') != -1) {
//alert(990);
if (document.URL.indexOf('start=0') == -1 || document.URL.indexOf('playtime=0') == -1) {
//alert(9900);
kpi=-8;
kpi=event.target.getCurrentTime();
keepParentInformed();
}
}
}
//stopVideo();
return;
} else {
if (playtime < 0) playtime=duration * 1000;
document.title='Playing YouTube ' + vid + of + ' for ' + playtime / 1000 + ' seconds ... is ' + duration + ' seconds altogether.';
if (yes_esp) {
if (parent.parent.document.getElementById('progress_' + vid)) {
parent.parent.document.getElementById('progress_' + vid).style.visibility='visible';
parent.parent.document.getElementById('progress_' + vid).max='' + duration;
parent.parent.document.getElementById('progress_' + vid).value='0';
parent.parent.document.getElementById('progress_' + vid).title='At 0 of ' + duration + ' seconds of ' + parent.getElementById('myh1').innerHTML;
} else {
//parent.parent.document.getElementsByTagName('h4')[0].style.visibility='visible';
parent.parent.document.getElementsByTagName('h4')[0].title=document.title;
//parent.parent.document.getElementsByTagName('h4')[0].innerHTML=document.title;
}
}
document.getElementById('ptitle').innerHTML='Playing YouTube ' + vid + of + ' for ' + playtime / 1000 + ' seconds ... is ' + duration + ' seconds altogether.' + etc_volume();
document.getElementById('ivol').value=event.target.getVolume();
document.getElementById('ipbr').value=event.target.getPlaybackRate();
document.getElementById('iqty').value=event.target.getPlaybackQuality();
setTimeout(stopVideo, playtime + delay);
done = true;
eventtarget=event.target;
if (eval(oursecscnt) > 0) {
document.getElementById('ptitle').innerHTML='Playing YouTube ' + vid + ' starting at ' + oursecscnt + ' seconds ' + of + ' for ' + playtime / 1000 + ' seconds ... is ' + duration + ' seconds altogether.' + etc_volume();
document.title='Playing YouTube ' + vid + ' starting at ' + oursecscnt + ' seconds ' + of + ' for ' + playtime / 1000 + ' seconds ... is ' + duration + ' seconds altogether.';
if (yes_esp) {
if (parent.parent.document.getElementById('progress_' + vid)) {
parent.parent.document.getElementById('progress_' + vid).style.visibility='visible';
parent.parent.document.getElementById('progress_' + vid).max='' + duration;
parent.parent.document.getElementById('progress_' + vid).value='' + oursecscnt;
parent.parent.document.getElementById('progress_' + vid).title='At ' + oursecscnt + ' of ' + duration + ' seconds of ' + parent.parent.getlastreltitle(); //parent.getElementById('myh1').innerHTML;
if (parent.parent.document.getElementById('progress' + vid)) {
parent.parent.document.getElementById('progress' + vid).title=parent.parent.document.getElementById('progress_' + vid).title;
}
} else {
//parent.parent.document.getElementsByTagName('h4')[0].style.visibility='visible';
parent.parent.document.getElementsByTagName('h4')[0].title=document.title;
//parent.parent.document.getElementsByTagName('h4')[0].innerHTML=document.title;
}
}
if (kpi == -9) {
//alert(909);
if (document.URL.indexOf('start=') != -1 && document.URL.indexOf('playtime=') != -1) {
//alert(90900);
if (document.URL.indexOf('start=0') == -1 || document.URL.indexOf('playtime=0') == -1) {
//alert(909000);
kpi=-8;
kpi=event.target.getCurrentTime();
//alert(kpi);
keepParentInformed();
}
}
}
//alert("+" + oursecscnt + ' ... ' + playtime);
eventtargetgById(vid, eval('' + oursecscnt), eval('' + oursecscnt) + eval(eval('' + playtime) / 1000.0), "medium");
oursecscnt=-1;
}
}
}
}
function mpp(wht, vd) {
if (yes_esp) {
if (parent.parent.document.getElementById('progress_' + vd)) {
if (('' + wht).indexOf('-') == 0) {
parent.parent.document.getElementById('progress_' + vd).style.visibility='hidden';
if (parent.parent.document.getElementById('progress_' + vd).title.indexOf('At ') == 0) {
parent.parent.document.getElementById('progress_' + vd).title=parent.parent.document.getElementById('progress_' + vd).title.replace('At ' + parent.parent.document.getElementById('progress_' + vd).title.substring(3).split(' ')[0] + ' ','At end ');
}
if (parent.parent.document.getElementById('progress' + vid)) {
parent.parent.document.getElementById('progress' + vid).title=parent.parent.document.getElementById('progress_' + vid).title;
}
} else if (('' + wht).indexOf(' ') == -1) {
parent.parent.document.getElementById('progress_' + vd).value='' + wht;
if (parent.parent.document.getElementById('progress_' + vd).title == '') {
//alert(56);
//alert('' + parent.parent.document.getElementById('progress_' + vd).max);
parent.parent.document.getElementById('progress_' + vd).title='At 0 of ' + parent.parent.document.getElementById('progress_' + vd).max + ' seconds of ' + parent.parent.getlastreltitle(); //parent.getElementById('myh1').innerHTML;
//alert(356);
}
if (parent.parent.document.getElementById('progress_' + vd).title.indexOf('At ') == 0) {
parent.parent.document.getElementById('progress_' + vd).title=parent.parent.document.getElementById('progress_' + vd).title.replace('At ' + parent.parent.document.getElementById('progress_' + vd).title.substring(3).split(' ')[0] + ' ','At ' + wht + ' ');
}
if (parent.parent.document.getElementById('progress' + vid)) {
parent.parent.document.getElementById('progress' + vid).title=parent.parent.document.getElementById('progress_' + vid).title;
}
}
} else {
//parent.parent.document.getElementsByTagName('h4')[0].style.visibility='visible';
parent.parent.document.getElementsByTagName('h4')[0].title='' + wht;
//parent.parent.document.getElementsByTagName('h4')[0].innerHTML=wht;
}
}
return wht;
}
function keepParentInformed() {
if (ismobileplaylistplay) { return ''; }
if (eval(kpi) < 0) {
parent.document.getElementById('conduit').value=mpp(kpi, vid);
} else {
var xkpi=event.target.getCurrentTime();
//top.document.title=xkpi;
if (('' + xkpi).indexOf('undefined') == -1) kpi=eval(xkpi);
parent.document.getElementById('conduit').value=mpp(kpi, vid);
//parent.document.getElementById('myh1').innerHTML+=' ' + kpi;
}
if (eval(kpi) != -1) {
//alert(kpi);
setTimeout(keepParentInformed, 600);
} //else {
//alert('why is kpi=' + kpi);
//}
}
function sagain() {
startagain=true;
if (('' + parent.parent.document.getElementById(location.hash.replace(/\#/g,'')).getAttribute('data-val')).replace(/^undefined/g,'').replace(/^null/g,'') != '') {
parent.parent.document.getElementById(location.hash.replace(/\#/g,'')).setAttribute('data-loop','y');
}
}
function sanitycheck() {
if (numericalssamecount >= 10) {
numericals=parent.parent.document.getElementById(location.hash.replace(/\#/g,'')).value;
if (numericals.replace(/0/g,'').replace(/1/g,'').replace(/2/g,'').replace(/3/g,'').replace(/4/g,'').replace(/5/g,'').replace(/6/g,'').replace(/7/g,'').replace(/8/g,'').replace(/9/g,'').trim() == '') {
if (eval(numericals) >= 0 && eval(numericals) <= eval('' + duration)) {
event.target.seekTo(eval(numericals.trim()));
}
parent.parent.document.getElementById(location.hash.replace(/\#/g,'')).value='';
numericals='';
numericalssamecount=0;
//top.document.title='Zero';
} else {
ytsearch(parent.parent.document.getElementById(location.hash.replace(/\#/g,'')).value);
numericals='';
numericalssamecount=0;
//top.document.title='zero';
}
}
}
function ytsearch(intysidea) {
var afternums='', isanum=true, beforenums='', wasph='';
for (var ihj=0; ihj<intysidea.length; ihj++) {
if (isanum) {
if (intysidea.substring(ihj).substring(0,1) < '0' || intysidea.substring(ihj).substring(0,1) > '9') {
isanum=false;
if (intysidea.substring(ihj).substring(0,1) != ' ') {
afternums+=intysidea.substring(ihj).substr