-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
109 lines (82 loc) · 4.57 KB
/
test.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
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE-edge">
<meta name="viewport" content="width=500, initial-scale=1">
<title>Play free TicTacToe</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/bootstrap-theme.min.css" rel="stylesheet">
<script src="js/jquery-3.1.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script <script src="JS/material.min.js"></script>
<script>
$(document).ready(function() {
var CurrentPlayer = 'x';
$('#a').on ("click", function() {
$('#a').val (CurrentPlayer);
if (CurrentPlayer == 'x') CurrentPlayer = 'o';
else CurrentPlayer = 'x';
});
$('#b').on ("click", function() {
$('#b').val (CurrentPlayer);
if (CurrentPlayer == 'x') CurrentPlayer = 'o';
else CurrentPlayer = 'x';
});
$('#c').on ("click", function() {
$('#c').val (CurrentPlayer);
if (CurrentPlayer == 'x') CurrentPlayer = 'o';
else CurrentPlayer = 'x';
});
$('#d').on ("click", function() {
$('#d').val (CurrentPlayer);
if (CurrentPlayer == 'x') CurrentPlayer = 'o';
else CurrentPlayer = 'x';
});
$('#e').on ("click", function() {
$('#e').val (CurrentPlayer);
if (CurrentPlayer == 'x') CurrentPlayer = 'o';
else CurrentPlayer = 'x';
});
$('#f').on ("click", function() {
$('#f').val (CurrentPlayer);
if (CurrentPlayer == 'x') CurrentPlayer = 'o';
else CurrentPlayer = 'x';
});
$('#g').on ("click", function() {
$('#g').val (CurrentPlayer);
if (CurrentPlayer == 'x') CurrentPlayer = 'o';
else CurrentPlayer = 'x';
});
$('#h').on ("click", function() {
$('#h').val (CurrentPlayer);
if (CurrentPlayer == 'x') CurrentPlayer = 'o';
else CurrentPlayer = 'x';
});
$('#i').on ("click", function() {
$('#i').val (CurrentPlayer);
if (CurrentPlayer == 'x') CurrentPlayer = 'o';
else CurrentPlayer = 'x';
});
});
</script>
</head>
<body background="pu.jpg" bgcolor="#333333">
<h1 <div class="center-block text-center" ><span style="color:darkmagenta;">T</span><span style="color:darkmagenta">i</span><span style="color:darkmagenta;">c</span><span style="color:darkmagenta;">T</span><span style="color:darkmagenta;">a</span><span style="color:darkmagenta;">c</span><span style="color:darkmagenta;">T</span><span style="color:darkmagenta;">o</span><span style="color:darkmagenta;">e</span></div></h1>
<div class="row"><div class="col-xs-4"></div><div class="col-xs-4">
<div class="row ">
<div class="col-xs-12"></div>
<br>
<div class="col-xs-4 nopadding" ><input id="a" type="button" style="width:100%"></div>
<div class="col-xs-4 nopadding" ><input id="b" type="button" style="width:100%"></div>
<div class="col-xs-4 nopadding"><input id="c" type="button" style="width:100%"></div>
<div class="col-xs-4 nopadding"><input id="d" type="button" style="width:100%"></div>
<div class="col-xs-4 nopadding"><input id="e" type="button" style="width:100%"></div>
<div class="col-xs-4 nopadding"><input id="f" type="button" style="width:100%"></div>
<div class="col-xs-4 nopadding"><input id="g" type="button" style="width:100%"></div>
<div class="col-xs-4 nopadding"><input id="h" type="button" style="width:100%"></div>
<div class="col-xs-4 nopadding"><input id="i" type="button" style="width:100%"></div>
</div>
</div>
</div>
<body>
</html>