6c6
<
---
>
24d23
< var trackid=-1;
26d24
< var lastscont='';
40d37
< if (orighastoinclude == '') { orighastoinclude='youllneverfindthis'; }
46c43
< if (outih.indexOf(opttoadd) == -1 && opttoadd.indexOf(orighastoinclude) == -1) {
---
> if (outih.indexOf(opttoadd) == -1) {
56c53
< lastscont='';
---
> var lastscont='';
269,270c266
< var currentIndex = array.length, temporaryValue;
< var randomIndex=eval(-9 - eval('' + currentIndex));
---
> var currentIndex = array.length, temporaryValue, randomIndex;
273,280d268
< if (('' + hastoinclude) != '') {
< for (var ij=0; ij= 0 || eval(1 + eval(('' + randomIndex))) < eval('' + array.length)) {
286,288d272
< } else {
< randomIndex = Math.abs(eval(1 + eval('' + randomIndex)));
< }
312,315d295
<
< var hastoinclude=location.search.split('hastoinclude=')[1] ? decodeURIComponent(location.search.split('hastoinclude=')[1].split('&')[0]) : '';
< var orighastoinclude=hastoinclude;
<
322c302
< '6bWyhj7siEY',
---
> '6bWyhj7siEY',
344c324
< 'jhkIh4x4mmM',
---
> 'de5Xauv99QM',
348c328
< 'sukxmZcDGlU',
---
> 'T5mD_loFlfg',
362c342
< 'qJFVPxBpezk',
---
> 'hn0ZJHVH17I',
364c344
< 'PxoJkDQdNBI',
---
> 'ZTbTHlTmDX8',
368c348
< 'jV127kNz0hs',
---
> 'tT86AoSGEL8',
376c356
< 'k4X1ks2pKoo',
---
> '9vkdzBSuyUg',
426c406
< vplayer.push(eval("new YT.Player('vplayer" + ii + "', { height: '260', width: '33%', videoId: '" + yid[-1 + ii] + "', playerVars: { autoplay: 0, controls: 1, disablekb: 1, loop: 0, modestbranding: 0, showinfo: 0, autohide: 1, color: 'white', iv_load_policy: 3, theme: 'light', rel: 0 }, events: { 'onError': onProblem, 'onReady': onPlayerReady, 'onStateChange': onPlayerStateChange }})"));
---
> vplayer.push(eval("new YT.Player('vplayer" + ii + "', { height: '260', width: '33%', videoId: '" + yid[-1 + ii] + "', playerVars: { autoplay: 0, controls: 1, disablekb: 1, loop: 0, modestbranding: 0, showinfo: 0, autohide: 1, color: 'white', iv_load_policy: 3, theme: 'light', rel: 0 }, events: { 'onReady': onPlayerReady, 'onStateChange': onPlayerStateChange }})"));
431,475d410
< function onProblem(event) {
< console.log(event.target.f);
< console.log(event.target.l);
< var pvidid='', embedurl='', vtitle='';
< //if (event.target.f) {
< // alert('preHuh:' + event.target.f.outerHTML);
< //}
< if (event.target.f.outerHTML.indexOf('embed/') != -1) {
< pvidid=event.target.f.outerHTML.split('embed/')[1].split('?')[0];
< }
< if (pvidid != '') {
< if (lastscont.indexOf(pvidid) != -1) {
< // D-TC8CRCIKM|194|0|The Grass Roots - Sooner Or Later - [original STEREO]
< //alert(lastscont.split(pvidid)[1]);
< var vbs=lastscont.split(pvidid)[1].split('|');
< if (eval('' + vbs.length) >= 4) {
< vtitle='' + vbs[3];
< }
< }
< if (event.target.f.outerHTML.indexOf(' class="player-unavailable"') != -1 || pvidid != '') {
< embedurl='http' + event.target.f.outerHTML.split('http')[1].split('"')[0];
< if (document.URL.toLowerCase().indexOf('rjmprogramming.com.au/') != -1) {
< var zzhr = new XMLHttpRequest();
< var zzform=new FormData();
< zzform.append('inline', '');
< zzform.append('to', 'rmetcalfe@rjmprogramming.com.au');
< zzform.append('subj', 'Please find alternative to YouTube ' + pvidid + ' in relevant code ... ' + vtitle);
< zzform.append('body', encodeURIComponent('Problem video is first iframe of ... ' + String.fromCharCode(10) + String.fromCharCode(10) + document.URL.split('#')[0].split('?')[0] + '?hastoinclude=' + pvidid + String.fromCharCode(10) + String.fromCharCode(10) + 'Problem YouTube video is ... ' + String.fromCharCode(10) + String.fromCharCode(10) + "https://www.youtube.com/watch?v=" + pvidid));
< zzhr.open('post', '//www.rjmprogramming.com.au/HTMLCSS/emailhtml.php', true);
< zzhr.send(zzform);
< //var remurl='mailto:rmetcalfe@rjmprogramming.com.au?subject=' + encodeURIComponent('Please find alternative to YouTube ' + pvidid + ' in relevant code ... ' + vtitle) + '&body=' + encodeURIComponent('Problem video is first iframe of ... ' + String.fromCharCode(10) + String.fromCharCode(10) + document.URL.split('#')[0].split('?')[0] + '?hastoinclude=' + pvidid + String.fromCharCode(10) + String.fromCharCode(10) + 'Problem YouTube video is ... ' + String.fromCharCode(10) + String.fromCharCode(10) + "https://www.youtube.com/watch?v=" + pvidid);
< //if (('' + document.getElementById('badvideo').href).indexOf('mailto') != 0) { document.getElementById('badvideo').href=remurl; document.getElementById('badvideo').click(); }
< } else {
< var emurl='mailto:rmetcalfe@rjmprogramming.com.au?subject=' + encodeURIComponent('Please find alternative to YouTube ' + pvidid + ' in relevant code ... ' + vtitle) + '&body=' + encodeURIComponent('Problem video is first iframe of ... ' + String.fromCharCode(10) + String.fromCharCode(10) + document.URL.split('#')[0].split('?')[0] + '?hastoinclude=' + pvidid + String.fromCharCode(10) + String.fromCharCode(10) + 'Problem YouTube video is ... ' + String.fromCharCode(10) + String.fromCharCode(10) + "https://www.youtube.com/watch?v=" + pvidid);
< if (('' + document.getElementById('badvideo').href).indexOf('mailto') != 0) { document.getElementById('badvideo').href=emurl; document.getElementById('badvideo').click(); }
< }
< //} else {
< //alert('huh:' + ('' + event.target.f));
< }
< //} else {
< //alert('Huh:' + ('' + event.target.f));
< }
< //alert('http' + ('' + event.target.f).split('http')[1].split('"')[0]);
< }
<
493,497d427
< //if (eval('' + jis) < eval('' + trackid)) {
< // alert(yid[jis]);
< //} else {
< // trackid=eval('' + jis);
< //}
775d704
< Bad video