Skip to content

Commit

Permalink
The Press esc to quit-bubbles are removed after a second now
Browse files Browse the repository at this point in the history
  • Loading branch information
erkie committed Oct 5, 2010
1 parent 83fe591 commit 7362b4c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions asteroids.js
Expand Up @@ -591,6 +591,12 @@ function Asteroids() {
var y = e.pageY || (e.clientY + document.documentElement.scrollTop);
message.style.left = x - message.offsetWidth/2 + 'px';
message.style.top = y - message.offsetHeight/2 + 'px';

setTimeout(function() {
try {
message.parentNode.removeChild(message);
} catch ( e ) {}
}, 1000);
});

var eventResize = function() {
Expand Down
2 changes: 1 addition & 1 deletion asteroids.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7362b4c

Please sign in to comment.