1F435 Alt + X<>Alt + 128018<>Alt + 129421<>Alt + 129447<>Alt + 128054<>Alt + 128021<>Alt + 129454<>Alt + 128041<>Alt + 128058< >Alt + 129418<>Alt + 129437<>Alt + 128049<>Alt + 128008<>Alt + 129409<>Alt + 128047<>Alt + 128005< >Alt + 128006<>Alt + 128052<>Alt + 128014<>Alt + 129412<>Alt + 129427<>Alt + 129743<>Alt + 129742<>Alt + 129420< >Alt + 129452<>Alt + 128046<>Alt + 128002<>Alt + 128003<>Alt + 128004<>Alt + 128055<>Alt + 128022<>Alt + 128023< >Alt + 128061<>Alt + 128015<>Alt + 128017<>Alt + 128016<>Alt + 128042<>Alt + 128043<>Alt + 129433<>Alt + 129426< >Alt + 128024<>Alt + 129443<>Alt + 129423<>Alt + 129435<>Alt + 128045>Alt + 128001< >Alt + 128000<>Alt + 128057<>Alt + 128048<>Alt + 128007<>Alt + 128063<>Alt + 129451<>Alt + 129428<>Alt + 129415<>Alt + 128059<>Alt + 128040< >Alt + 128060<>Alt + 129445<>Alt + 129446<>Alt + 129448<>Alt + 129432<>Alt + 129441<>Alt + 128062<>Alt + 129411<>Alt + 128020<>Alt + 128019< >Alt + 128035<>Alt + 128036<>Alt + 128037<>Alt + 128038<>Alt + 128039<>Alt + 128330<>Alt + 129413<>Alt + 129414<>Alt + 129442<>Alt + 129417< >Alt + 129444<>Alt + 129718<>Alt + 129449<>Alt + 129434<>Alt + 129436<>Alt + 129725<>Alt + 129727<>Alt + 128056<>Alt + 128010<>Alt + 128034< >Alt + 129422<>Alt + 128013<>Alt + 128050<>Alt + 128009<>Alt + 129429<>Alt + 129430<>Alt + 128051<>Alt + 128011<>Alt + 128044< >Alt + 129453<>Alt + 128031<>Alt + 128032<>Alt + 128033<>Alt + 129416<>Alt + 128025<>Alt + 128026<>Alt + 129720< >Alt + 129724<>Alt + 128012<>Alt + 129419<>Alt + 128027<>Alt + 128028<>Alt + 128029<>Alt + 129714<>Alt + 128030<>Alt + 129431< >Alt + 129715<>Alt + 128375<>Alt + 128376<>Alt + 129410<>Alt + 129439<>Alt + 129712<>Alt + 129713<>Alt + 129440<'; function mapit($inidea) { global $vclasses, $vcontents, $animaltbody; $outidea=$inidea; if (strtolower($inidea) == 'vegetable') { $ifv=rand(1, sizeof($vclasses)); return '&#' . $vcontents[-1 + $ifv] . ';'; } else { $ifv=rand(128000, 129742); if (strtolower($inidea) == 'animal') { if (strpos($animaltbody, ' + ' . $ifv . '<') !== false) { return '&#' . $ifv . ';'; } else { while (strpos($animaltbody, ' + ' . $ifv . '<') === false) { $ifv=rand(128000, 129742); } return '&#' . $ifv . ';'; } } else if (strtolower($inidea) != 'animal') { return '&#' . rand(128640, 128676) . ';'; } } return $outidea; } function mapittwo($inidea) { global $vclasses, $vcontents, $animaltbody; $outidea=$inidea; if (strtolower($inidea) == strtolower('Vegetable')) { $ifv=rand(1, sizeof($vclasses)); return '&#' . $vcontents[-1 + $ifv] . ';'; } else { $ifv=rand(128000, 129742); if (strtolower($inidea) == strtolower('Animal')) { if (strpos($animaltbody, ' + ' . $ifv . '<') !== false) { return '&#' . $ifv . ';'; } else { while (strpos($animaltbody, ' + ' . $ifv . '<') === false) { $ifv=rand(128000, 129742); } return '&#' . $ifv . ';'; } } else if (strtolower($inidea) != strtolower('Animal')) { return '&#' . rand(128640, 128676) . ';'; } } return $outidea; } $scorebit=''; if (isset($_GET['score']) && isset($_GET['secs'])) { $scorebit="Score " . $_GET['score'] . '/' . $_GET['secs']; } $wikistuff="animal Animal mineral Mineral vegetable Vegetable"; $lastotherde=''; $wikistuffs=explode("\n", $wikistuff); $wikidesignations=[]; $wikidescriptions=[]; $crandlist=''; $randlist=[]; for ($i=0; $i789','',str_replace('456','',file_get_contents('./experimental_drag_and_drop.htm'))))); $ione=rand(0,2); $itwo=$ione; $ithree=$ione; while ($itwo == $ione) { $itwo=rand(0,2); } while ($ithree == $ione || $ithree == $itwo) { $ithree=rand(0,2); } $templategame=str_replace('', '', $templategame); $templategame=str_replace('', '', $templategame); $templategame=str_replace('>Game<', '>Animal Mineral Vegetable Game ... drag to matching correct answer to score<', $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); //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 $templategame=str_replace('>' . (1 + $correctans) . '<', ' style=text-align:center; data-answer="' . $wikidescriptions[$randlist[$correctans]] . '">' . $wikidescriptions[$randlist[$correctans]] . '<', $templategame); $templategame=str_replace('">' . $thepsource . '<', 'text-align:center;" data-answer="' . $wikidescriptions[$randlist[$correctans]] . '">' . mapit($wikidesignations[$randlist[$correctans]]) . '<', $templategame); for ($i=1; $i<=3; $i++) { if ((-1 + $i) != $correctans) { $templategame=str_replace('>' . $i . '' . $wikidescriptions[$randlist[-1 + $i]] . '' . (1 + $correctans) . '<', ' style=text-align:center; data-answer="' . $wikidesignations[$randlist[$correctans]] . '">' . mapittwo($wikidesignations[$randlist[$correctans]]) . '<', $templategame); $templategame=str_replace('">' . $thepsource . '<', 'text-align:center;" data-answer="' . $wikidesignations[$randlist[$correctans]] . '">' . $wikidescriptions[$randlist[$correctans]] . '<', $templategame); for ($i=1; $i<=3; $i++) { if ((-1 + $i) != $correctans) { $templategame=str_replace('>' . $i . '' . mapittwo($wikidesignations[$randlist[-1 + $i]]) . '