mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-01-11 15:57:33 +01:00
Merge pull request #68 from danielyxie/dev
Esc can be used to close log box. Log box close button scrolls down i…
This commit is contained in:
commit
57b9ac88f3
@ -38,8 +38,8 @@
|
|||||||
|
|
||||||
.dialog-box-close-button,
|
.dialog-box-close-button,
|
||||||
#log-box-close {
|
#log-box-close {
|
||||||
color: #aaa;
|
|
||||||
float: right;
|
float: right;
|
||||||
|
color: #aaa;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
-webkit-border-radius: 12px;
|
-webkit-border-radius: 12px;
|
||||||
@ -50,6 +50,11 @@
|
|||||||
box-shadow: 1px 1px 3px #000;
|
box-shadow: 1px 1px 3px #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#log-box-close {
|
||||||
|
position: fixed;
|
||||||
|
right: 27%;
|
||||||
|
}
|
||||||
|
|
||||||
.dialog-box-close-button:hover,
|
.dialog-box-close-button:hover,
|
||||||
.dialog-box-close-button:focus,
|
.dialog-box-close-button:focus,
|
||||||
#log-box-close:hover,
|
#log-box-close:hover,
|
||||||
|
@ -10,6 +10,12 @@ $(document).click(function(event) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
$(document).keydown(function(event) {
|
||||||
|
if (logBoxOpened && event.keyCode == 27) {
|
||||||
|
logBoxClose();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
function logBoxInit() {
|
function logBoxInit() {
|
||||||
var closeButton = document.getElementById("log-box-close");
|
var closeButton = document.getElementById("log-box-close");
|
||||||
|
Loading…
Reference in New Issue
Block a user