9) { $waswikistuff=$wikistuff; $wikistuffs=explode("\n", $wikistuff); while (sizeof($wikistuffs) < ($across * $across)) { $wikistuff.=$waswikistuff; $wikistuffs=explode("\n", $wikistuff); } } $lastotherde=''; $wikistuffs=explode("\n", $wikistuff); $wikidesignations=[]; $wikidescriptions=[]; $crandlist=''; $randlist=[]; for ($i=0; $i-', '>-+', $templategame); //} else { //$templategame=str_replace('>-', '>+-', $templategame); //} $arow=''; $rownum=$across; $tdnum=($across * $across); if (1 == 5) { for ($ijk=(1 + $across); $ijk<=$thnum; $ijk++) { if (($ijk % $across) == 1) { $rownum=(1 + ((-1 + $ijk) / $across)); $arow='' . $ijk . ''; } else if (($ijk % $across) == 0) { $arow=str_replace('', '' . $ijk . '', $arow); $templategame=str_replace('', $arow . '', $templategame); $arow=''; } else if (($ijk % $across) > 1) { $arow=str_replace('', '' . $ijk . '', $arow); $templategame=str_replace('', $arow . '', $templategame); $arow=''; } } $templategame=str_replace('', $arow . '', $templategame); //file_put_contents('xx.html', $templategame); } if ($across != $across || 1 == 1) { //$across=99; $irws=1; $sofartd=''; $two=2; if (strpos($templategame, '') !== false) { if ($tstyle != '') { $templategame=str_replace("", "\n
", $templategame); $tstyle=''; } if ($tstyle != '') { $wasih="", explode(""; } else { $wasih="", explode(""; } $templategame=str_replace($wasih, '', $templategame); } if (strpos($templategame, '

') !== false) { $wasih='#f0f0f0;">' . explode('#f0f0f0;">', explode("

", $templategame)[0])[-1 + sizeof(explode('#f0f0f0;">', explode("

", $templategame)[0]))] . "

"; $templategame=str_replace($wasih, '#f0f0f0;width:20px;height:25px;">🖌

', $templategame); } $wasih='
", explode('
"; $origih=$wasih; $newih='
'; $cacross='' . $across; $iacross=strlen($cacross); $thisid=''; $rowsofar=''; $thistdid='td'; $thistdidsuffix=''; $ttcnt=1; for ($thisrow=1; $thisrow<=$across; $thisrow++) { $cthisrow='0000000000' . $thisrow; //$rowsofar=''; $rowsofar=''; //$rowsofar=''; $thistdid='td' . substr($cthisrow, -$iacross, $iacross) . '_'; for ($thiscol=1; $thiscol<=$across; $thiscol++) { $cthiscol='0000000000' . $thiscol; $thistdidsuffix='' . substr($cthiscol, -$iacross, $iacross) . ''; $rowsofar=str_replace('>', '>', $rowsofar); } $newih=str_replace('', $rowsofar . '', $newih); } //echo strlen($newih); //exit; //file_put_contents('x.html', str_replace($origih, $wasih, $templategame)); $changeanyfrom='youllneverfindthis'; $changeanyto='youllneverfindthis'; if (isset($_GET['tableohprefix'])) { $changeanyfrom='width: 90%; height: 53%;'; // tableohprefix $changeanyto='position:absolute;top:0px;left:0px;width:' . trim(explode(';', explode('width:', str_replace('+',' ',urldecode($_GET['tableohprefix'])))[1])[0]) . ';height:' . trim(explode(';', explode('height:', str_replace('+',' ',urldecode($_GET['tableohprefix'])))[1])[0]) . ';'; $changeanyto='width:' . trim(explode(';', explode('width:', str_replace('+',' ',urldecode($_GET['tableohprefix'])))[1])[0]) . ';height:' . trim(explode(';', explode('height:', str_replace('+',' ',urldecode($_GET['tableohprefix'])))[1])[0]) . ';'; //$changeanyfrom='width:90vw;height:53vh;'; // tableohprefix //file_put_contents('x.x', $origih . "\n\n\n" . $newih); //$newih=""; } //else { //file_put_contents('x.x', $origih . "\n\n\n" . $newih); //} //if (strpos($templategame, $origih) !== false) { // file_put_contents('xx.xx', $origih . "\n\n\n" . $newih); //} $templategame=str_replace($changeanyfrom,$changeanyto,str_replace($origih, explode('Canvas Below             ', $origih))[0] . $newih, $templategame)); if (isset($_GET['tableohprefix']) && 1 == 1) { $templategame=str_replace('v' . 'w;', '%' . ';', $templategame); $templategame=str_replace('v' . 'h;', '%' . ';', $templategame); } if (isset($_GET['tableohprefix']) && 4 == 41) { $templategame=str_replace('", "", $templategame); } $templategame=str_replace('93%', '95vw', $templategame); } $templategame=str_replace('1px dotted green', '0px dotted transparent', $templategame); $justforcolouringin=" var rectis=document.getElementById('mytable').getBoundingClientRect(); document.getElementById('mytable').width='' + rectis.height + 'px'; setTimeout(function(){ document.getElementsByTagName('h3')[0].style.display='none'; document.getElementsByTagName('h4')[0].style.display='none'; document.getElementsByTagName('h3')[1].style.display='none'; }, 7000); cibihcheck(); "; $templategame=str_replace('', '', $templategame); $templategame=str_replace('', "\n" . " function getduresult(inr) { document.getElementById('result').innerHTML=inr; onecheck(); return inr; } " . "\n" . '', $templategame); //$templategame=str_replace('>Game', '>Colouring In Numbers Guessing Game Game ... drag pen over canvas to colour in  
', $templategame); $templategame=str_replace('>Game', '>Colouring In Numbers Guessing Game Game
... drag over canvas to colour in   ', $templategame); //'', $templategame); $templategame=str_replace('>', '>' . $scorebit . '', $templategame); $thepsource=explode('f0;">', explode("

", $templategame)[0])[-1 + sizeof(explode('f0;">', explode("

", $templategame)[0]))]; //$templategame=str_replace(', 2023<', ', 2023 ... thanks to https://en.wikipedia.org/wiki/Street_suffix<', $templategame); $templategame=str_replace('>Reset example<', ' style="display:none;">Reset example<', $templategame); if (1 == 2) { $templategame=str_replace('', "", $templategame); } //echo $crandlist . "\n" . $thepsource . "\n" . $correctans . "\n"; //exit; //echo $crandlist . "\n"; //echo "" . $randlist[$correctans] . "\n" . $wikidescriptions[$randlist[$correctans]] . "\n" . $wikidesignations[$randlist[$correctans]]; //exit; if ($randmode == 0) { // designation up top and descriptions in drop zone if (1 == 6) { $templategame=str_replace('>' . (1 + $correctans) . '<', ' style=text-align:center; data-answer="' . $theans . '">' . $theans . '<', $templategame); $templategame=str_replace('">' . $thepsource . '<', 'text-align:center;" data-answer="' . $theans. '">' . $thecluewording . '<', $templategame); for ($i=1; $i<=99; $i++) { if ((-1 + $i) != $correctans) { $templategame=str_replace('>' . $i . '' . $i . '' . (1 + $correctans) . '<', ' style=text-align:center; data-answer="' . $wikidesignations[$randlist[$correctans]] . '">' .$wikidesignations[$randlist[$correctans]] . '<', $templategame); $templategame=str_replace('">' . $thepsource . '<', 'text-align:center;" data-answer="' . $wikidesignations[$randlist[$correctans]] . '">' . $wikidescriptions[$randlist[$correctans]] . '<', $templategame); for ($i=1; $i<=99; $i++) { if ((-1 + $i) != $correctans) { $templategame=str_replace('>' . $i . '' . mapittwo($wikidesignations[$randlist[-1 + $i]]) . '