From 02c97864e5c25576e7128492409ef60a0e74fdce Mon Sep 17 00:00:00 2001 From: Matteo Nastasi Date: Sun, 3 May 2020 14:09:32 +0200 Subject: [PATCH] typo fixed --- web/briskin5/Obj/briskin5.phh | 2 +- web/briskin5/index.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/briskin5/Obj/briskin5.phh b/web/briskin5/Obj/briskin5.phh index dea3e87..bae5ff0 100644 --- a/web/briskin5/Obj/briskin5.phh +++ b/web/briskin5/Obj/briskin5.phh @@ -1950,7 +1950,7 @@ function briscola_show($bri, $table, $user) $ret .= sprintf('$("caller").style.backgroundImage = \'url("img/brisk_caller_sand%d.png")\';', $table->asta_win); - $ret .= sprintf('$("callerimg").setAttribute("data-card-id", "%02d"; ', $table->briscola); + $ret .= sprintf('$("callerimg").setAttribute("data-card-id", "%02d"); ', $table->briscola); $ret .= sprintf('$("caller").style.visibility = "visible";'); $ret .= sprintf('$("chooseed").style.visibility = "hidden";'); $ret .= sprintf('$("astalascio").style.visibility = "";'); diff --git a/web/briskin5/index.php b/web/briskin5/index.php index 983fd60..a35bd9b 100644 --- a/web/briskin5/index.php +++ b/web/briskin5/index.php @@ -131,8 +131,8 @@ window.onload = function() { xstm.hbit_set(heartbit); /* dynamic callerimg positioning */ - $("callerimg").style.left = (160 - cards_width_d2); - $("callerimg").style.top = (60 - cards_height_d2); + $("callerimg").style.left = (160 - cards_width_d2) + "px"; + $("callerimg").style.top = (60 - cards_height_d2) + "px"; window.onbeforeunload = onbeforeunload_cb; window.onunload = onunload_cb; -- 2.17.1