9,15d8 < $tabbit=""; < $celltemplate='
'; < $maybenone='none'; < if (isset($_GET['debug'])) { < $maybenone='block'; < } < 17,25d9 < if (isset($_GET['curc'])) { < if ($_GET['curc'] != '1') { < $tabbit=" if (window.parent) { if (parent.document.getElementById('trtdtd" . $_GET['curc'] . "')) { parent.appendthenfill(); } } "; < } else { < $tabbit=''; < } < } else { < $tabbit=''; < } 58d41 < if ($tabbit != '') { $tabbit=str_replace('()', "('" . urlencode(file_get_contents('/tmp/cowsaytwo.txt')) . "')", $tabbit); } 61d43 < if ($tabbit != '') { $tabbit=str_replace('()', "('" . urlencode(file_get_contents('/tmp/cowsaytwo.txt')) . "')", $tabbit); } 64c46 < echo "Cow Says ... thanks to https://pypi.org/project/cowsay"; --- > echo "Cow Says ... thanks to https://pypi.org/project/cowsay"; 67c49 < echo "Cow Says ... thanks to https://pypi.org/project/cowsay"; --- > echo "Cow Says ... thanks to https://pypi.org/project/cowsay"; 71,79d52 < if (isset($_POST['curc'])) { < if ($_POST['curc'] != '1') { < $tabbit=" if (window.parent) { if (parent.document.getElementById('trtdtd" . $_POST['curc'] . "')) { parent.appendthenfill(); } } "; < } else { < $tabbit=''; < } < } else { < $tabbit=''; < } 112d84 < if ($tabbit != '') { $tabbit=str_replace('()', "('" . urlencode(file_get_contents('/tmp/cowsaytwo.txt')) . "')", $tabbit); } 115d86 < if ($tabbit != '') { $tabbit=str_replace('()', "('" . urlencode(file_get_contents('/tmp/cowsaytwo.txt')) . "')", $tabbit); } 118,133c89 < echo "Cow Says ... thanks to https://pypi.org/project/cowsay"; --- > echo "Cow Says ... thanks to https://pypi.org/project/cowsay"; 136,151c92 < echo "Cow Says ... thanks to https://pypi.org/project/cowsay"; --- > echo "Cow Says ... thanks to https://pypi.org/project/cowsay"; 157,294d97 < < 299,300c102 < var curcell=1, currow=1, initialtableih=''; < var celltemplate='
'; --- > 315,445d116 < < function emsmrefresh() { < document.getElementById('aemail').href='mailto:?subject=Cartoon&body=' + encodeURIComponent(document.URL.replace('http:','https:').split('?')[0].split('#')[0] + '?rand=' + Math.floor(Math.random() * 19878656) + '&#cartoon=' + encodeURIComponent(document.getElementById('backuptable').outerHTML.replace('=0; ij--) { < if (doit && outsare[ij].trim() == '') { < origlen-=eval(1 + eval('' + outsare[ij].length)); < outfg=infg.substring(0,origlen); < } else { < doit=false; < if (lookforhbit && outsare[ij].indexOf(' =') != -1 && outsare[ij].indexOf(' =-') == -1 && outsare[ij].indexOf(' ==' + String.fromCharCode(92)) == -1) { < lookforhbit=false; < theheadbit=outfg.split(outsare[ij])[0] + outsare[ij] + String.fromCharCode(10); < } < } < } < if (theheadbit != '') { < outfg=outfg.split(theheadbit)[1]; < while (theheadbit.indexOf(String.fromCharCode(10)) != -1) { < theheadbit=theheadbit.replace(String.fromCharCode(10), '
'); < } < } < while (outfg.indexOf(String.fromCharCode(10)) != -1) { < outfg=outfg.replace(String.fromCharCode(10), '
'); < } < if (theheadbit != '') { < document.getElementById('trthtd' + curcell).innerHTML=theheadbit.replace(/\ /g, ' '); < } < return outfg.replace(/\ /g, ' '); < } < 529c161 < setTimeout(function(){ aconto.getElementById('dta').innerHTML=''; aconto.getElementById('dta').value=gnewwithwhat; if (document.getElementById('nonct').outerHTML.split('>')[0].indexOf(' open') == -1) { aconto.getElementById('dta').style.display='none'; } }, 5000); --- > setTimeout(function(){ aconto.getElementById('dta').innerHTML=''; aconto.getElementById('dta').value=gnewwithwhat; }, 5000); 534,540d165 < document.getElementById('backuptable').innerHTML=initialtableih; < curcell=1; < if (curcell == 1) { < appendthenfill(encodeURIComponent(newwithwhat)); < } < document.getElementById('atop').style.display='block'; < setTimeout(function(){ if (document.getElementById('nonct').outerHTML.split('>')[0].indexOf(' open') == -1) { aconto.getElementById('dta').style.display='none'; location.href='#atop'; } paddingtopit(); }, 1000); 543,568d167 < < function reopen() { < aconto.getElementById('dta').style.display='block'; < document.getElementById('atop').style.display='block'; < document.getElementById('backuptable').style.display='block'; < } < < function ourencodeURIComponent(incx) { < return incx.replace(/\%0A/g,'').replace(/\%20/g,'+'); < } < < function appendthenfill(xnewwithwhat) { < document.getElementById('tr' + currow).innerHTML+=celltemplate.replace(/1/g, '' + eval(1 + curcell)); < document.getElementById('trtdtd' + curcell).innerHTML=brize(decodeURIComponent(xnewwithwhat).replace(/\+/g,' ')); < curcell++; < document.getElementById('curc').value='' + curcell; < document.getElementById('aemail').href='mailto:?subject=Cartoon&body=' + encodeURIComponent(document.URL.replace('http:','https:').split('?')[0].split('#')[0] + '?rand=' + Math.floor(Math.random() * 19878656) + '&#cartoon=' + encodeURIComponent(document.getElementById('backuptable').outerHTML.replace('
eighty+=60; 640c239 < setTimeout(function(){ aconto.getElementById('dta').innerHTML=''; aconto.getElementById('dta').value=gnewwithwhat; if (document.getElementById('nonct').outerHTML.split('>')[0].indexOf(' open') == -1) { aconto.getElementById('dta').style.display='none'; } }, 5000); --- > setTimeout(function(){ aconto.getElementById('dta').innerHTML=''; aconto.getElementById('dta').value=gnewwithwhat; }, 5000); 648,652d246 < if (curcell == 1) { < appendthenfill(encodeURIComponent(newwithwhat)); < } < document.getElementById('atop').style.display='block'; < setTimeout(function(){ if (document.getElementById('nonct').outerHTML.split('>')[0].indexOf(' open') == -1) { aconto.getElementById('dta').style.display='none'; location.href='#atop'; } paddingtopit(); }, 1000); 655,742d248 < < function atobmaybe(incx) { < //alert(incx); < if (incx.indexOf('PHR') == 0) { < return window.atob(incx); < } < return incx; < } < < function lhchk() { < if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) { < try { < document.getElementById('nonct').open=false; < document.getElementById('nonct').removeAttribute('open'); < } catch(excsd) { < document.getElementById('nonct').removeAttribute('open'); < } < //document.getElementById('atop').style.display='block'; < document.getElementById('backuptable').style.display='block'; < } < if (('' + document.URL + '#' + decodeURIComponent(decodeURIComponent('' + location.hash))).indexOf('cartoon=') != -1) { < var wasdih=document.getElementById('divback').innerHTML; < if (('' + document.URL).indexOf('cartoon=') != -1) { < document.getElementById('divback').innerHTML=atobmaybe(decodeURIComponent(('' + document.URL).split('cartoon=')[1].replace(/^\=/g,'').split('&')[0].split('#')[0])).replace(/\+/g,' '); < //alert(document.URL); < } else { < document.getElementById('divback').innerHTML=atobmaybe(decodeURIComponent(('' + '#' + decodeURIComponent(decodeURIComponent('' + location.hash))).split('cartoon=')[1].replace(/^\=/g,'').split('#')[0])).replace(/\+/g,' '); < //alert((decodeURIComponent(('' + '#' + decodeURIComponent(decodeURIComponent('' + location.hash))).split('cartoon=')[1].replace(/^\=/g,'').split('#')[0])).replace(/\+/g,' ')); < } < if (document.getElementById('divback').innerHTML.trim() == '') { < document.getElementById('divback').innerHTML=wasdih; < } < document.getElementById('aemail').href='mailto:?subject=Cartoon&body=' + encodeURIComponent(document.URL.replace('http:','https:').split('?')[0].split('#')[0] + '?rand=' + Math.floor(Math.random() * 19878656) + '&#cartoon=' + encodeURIComponent(document.getElementById('backuptable').outerHTML.replace('
maxtwo) { maxtwo=thistwo; } < } < } < for (it=0; it

Cow Says ...

RJM Programming - February, 2025 ... Cartoon 💬    

Thanks to https://pypi.org/project/cowsay/

\"\"  🗨 


  


<
< <
< < " . $celltemplate . " < <
< < "; --- >

  

";