Permalink
Browse files

No highlight for table

  • Loading branch information...
1 parent b343753 commit 12a0a0864acee088ad32a4f85279ba3629ebd1fb @glinscott committed Oct 2, 2012
Showing with 16 additions and 12 deletions.
  1. +15 −12 chess.html
  2. +1 −0 js/boardui.js
View
@@ -19,18 +19,21 @@
#TimePerMove {
width: 50px;
}
-.sprite-bishop_black{ background-position: 0 0; width: 45px; height: 45px; }
-.sprite-bishop_white{ background-position: 0 -95px; width: 45px; height: 45px; }
-.sprite-king_black{ background-position: 0 -190px; width: 45px; height: 45px; }
-.sprite-king_white{ background-position: 0 -285px; width: 45px; height: 45px; }
-.sprite-knight_black{ background-position: 0 -380px; width: 45px; height: 45px; }
-.sprite-knight_white{ background-position: 0 -475px; width: 45px; height: 45px; }
-.sprite-pawn_black{ background-position: 0 -570px; width: 45px; height: 45px; }
-.sprite-pawn_white{ background-position: 0 -665px; width: 45px; height: 45px; }
-.sprite-queen_black{ background-position: 0 -760px; width: 45px; height: 45px; }
-.sprite-queen_white{ background-position: 0 -855px; width: 45px; height: 45px; }
-.sprite-rook_black{ background-position: 0 -950px; width: 45px; height: 45px; }
-.sprite-rook_white{ background-position: 0 -1045px; width: 45px; height: 45px; }
+ .no-highlight {
+ -webkit-tap-highlight-color: rgba(0,0,0,0);
+ }
+ .sprite-bishop_black{ background-position: 0 0; width: 45px; height: 45px; }
+ .sprite-bishop_white{ background-position: 0 -95px; width: 45px; height: 45px; }
+ .sprite-king_black{ background-position: 0 -190px; width: 45px; height: 45px; }
+ .sprite-king_white{ background-position: 0 -285px; width: 45px; height: 45px; }
+ .sprite-knight_black{ background-position: 0 -380px; width: 45px; height: 45px; }
+ .sprite-knight_white{ background-position: 0 -475px; width: 45px; height: 45px; }
+ .sprite-pawn_black{ background-position: 0 -570px; width: 45px; height: 45px; }
+ .sprite-pawn_white{ background-position: 0 -665px; width: 45px; height: 45px; }
+ .sprite-queen_black{ background-position: 0 -760px; width: 45px; height: 45px; }
+ .sprite-queen_white{ background-position: 0 -855px; width: 45px; height: 45px; }
+ .sprite-rook_black{ background-position: 0 -950px; width: 45px; height: 45px; }
+ .sprite-rook_white{ background-position: 0 -1045px; width: 45px; height: 45px; }
</style>
</head>
<body>
View
@@ -260,6 +260,7 @@ function RedrawBoard() {
var table = document.createElement("table");
table.cellPadding = "0px";
table.cellSpacing = "0px";
+ $(table).addClass('no-highlight');
var tbody = document.createElement("tbody");

0 comments on commit 12a0a08

Please sign in to comment.