10,12d9
< $fhapp="";
< $topapp="";
< $prescore="";
17,56d13
< if (isset($_GET['topic'])) {
< if (strlen(trim(str_replace('+',' ',urldecode($_GET['topic'])))) > 0) {
< $prescore='topic=' . $_GET['topic'] . '&';
< $recallit='./inhouse_blog_game.php?topic=' . $_GET['topic'] . '&score=' . explode('.',$_GET['score'])[0] . '/' . $_GET['secs'];
< $fhapp=$_GET['topic'];
< $topapp=' ' . trim(str_replace('+',' ',urldecode($_GET['topic'])));
< }
< }
< } else if (isset($_POST['score']) && isset($_POST['secs'])) {
< $scorebit="Score " . explode('.',$_POST['score'])[0] . '/' . $_POST['secs'];
< $recallit.='?score=' . explode('.',$_POST['score'])[0] . '/' . $_POST['secs'];
< if (isset($_POST['topic'])) {
< if (strlen(trim(str_replace('+',' ',urldecode($_POST['topic'])))) > 0) {
< $prescore='topic=' . $_POST['topic'] . '&';
< $recallit='./inhouse_blog_game.php?topic=' . $_POST['topic'] . '&score=' . explode('.',$_POST['score'])[0] . '/' . $_POST['secs'];
< $fhapp=$_POST['topic'];
< $topapp=' ' . trim(str_replace('+',' ',urldecode($_POST['topic'])));
< }
< }
< } else {
< if (isset($_GET['topic'])) {
< if (strlen(trim(str_replace('+',' ',urldecode($_GET['topic'])))) > 0) {
< $prescore='topic=' . $_GET['topic'] . '&';
< $recallit.='?topic=' . $_GET['topic'];
< $fhapp=$_GET['topic'];
< $topapp=' ' . trim(str_replace('+',' ',urldecode($_GET['topic'])));
< }
< } else if (isset($_POST['topic'])) {
< if (strlen(trim(str_replace('+',' ',urldecode($_POST['topic'])))) > 0) {
< $prescore='topic=' . $_POST['topic'] . '&';
< $recallit.='?topic=' . $_POST['topic'];
< $fhapp=$_POST['topic'];
< $topapp=' ' . trim(str_replace('+',' ',urldecode($_POST['topic'])));
< }
< }
< }
<
< if ($recallit == './inhouse_blog_game.php' && !isset($_GET['reload'])) {
< echo "
Experimental Drag and Drop - RJM Programming- July, 2023 ... thanks to https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/setData";
< exit;
71c28
< 1#//www.rjmprogramming.com.au/ITblog/600/400" . $fhapp . "/?random=" . $ourrand . "1437195
---
> 1#//www.rjmprogramming.com.au/ITblog/600/400/?random=" . $ourrand . "1437195
74c31
< 2#//www.rjmprogramming.com.au/ITblog/600/400" . $fhapp . "/?random=" . $ourrand . "2437195
---
> 2#//www.rjmprogramming.com.au/ITblog/600/400/?random=" . $ourrand . "2437195
77c34
< 3#//www.rjmprogramming.com.au/ITblog/600/400" . $fhapp . "/?random=" . $ourrand . "3437195
---
> 3#//www.rjmprogramming.com.au/ITblog/600/400/?random=" . $ourrand . "3437195
80c37
< 4#//www.rjmprogramming.com.au/ITblog/600/400" . $fhapp . "/?random=" . $ourrand . "4437195
---
> 4#//www.rjmprogramming.com.au/ITblog/600/400/?random=" . $ourrand . "4437195
83c40
< 5#//www.rjmprogramming.com.au/ITblog/600/400" . $fhapp . "/?random=" . $ourrand . "5437195
---
> 5#//www.rjmprogramming.com.au/ITblog/600/400/?random=" . $ourrand . "5437195
86c43
< 6#//www.rjmprogramming.com.au/ITblog/600/400" . $fhapp . "/?random=" . $ourrand . "6437195
---
> 6#//www.rjmprogramming.com.au/ITblog/600/400/?random=" . $ourrand . "6437195
89c46
< 7#//www.rjmprogramming.com.au/ITblog/600/400" . $fhapp . "/?random=" . $ourrand . "7437195
---
> 7#//www.rjmprogramming.com.au/ITblog/600/400/?random=" . $ourrand . "7437195
92c49
< 8#//www.rjmprogramming.com.au/ITblog/600/400" . $fhapp . "/?random=" . $ourrand . "8437195
---
> 8#//www.rjmprogramming.com.au/ITblog/600/400/?random=" . $ourrand . "8437195
95c52
< 9#//www.rjmprogramming.com.au/ITblog/600/400" . $fhapp . "/?random=" . $ourrand . "9437195";
---
> 9#//www.rjmprogramming.com.au/ITblog/600/400/?random=" . $ourrand . "9437195";
159c116
< //$randmode=0;
---
> $randmode=1;
229c186
< $templategame=str_replace('>Game<', '>Inhouse Bl' . 'og' . $topapp . ' Game ... drag to matching correct answer to score<', $templategame);
---
> $templategame=str_replace('>Game<', '>Inhouse Bl' . 'og Game ... drag to matching correct answer to score<', $templategame);
236,240d192
< $templategame=str_replace('RJM Programming - ', 'RJM Programming + ', $templategame);
< $templategame=str_replace('RJM Programming - ', 'RJM Programming + ', $templategame);
< $templategame=str_replace('RJM Programming - ', 'RJM Programming + ', $templategame);
<
<
251d202
< $ordns=['ZERO','ONE','TWO','THREE','FOUR','FIVE','SIX','SEVEN','EIGHT','NINE'];
259,260c210
< $precall=file_get_contents('http:' . str_replace('http:','',explode('#', $wikidesignations[$correctans])[1]));
< $templategame=str_replace('>' . (1 + $correctans) . '<', ' data-answer="' . explode(' ... ', $categorizations[$grandlist[$correctans]])[0] . '">' . explode('#',$wikidesignations[$correctans])[0] . '<', $templategame);
---
> $templategame=str_replace('>' . (1 + $correctans) . '<', ' data-answer="' . explode(' ... ', $wikidescriptions[$grandlist[$correctans]])[0] . '"><', $templategame);
264,265c214
< //$templategame=str_replace('>' . $thepsource . '<', ' data-answer="' . explode(' ... ', $wikidescriptions[$grandlist[$correctans]])[0] . '" style="background-color:#f0f0f0;background:URL(' . str_replace('http:','',explode('#', $wikidesignations[$grandlist[$correctans]])[1]) . '); background-repeat: no-repeat; background-size: contain;background-position: center right;border:5px dashed pink;" alt="f0;">
' . explode('#', $wikidesignations[$grandlist[$correctans]])[0] . '
<', $templategame);
< $templategame=str_replace('>' . $thepsource . '<', ' data-answer="' . explode(' ... ', $wikidescriptions[$grandlist[$correctans]])[0] . '" style="background-color:#f0f0f0;background:URL(' . str_replace('http:','',explode('#', $wikidesignations[$grandlist[$correctans]])[1]) . '); background-repeat: no-repeat; background-size: contain;background-position: center right;border:5px dashed pink;" alt="f0;">
' . '
<', $templategame);
---
> $templategame=str_replace('>' . $thepsource . '<', ' data-answer="' . explode(' ... ', $wikidescriptions[$grandlist[$correctans]])[0] . '" style="background-color:#f0f0f0;background:URL(' . str_replace('http:','',explode('#', $wikidesignations[$grandlist[$correctans]])[1]) . '); background-repeat: no-repeat; background-size: contain;background-position: center right;border:5px dashed pink;" alt="f0;">
' . explode('#', $wikidesignations[$grandlist[$correctans]])[0] . '
<', $templategame);
271,273c220
< //$templategame=str_replace('>' . $i . '' . $categorizations[-1 + $i] . '' . $i . '' . explode('#',$wikidesignations[-1 + $i])[0] . ' $templategame=str_replace('>' . $i . '' . $categorizations[-1 + $i] . '<';
< if (strpos($cont, $lookforis) !== false) {
< if ($randmode == 0) {
< $templategame=str_replace("location.href=document.getElementById('callback').value + '?score=' + score + '&secs=' + secs;", "setTimeout(function(){ document.body.style.cursor='progress'; location.href = document.getElementById('callback').value + '?" . $prescore . "score=' + score + '&secs=' + secs; }, 8000);", str_replace("location.href=document.getElementById('callback').value + '?" . $prescore . "score=' + score + '&secs=' + secs;", "setTimeout(function(){ document.body.style.cursor='progress'; location.href = document.getElementById('callback').value + '?" . $prescore . "score=' + score + '&secs=' + secs; }, 8000);", $templategame));
< $tois='>' . explode("\n", explode($lookforis, $cont)[0])[-1 + sizeof(explode("\n", explode($lookforis, $cont)[0]))] . '';
< $templategame=str_replace('>', $tois, $templategame);
< if (1 == 1) {
< for ($iw=1; $iw<=9; $iw++) {
< $lookforis='?random=' . $ourrand . $iw;
< $parts=explode('>' . $iw . '', $templategame);
< if (sizeof($parts) >= 2) {
< $dtois='';
< $xtois=explode("\n", explode($lookforis, $cont)[0])[-1 + sizeof(explode("\n", explode($lookforis, $cont)[0]))];
< $tois=explode(' (', explode("\n", explode($lookforis, $cont)[0])[-1 + sizeof(explode("\n", explode($lookforis, $cont)[0]))])[0];
< if (strpos(explode("\n", explode($lookforis, $cont)[0])[-1 + sizeof(explode("\n", explode($lookforis, $cont)[0]))], ' (') !== false) {
< $dtois=explode(')', explode(' (', explode("\n", explode($lookforis, $cont)[0])[-1 + sizeof(explode("\n", explode($lookforis, $cont)[0]))])[1])[0];
< $templategame=str_replace('?random=' . $ourrand . $iw . '437195', '?mustbedated=' . toyyyymmdd($dtois), $templategame);
< $parts=explode('>' . $iw . '', $templategame);
< }
< $templategame=str_replace($parts[0], $parts[0] . ' data-blogtitle="' . $tois . '"' . ' data-blogdate="' . $dtois . '" title="Double click for hint" ondblclick="window.open(' . "'//www.rjmprogramming.com.au/slideshow.html?title=' + encodeURIComponent(this.getAttribute('data-blogtitle')),'_blank','top=50,left=50,width=800,height=800'" . ');" oncontextmenu="window.open(' . "'//www.rjmprogramming.com.au/ITblog/' + thefauxencodeURIComponent(this.getAttribute('data-blogtitle')),'_blank','top=60,left=60,width=800,height=800'" . ');"', $templategame);
< $templategame=str_replace('>' . $iw . '', '>' . $xtois . '', $templategame);
< $templategame=str_replace(' data-answer="' . $ordns[$iw] . '"', ' data-answer="' . $xtois . '"', $templategame);
< }
< }
< }
< }
< //} else {
< // file_put_contents('x.x', $lookforis . ' ... ' . $cont);
< // exit;
< }
<
394,395c286
< //$templategame=str_replace("location.href=document.getElementById('callback').value + '?score=' + score + '&secs=' + secs;", "setTimeout(function(){ location.href=document.getElementById('callback').value + '?score=' + score + '&secs=' + secs; }, 8000);", $templategame);
< $templategame=str_replace("location.href=document.getElementById('callback').value + '?score=' + score + '&secs=' + secs;", "setTimeout(function(){ document.body.style.cursor='progress'; location.href = document.getElementById('callback').value + '?" . $prescore . "score=' + score + '&secs=' + secs; }, 8000);", str_replace("location.href=document.getElementById('callback').value + '?" . $prescore . "score=' + score + '&secs=' + secs;", "setTimeout(function(){ document.body.style.cursor='progress'; location.href = document.getElementById('callback').value + '?" . $prescore . "score=' + score + '&secs=' + secs; }, 8000);", $templategame));
---
> $templategame=str_replace("location.href=document.getElementById('callback').value + '?score=' + score + '&secs=' + secs;", "setTimeout(function(){ location.href=document.getElementById('callback').value + '?score=' + score + '&secs=' + secs; }, 8000);", $templategame);