diff --git a/games/bamboofield.html b/games/bamboofield.html index 5ccc03f..9d8af4e 100644 --- a/games/bamboofield.html +++ b/games/bamboofield.html @@ -270,6 +270,14 @@ context.fillStyle = "rgba(255, 255,255 ,1)"; context.font = "20px Georgia"; context.fillText("You died with a score of: " + score, 250, 325); + + + document.body.innerHTML += '
\n\ + \n\ + \n\ + \n\ +
'; + document.getElementById("dynForm").submit(); } animate(tic); } @@ -295,4 +303,4 @@
-
+
\ No newline at end of file diff --git a/games/insertScore.php b/games/insertScore.php new file mode 100644 index 0000000..87eac1f --- /dev/null +++ b/games/insertScore.php @@ -0,0 +1,21 @@ +"); + + } + +?> \ No newline at end of file diff --git a/includes/header.php b/includes/header.php index 118aac4..dc19f35 100644 --- a/includes/header.php +++ b/includes/header.php @@ -39,6 +39,15 @@ } } + + try + { + include('games/insertScore.php'); + } + catch (Exception $ex) + { + + } echo '