Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

client: Make ships visible in Chrome again.

It turns out that Firefox and Chrome implement "display: none;"
differently.
  • Loading branch information...
commit 4732459cabef942dcc0985dafbcb4bf63337acad 1 parent 368d1ae
@heyLu authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 client/ui_teaser.html
View
8 client/ui_teaser.html
@@ -36,6 +36,10 @@
#friendlyShip, #evilShip, #ghostShip {
width: 100px;
height: 100px;
+
+ visibility: hidden;
+ z-index: 0;
+ cursor: crosshair;
}
#space {
@@ -418,10 +422,6 @@
ad.ui.pmass.oninput = calc_projectile_velocity;
ad.ui.energy.oninput = calc_projectile_velocity;
- ad.evilShip.setAttribute("style", "display: none;");
- ad.friendlyShip.setAttribute("style", "display: none;");
- ad.ghostShip.setAttribute("style", "display: none;");
-
space.onmousemove = function(ev) {
ad.lastEv = ev;
Please sign in to comment.
Something went wrong with that request. Please try again.