implemented finde transl

This commit is contained in:
Stephan Richter
2020-09-12 22:33:17 +02:00
parent 00eb6145da
commit f47def02ac
4 changed files with 99 additions and 16 deletions

2
resources/js/jquery-3.5.1.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@@ -10,6 +10,11 @@ function addTile(tile,x,y){
console.log("addTile:",tile.id,x,y);
x = Math.floor(x/SQUARE);
y = Math.floor(y/SQUARE);
$.ajax({
url : 'plan',
method: 'POST',
data : {mode:mode,tile:tile.id,x:x,y:y}
});
var id = 'tile-'+x+'-'+y;
$('#'+id).remove();
var tile = $(tile).clone().css({left:(30*x)+'px',top:(30*y)+'px','border':''}).attr('id',id);