Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions 30MinTask/Taran012/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
tictac\packages
tictac\.vs
tictac\tictac\bin
1 change: 1 addition & 0 deletions 30MinTask/Taran012/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://taran-tic-tac-toe.netlify.com/
85 changes: 85 additions & 0 deletions 30MinTask/Taran012/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
*{
margin: 0;
padding: 0;
}
html{
background-color: #58D68D;
}
body{
/* background-color: white;*/
}
section{

width: 70%;
margin: 0 auto;
display: flex;
flex-direction: row;
justify-content: space-between;
}
.entity{

border-radius: 15px;
padding: 10px;
display: flex;
flex-direction: column;
align-items: center;
}
.inputs{
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
}
#buttongo1,#buttongo2{
width: 50px;
height: 30px;

}
section input{

border-radius: 15px;
text-align: center;
width: 100px;
height: 40px;
margin: 10px;
}
.buttonsgroup{
width: 80%;
margin: 0 auto;
display: flex;
flex-direction: row;
justify-content: center;
}
.buttongame{
width: 120px;
height: 40px;
margin: 10px auto;
border-radius: 15px;
}
td{
width: 100px;
height: 100px;
background-color: black;
color: white;
border: 0;
text-align: center;
font-size: 48px;

}
h1{
margin-right: auto;
margin-left: auto;
width: 30%;
text-align: center;
padding: 30px;
font-size: 36px;
}
table{
margin: 20px auto;

}
#edit{
margin-right: auto;
margin-left: auto;
display: inline-block;
}
69 changes: 69 additions & 0 deletions 30MinTask/Taran012/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel =stylesheet type = "text/css" href = "index.css" media="screen">
<title>TIC TAC TOE</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>

</head>

<body>
<h1>TIC TAC TOE</h1>
<section>

<div class="entity" id = "player1">
<h3>Player 1 (O)</h3>
<div class="inputs">
<input type="text" Placeholder = "Name" id = "Username1">
<input type="button" value="GO" id = "buttongo1" >
</div>
<div id="scoreboard1">
<h4>Score : <span id = "score1"></span></h4>

</div>
</div>
<div class="entity" id = "player2">
<h3 >Player 2 (X)</h3>
<div class="inputs">
<input type="text" Placeholder = "Name" id = "Username2">
<input type="button" value="GO" id = "buttongo2">
</div>
<div id="scoreboard2">
<h4>Score : <span id = "score2"></span></h4>

</div>
</div>
</section>
<div class="buttonsgroup">

<button class = "buttongame" id ="buttonstart">Start</button>
<button class = "buttongame" id = "buttonreset" >Reset Game</button>
<button class = "buttongame" id = "buttonresetplayers">Reset Players</button>

</div>
<table id="tictable">
<tr>
<td id = "1" onclick = "update(this.id)"> </td>
<td id = "2" onclick = "update(this.id)"> </td>
<td id = "3" onclick = "update(this.id)"> </td>
</tr>

<tr>
<td id = "4" onclick = "update(this.id)"></td>
<td id = "5" onclick = "update(this.id)"></td>
<td id = "6" onclick = "update(this.id)"></td>
</tr>
<tr>
<td id = "7" onclick = "update(this.id)"></td>
<td id = "8" onclick = "update(this.id)"></td>
<td id = "9" onclick = "update(this.id)"></td>
</tr>


</table>
</body>

<script src = "index.js"></script>
</html>
Loading