add reload button to disconnected-page
This commit is contained in:
parent
b3fa4c1b27
commit
16a807f144
4 changed files with 20 additions and 11 deletions
File diff suppressed because one or more lines are too long
|
|
@ -378,6 +378,10 @@ window.addEventListener("load", function() {
|
||||||
window.history.back();
|
window.history.back();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
document.getElementById("reloadbutton").addEventListener("click",
|
||||||
|
function(e) {
|
||||||
|
location.reload();
|
||||||
|
});
|
||||||
pad.addEventListener("touchstart", handleStart, false);
|
pad.addEventListener("touchstart", handleStart, false);
|
||||||
pad.addEventListener("touchend", handleEnd, false);
|
pad.addEventListener("touchend", handleEnd, false);
|
||||||
pad.addEventListener("touchcancel", handleCancel, false);
|
pad.addEventListener("touchcancel", handleCancel, false);
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div id="closed">
|
<div id="closed">
|
||||||
<p>Disconnected</p>
|
<p>Disconnected</p>
|
||||||
|
<button id="reloadbutton">↻</button>
|
||||||
</div>
|
</div>
|
||||||
<div id="pad">
|
<div id="pad">
|
||||||
<p id="padlabel">Touchpad</p>
|
<p id="padlabel">Touchpad</p>
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ body {
|
||||||
font-size: 2em;
|
font-size: 2em;
|
||||||
color: white;
|
color: white;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
#pad {
|
#pad {
|
||||||
|
|
@ -42,16 +43,19 @@ body {
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
#fullscreenbutton, #keyboardbutton, #sendbutton {
|
#fullscreenbutton, #keyboardbutton, #sendbutton, #reloadbutton {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border: 1px solid black;
|
border: 1px solid black;
|
||||||
border-bottom: none;
|
|
||||||
height: 1.5em;
|
height: 1.5em;
|
||||||
width: 2em;
|
width: 2em;
|
||||||
font-size: 2em;
|
font-size: 2em;
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#fullscreenbutton, #keyboardbutton, #sendbutton {
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
|
||||||
#fullscreenbutton {
|
#fullscreenbutton {
|
||||||
border-left: none;
|
border-left: none;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue