1,59d0
< ";
< $postuw1="";
< $postuw3.="";
< }
<
< // Create a transparent image thanks to https://www.php.net/manual/en/function.imagecolortransparent.php
< $im = imagecreatetruecolor($_GET['width'], $_GET['height']);
< $red = imagecolorallocate($im, 255, 0, 0);
< $black = imagecolorallocate($im, 0, 0, 0);
<
< // Make the background transparent
< imagecolortransparent($im, $black);
<
< // Save the image
< $udirnameprebimg='/tmp/imagecolortransparent.png';
< imagepng($im, $udirnameprebimg);
< $duis='data:image/' . str_replace('jpg','jpeg',strtolower(explode('.',$udirnameprebimg)[-1 + sizeof(explode('.',$udirnameprebimg))])) . ';base64,' . base64_encode(file_get_contents($udirnameprebimg));
< imagedestroy($im);
< unlink($udirnameprebimg);
<
< echo "
<
" . $postuw . "
" . $postuw1 . "
" . $postuw2 . "
" . $postuw3 . "'; \">
< ";
< exit;
< }
< ?>
151,190d91
< var urls=['', '', '', ' ', '', ' ', '', '', ''];
< var omoi=-1;
< var isrelp=false;
<
< function postomoiset() {
< if (isrelp) {
< isrelp=false;
< if (omoi == 4 || omoi == 6) {
< var wasomoi=omoi;
< omoi=-1;
< ouralert(wasomoi);
< }
< }
< }
<
< function omoiset(jnnum) {
< if (eval('' + jnnum) == -1) {
< omoi=jnnum;
< //document.title='omoi=' + omoi;
< isrelp=false;
< //setTimeout(postomoiset, 8000);
< } else if (eval('' + jnnum) == -2) {
< if (omoi != 4 && omoi != 6) {
< omoi=jnnum;
< //document.title='omoi=' + omoi;
< isrelp=false;
< //setTimeout(postomoiset, 8000);
< }
< } else {
< omoi=jnnum;
< //document.title='omoi=' + omoi;
< if (omoi != 4 && omoi != 6) {
< isrelp=false;
< } else {
< isrelp=true;
< //document.title='omoi=' + omoi + '|';
< setTimeout(postomoiset, 8000);
< }
< }
< }
204,263d104
< function ouralert(innum) {
< var ans='';
< switch ('' + innum) {
< case '1':
< if (urls[eval(-1 + eval('' + innum))] != '') {
< ans=prompt('Want to go anywhere? (To save for future append a blank.)', urls[eval(-1 + eval('' + innum))].trim());
< }
< break;
< case '2':
< if (urls[eval(-1 + eval('' + innum))] != '') {
< ans=prompt('Want to go anywhere? (To save for future append a blank.)', urls[eval(-1 + eval('' + innum))].trim());
< }
< break;
< case '3':
< if (urls[eval(-1 + eval('' + innum))] != '') {
< ans=prompt('Want to go anywhere? (To save for future append a blank.)', urls[eval(-1 + eval('' + innum))].trim());
< }
< break;
< case '4':
< if (urls[eval(-1 + eval('' + innum))] != '') {
< ans=prompt('Want to go anywhere? (To save for future append a blank.) Eg. https://www.rjmprogramming.com.au/slideshow.html', urls[eval(-1 + eval('' + innum))].trim());
< }
< break;
< case '5':
< if (urls[eval(-1 + eval('' + innum))] != '') {
< ans=prompt('Want to go anywhere? (To save for future append a blank.)', urls[eval(-1 + eval('' + innum))].trim());
< }
< break;
< case '6':
< if (urls[eval(-1 + eval('' + innum))] != '') {
< ans=prompt('Want to go anywhere? (To save for future append a blank.) Eg. https://www.rjmprogramming.com.au/plus/', urls[eval(-1 + eval('' + innum))].trim());
< }
< break;
< case '7':
< if (urls[eval(-1 + eval('' + innum))] != '') {
< ans=prompt('Want to go anywhere? (To save for future append a blank.)', urls[eval(-1 + eval('' + innum))].trim());
< }
< break;
< case '8':
< if (urls[eval(-1 + eval('' + innum))] != '') {
< ans=prompt('Want to go anywhere? (To save for future append a blank.)', '');
< }
< break;
< case '9':
< if (urls[eval(-1 + eval('' + innum))] != '') {
< ans=prompt('Want to go anywhere? (To save for future append a blank.)', '');
< }
< break;
< default:
< break;
< }
< if (!ans) { ans=''; }
< if (ans != '') {
< window.open(ans.trim(), '_blank');
< if (ans != ans.trim()) {
< window.localStorage.setItem('area' + innum + 'url', encodeURIComponent(ans.trim()));
< }
< }
< }
<
271,315d111
< var myiz=document.getElementById('ifzero').getBoundingClientRect();
< var myhr=document.getElementById('myheader').getBoundingClientRect();
< var myh=eval('' + myhr.height);
< var myt=eval('' + myhr.top);
< var widthleft=eval(eval('' + myiz.left) - eval('' + myhr.left));
< var widthmiddle=eval('' + myiz.width);
< var widthright=eval(eval('' + myhr.width) - eval('' + myiz.width) - eval('' + myiz.left));
< if (document.getElementById('navTop')) {
< var myalthr=document.getElementById('navTop').getBoundingClientRect();
< myh-=eval('' + myalthr.height);
< myt=eval('' + myalthr.height);
< }
< var heighttop=eval(eval('' + myiz.top) - eval('' + myt));
< var heightmiddle=eval('' + myiz.height);
< var heightbottom=eval(eval('' + myh) - eval('' + myiz.height)); // - eval('' + myiz.top));
< if (window.parent != window) {
< myh=myh;
< } else if (('' + window.opener).replace(/^undefined/g,'').replace(/^null/g,'')) {
< myh=myh;
< } else if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPaJUNKd|iPod|Opera Mini|IEMobile/i)) {
< myh=myh;
< } else {
< document.getElementById('myimif').src=document.URL.split('?')[0].split('#')[0] + '?left=' + myhr.left + '&top=' + myt + '&width=' + myhr.width + '&height=' + myh + '&ifleft=' + myiz.left + '&iftop=' + myiz.top + '&ifwidth=' + myiz.width + '&ifheight=' + myiz.height + '&widthleft=' + widthleft + '&widthmiddle=' + widthmiddle + '&widthright=' + widthright + '&heighttop=' + heighttop + '&heightmiddle=' + heightmiddle + '&heightbottom=' + heightbottom;
< setTimeout(imbit, 5000);
< }
< }
<
< function imbit() {
< //if (document.getElementById('myimg')) {
< // document.getElementById('myimg').style.border='5px dashed purple';
< //}
< if (('' + window.localStorage.getItem('area4url')).replace(/^undefined/g,'').replace(/^null/g,'') != '') {
< urls[3]=decodeURIComponent('' + window.localStorage.getItem('area4url'));
< document.getElementById('area4').title=decodeURIComponent('' + window.localStorage.getItem('area4url')) + '# ... long hover of at least 8 seconds for chance to change';
< document.getElementById('area4').href=decodeURIComponent('' + window.localStorage.getItem('area4url'));
< document.getElementById('area4').onclick=function(){ omoiset=-1; urls[3]=urls[3]; }
< //document.getElementById('area4').ondblclick=function(){ ouralert(4); }
< }
< if (('' + window.localStorage.getItem('area6url')).replace(/^undefined/g,'').replace(/^null/g,'') != '') {
< urls[5]=decodeURIComponent('' + window.localStorage.getItem('area6url'));
< document.getElementById('area6').title=decodeURIComponent('' + window.localStorage.getItem('area6url')) + '# ... long hover of at least 8 seconds for chance to change';
< document.getElementById('area6').href=decodeURIComponent('' + window.localStorage.getItem('area6url'));
< document.getElementById('area6').onclick=function(){ omoiset=-1; urls[5]=urls[5]; }
< //document.getElementById('area6').ondblclick=function(){ ouralert(6); }
< }
349c145
<