$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 = "";');
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;