altered style of disabled tiles
This commit is contained in:
@@ -227,3 +227,12 @@ h4,ul{
|
||||
.menu div.emergency{
|
||||
background: #ffb561;
|
||||
}
|
||||
|
||||
svg.disabled circle,
|
||||
svg.disabled line,
|
||||
svg.disabled polygon,
|
||||
svg.disabled rect{
|
||||
fill: #ddddef;
|
||||
stroke-width:5;
|
||||
stroke: red;
|
||||
}
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user