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:
danielyxie 2017-06-17 13:19:56 -05:00 committed by GitHub
commit 57b9ac88f3
2 changed files with 12 additions and 1 deletions

@ -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");