-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
158 lines (155 loc) · 6.91 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<!DOCTYPE html>
<html lang="en-us">
<html>
<head>
<title>
Tic Tac Toe.
</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!-- Latest compiled JavaScript -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
</head>
<body>
<div class="container">
<center>
<h1>Tic-Tac-Toe</h1></center>
<hr>
<div class="row">
<div class="col-md-12">
<center>
<h4>Select your Oponent.</h4>
<form>
<input onclick="getOpponent(value) " type="radio" name="opponent" value="person" autofocus required> Human
<input onclick="getOpponent(value) " type="radio" name="opponent" value="computer"> Computer.
</form>
<span style="font-size: 10px">*Please Select an Opponent to proceed.Default=Players.</span>
<hr>
<h4>Select The Symbol You want to play With.</h4>
<form required>
<input onclick="getSymbol(value)" type="radio" name="symbol" value="X" autofocus checked> X
<input onclick="getSymbol(value)" type="radio" name="symbol" value="O"> O </form>
<span style="font-size: 10px">*If You Dont Select A Symbol ,By Default Your Symbol Will Be X</span>
<br>
</center>
<br>
<br>
</div>
<!-- <div class="col-md-4 score" style="text-align:center;">
<h4>ScoreBoard.</h4>
<div class="row">
<div class="table-responsive">
<table class="table" style="text-align:center;">
<thead>
<tr>
<th id="p1">
Player 1
</th>
<th id="p2">
Player 2
</th>
</tr>
</thead>
<tbody>
<tr>
<th id="plones">0</th>
<th id="pltwos">0</th>
</tr>
</tbody>
</table>
</div>
</div>
</div> -->
<br>
<div class="row" id="nameDiv" style="display:none;text-align:center;">
<div class="col-md-12">
<div class="col-md-6">
<div class="col-md-6">
Player1:
</div>
<div class="col-md-6">
<input type="text" id="playerOne">
</div>
</div>
<div class="col-md-6">
<div class="col-md-3">
Player2:
</div>
<div class="col-md-6">
<input type="text" id="playerTwo">
</div>
</div>
</div>
</div>
<div class="row" id="nameDivCom" style="display:none;text-align:center;">
<div class="col-md-12">
Player1:
<input type="text" id="playerOneCom">
</div>
</div>
<br>
<div class="row">
<div class="col-sm-12" style="text-align: center;">
<button id="strt" type="submit" class="btn btn-lg btn-primary">Start Game.</button>
<button id="quit" class="btn btn-lg btn-danger">Quit Game.</button>
</div>
</div>
<!-- onclick="location.reload()" -->
<br>
<div class="row">
<div class="col-md-6 col-md-offset-3">
<!-- <div class="col-md-6" style="font-size: 15px;">
<div class="well" ></div>
</div> -->
<center>
<div style=" font-family: fantasy;font-size:20px;">
<div id="result" class="well">Who's Turn : <span id="turn" style="font-size:30px;">X</span></div>
</div>
</center>
</div>
</div>
<br>
<div class="row">
<div class="col-md-6 col-md-offset-3">
<div id="b1" class="light"></div>
<div id="b2" class="light"></div>
<div id="b3" class="light"></div>
<div id="b4" class="light"></div>
<div id="b5" class="light"></div>
<div id="b6" class="light"></div>
<div id="b7" class="light"></div>
<div id="b8" class="light"></div>
<div id="b9" class="light"></div>
</div>
</div>
</div>
<br>
<br>
<div class="row">
<div class="col-sm-12">
<div class="foot-text text-center" style="text-align:center;">
coded by
<p>
</br>
<a href="https://github.com/ashish1500616?tab=overview&from=2016-07-08" target="_blank">Ashish verma.</a>
</p>
<img align="middle" alt="Teen2Geek" src="https://teen2geek.files.wordpress.com/2016/06/screen-shot-2016-06-16-at-2-53-00-pm.png" style="width:100px" />
<p>
</br>
<!-- <a href="https://teen2geek.wordpress.com/" target="_blank"><i class="fa fa-copyright">reserved with teen2geek.wordpress.com</i> -->
</a>
</p>
</div>
</div>
</div>
<!-- <button onclick="location.reload()" class="btn btn-lg btn-success">Quit Game </button> -->
<script src="script.js"></script>
<script src="script2.js"></script>
</body>
</html>