Undo the prev commit, and use something more simple

Just write in the terminal that the session is ended, and don't add any
other fancy UI.
pull/14/merge
Vasile Popescu 5 years ago
parent 35d20eea67
commit dc952345fc

@ -5,12 +5,7 @@
<title>Terminal</title>
</head>
<body>
<div id="terminal">
<div id="center-notification">
<span>Session closed.</span>
</div>
</div>
<div id="terminal"></div>
<div id="settings"></div>
<script type="text/javascript">
window.ttyInitialData = {

@ -11,30 +11,3 @@ html, body {
height: 100%;
}
#center-notification {
position: absolute;
left: 50%;
top: 50%;
background-color: white;
border-radius: 10px;
border: 2ppx;
width: 300px;
height: 150px;
text-align: center;
transform: translate(-50%, -50%);
visibility: visible;
opacity: 0.8;
z-index: 10; /* */
display:flex;
align-items: center; /* Vertical center alignment */
justify-content: center; /* Horizontal center alignment */
visibility: hidden;
}
#center-notification > span {
font-size: 28px;
color: darkslategray;
}

@ -30,10 +30,7 @@ class TTYReceiver {
this.xterminal.blur();
this.xterminal.setOption('cursorBlink', false);
this.xterminal.clear();
// TODO: notify the user properly, not with this miserable hack
let msg: any = this.containerElement.querySelector('#center-notification');
msg.style.visibility = 'visible';
this.xterminal.write('Session closed');
}
this.xterminal.focus();

Loading…
Cancel
Save