mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-23 14:42:28 +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,
|
||||
#log-box-close {
|
||||
color: #aaa;
|
||||
float: right;
|
||||
color: #aaa;
|
||||
font-size: 20px;
|
||||
font-weight: bold;
|
||||
-webkit-border-radius: 12px;
|
||||
@ -50,6 +50,11 @@
|
||||
box-shadow: 1px 1px 3px #000;
|
||||
}
|
||||
|
||||
#log-box-close {
|
||||
position: fixed;
|
||||
right: 27%;
|
||||
}
|
||||
|
||||
.dialog-box-close-button:hover,
|
||||
.dialog-box-close-button:focus,
|
||||
#log-box-close:hover,
|
||||
|
@ -10,6 +10,12 @@ $(document).click(function(event) {
|
||||
}
|
||||
});
|
||||
*/
|
||||
|
||||
$(document).keydown(function(event) {
|
||||
if (logBoxOpened && event.keyCode == 27) {
|
||||
logBoxClose();
|
||||
}
|
||||
});
|
||||
|
||||
function logBoxInit() {
|
||||
var closeButton = document.getElementById("log-box-close");
|
||||
|
Loading…
Reference in New Issue
Block a user