Browse Source

now using space key for emergency:

* it is larger and easier to hit!
* ESC is used to quit newly introduced full-screen mode
lookup-tables
Stephan Richter 5 years ago
parent
commit
9eb8f5443a
  1. 2
      pom.xml
  2. 5
      resources/css/style.css
  3. 2
      resources/js/plan.js

2
pom.xml

@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>de.srsoftware</groupId>
<artifactId>web4rail</artifactId>
<version>0.11.11</version>
<version>0.11.12</version>
<name>Web4Rail</name>
<packaging>jar</packaging>
<description>Java Model Railway Control</description>

5
resources/css/style.css

@ -106,7 +106,6 @@ svg circle{ @@ -106,7 +106,6 @@ svg circle{
min-width: 30px;
background: white;
padding: 3px;
text-align: center;
}
@ -121,12 +120,12 @@ svg circle{ @@ -121,12 +120,12 @@ svg circle{
.menu > div > .list{
position: absolute;
left: 5%;
left: 0;
bottom: 40px;
width: 90%;
z-index: 10;
background: rgb(198,219,210,0.8);
padding: 20px 5px 0 5px;
padding: 20px 40px 0;
}
.menu > div > .list > *{

2
resources/js/plan.js

@ -118,7 +118,7 @@ function heartbeat(data){ @@ -118,7 +118,7 @@ function heartbeat(data){
}
function keypress(ev){
if (ev.key === "Escape") request({realm:"cu",action:"emergency"})
if (ev.key === " ") request({realm:"cu",action:"emergency"})
}
function moveTile(x,y){

Loading…
Cancel
Save