I have the following DIV:
<div id="overlays" style="background-image: url(http://agar.io/img/background.png); position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 200; margin-top: -20px">
When playing the div disappears and when losing it reappears
function hideESCOverlay() {
escOverlay = false;
wjQuery("#overlays").hide();
}
function showESCOverlay(arg) {
escOverlay = true;
userNickName = null;
wjQuery("#overlays").fadeIn(350);
}
My problem is that I want to play once once overlays disappears, the overlay image disappears forever but the overlays do not disappear.
I'm going to play and the overlay disappears and I lose and reappears the overlay without its background image