diff --git a/classes/plugininfo/booktool.php b/classes/plugininfo/booktool.php
deleted file mode 100644
index 687daca..0000000
--- a/classes/plugininfo/booktool.php
+++ /dev/null
@@ -1,37 +0,0 @@
-.
-// You should have received a copy of the GNU General Public License
-// along with Moodle. If not, see .
-
-/**
- * Subplugin info class.
- *
- * @package mod_game
- * @copyright 2014 Vasilis Daloukas
- * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
- */
-namespace mod_game\plugininfo;
-
-use core\plugininfo\base;
-
-defined('MOODLE_INTERNAL') || die();
-
-
-class gametool extends base {
- public function is_uninstall_allowed() {
- return true;
- }
-}
diff --git a/cross/play.php b/cross/play.php
index 326ac18..36b4a4d 100755
--- a/cross/play.php
+++ b/cross/play.php
@@ -589,17 +589,15 @@ function SelectThisWord(event)
else
TableCell = CellAt(x, y + i);
// Add its contents to the word we're building.
- if (TableCell.innerHTML != null && TableCell.innerHTML.length > 0 && TableCell.innerHTML != " " && TableCell.innerHTML.toLowerCase() != " ")
- {
+ if (TableCell.innerHTML != null && TableCell.innerHTML.length > 0 &&
+ TableCell.innerHTML != " " && TableCell.innerHTML.toLowerCase() != " ") {
TheirWord += TableCell.innerHTML.toUpperCase();
TheirWordLength++;
- }
- else
- {
+ } else {
TheirWord += "•";
}
}
-
+
document.getElementById("wordlabel").innerHTML = TheirWord;
- document.getElementById("wordinfo").innerHTML = ((CurrentWord <= LastHorizontalWord) ? ) + WordLength[CurrentWord] + (WordLength[CurrentWord] == 1 ? );
+ var s = ((CurrentWord <= LastHorizontalWord) ? );
+ s = s + WordLength[CurrentWord] + (WordLength[CurrentWord] == 1 ? );
+ document.getElementById("wordinfo").innerHTML = s;
+
document.getElementById("wordclue").innerHTML = Clue[CurrentWord];
document.getElementById("worderror").style.display = "none";
//document.getElementById("cheatbutton").style.display = (Word.length == 0) ? "none" : "";
@@ -652,13 +653,17 @@ function OKClick()
}
if (TheirWord.length < WordLength[CurrentWord])
{
- document.getElementById("worderror").innerHTML = "" + WordLength[CurrentWord] + " ";
+ var s = "";
+ s = s + WordLength[CurrentWord] + " ";
+ document.getElementById("worderror").innerHTML = s;
document.getElementById("worderror").style.display = "block";
return;
}
if (TheirWord.length > WordLength[CurrentWord])
{
- document.getElementById("worderror").innerHTML = "" + WordLength[CurrentWord] + " ";;
+ var s = "";
+ s = s + WordLength[CurrentWord] + " ";
+ document.getElementById("worderror").innerHTML = s;
document.getElementById("worderror").style.display = "block";
return;
}
@@ -988,11 +993,13 @@ function CheckHtmlClick()
get_string( 'cross_checkbutton', 'game');
echo '';
- echo '