altered style of disabled tiles

This commit is contained in:
Stephan Richter
2020-11-02 13:24:06 +01:00
parent 817c8fb60d
commit 7d5d5f3bb2
4 changed files with 14 additions and 6 deletions

View File

@@ -159,7 +159,7 @@ function request(data){
if (data.realm != 'car' && data.realm != 'loco') closeWindows();
if (resp.startsWith('<html')) return;
if (resp.startsWith('<svg')){
$(PLAN).append($(resp));
place(resp);
} else if (resp.startsWith('<')) {
var isWindow = $(resp).attr('class') == 'window';
if (isWindow) $('.window').remove();
@@ -186,10 +186,7 @@ function runAction(ev){
function stream(ev){
var data = ev.data;
console.log("received: ",data);
if (data.startsWith('<svg')) {
$(PLAN).append($(data));
return false;
}
if (data.startsWith('<svg')) return place(data);
if (data.startsWith("heartbeat")) return heartbeat(data);
if (data.startsWith("place ")) return place(data.substring(6));
if (data.startsWith("remove")) return remove(data.substring(7));