Skip to content

Commit 9949565

Browse files
authored
Merge pull request GoogleCloudPlatform#379 from GoogleCloudPlatform/firebase-quotes
Double quotes for html attributes.
2 parents b9ffe41 + 5791829 commit 9949565

File tree

1 file changed

+20
-19
lines changed
  • appengine/firebase-tictactoe/src/main/webapp/WEB-INF/view

1 file changed

+20
-19
lines changed

appengine/firebase-tictactoe/src/main/webapp/WEB-INF/view/index.jsp

+20-19
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<!DOCTYPE html>
1818
<html>
1919
<head>
20+
<meta charset="utf-8">
2021
<%@ include file="firebase_config.jspf" %>
2122
<link rel="stylesheet" type="text/css" href="static/main.css" />
2223
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
@@ -28,30 +29,30 @@
2829
</script>
2930
</head>
3031
<body>
31-
<div id='display-area' class="waiting">
32+
<div id="display-area" class="waiting">
3233
<h2>Firebase-enabled Tic Tac Toe</h2>
33-
<div id='other-player'>
34+
<div id="other-player">
3435
Waiting for another player to join.<br>
3536
Send them this link to play:<br>
36-
<div id='game-link'><a href='<%= request.getAttribute("game_link") %>'><%= request.getAttribute("game_link") %></a></div>
37+
<div id="game-link"><a href="<%= request.getAttribute("game_link") %>"><%= request.getAttribute("game_link") %></a></div>
3738
</div>
38-
<div id='your-move'>Your move! Click a square to place your piece.</div>
39-
<div id='their-move'>Waiting for other player to move...</div>
40-
<div id='you-won'>You won this game!</div>
41-
<div id='you-lost'>You lost this game.</div>
42-
<div id='board'>
43-
<div class='t l cell' id='0'></div>
44-
<div class='t c cell' id='1'></div>
45-
<div class='t r cell' id='2'></div>
46-
<div class='m l cell' id='3'></div>
47-
<div class='m c cell' id='4'></div>
48-
<div class='m r cell' id='5'></div>
49-
<div class='b l cell' id='6'></div>
50-
<div class='b c cell' id='7'></div>
51-
<div class='b r cell' id='8'></div>
39+
<div id="your-move">Your move! Click a square to place your piece.</div>
40+
<div id="their-move">Waiting for other player to move...</div>
41+
<div id="you-won">You won this game!</div>
42+
<div id="you-lost">You lost this game.</div>
43+
<div id="board">
44+
<div class="t l cell" id="0"></div>
45+
<div class="t c cell" id="1"></div>
46+
<div class="t r cell" id="2"></div>
47+
<div class="m l cell" id="3"></div>
48+
<div class="m c cell" id="4"></div>
49+
<div class="m r cell" id="5"></div>
50+
<div class="b l cell" id="6"></div>
51+
<div class="b c cell" id="7"></div>
52+
<div class="b r cell" id="8"></div>
5253
</div>
53-
<div id='this-game' float='top'>
54-
Quick link to this game: <span id='this-game-link'><a href='<%= request.getAttribute("game_link") %>'><%= request.getAttribute("game_link") %></a></span>
54+
<div id="this-game" float="top">
55+
Quick link to this game: <span id="this-game-link"><a href="<%= request.getAttribute("game_link") %>"><%= request.getAttribute("game_link") %></a></span>
5556
</div>
5657
</div>
5758
</body>

0 commit comments

Comments
 (0)