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
1 change: 1 addition & 0 deletions SahilSharma020/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://nifty-yonath-4dd944.netlify.com/
7 changes: 7 additions & 0 deletions SahilSharma020/css/bootstrap.min.css

Large diffs are not rendered by default.

37 changes: 37 additions & 0 deletions SahilSharma020/css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
.tic{
margin: 5em auto;
}

button{
border: 0;
height: 100px;
width: 100px;
background-color: white;
font-size: 50px;
}


.left{
border-right: 5px solid black;
}


.top{
border-top: 5px solid black;
}

.bottom{
border-bottom: 2px solid black;
}

.points{
border: 1px solid black;
max-width:300px;
margin: auto;
}

header{
margin: 30px 0 0;
display: block;
text-align: center;
}
53 changes: 53 additions & 0 deletions SahilSharma020/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="css/bootstrap.min.css" class="css">
<link rel="stylesheet" href="css/main.css">
<title>Document</title>
</head>
<body>
<header>
<h5><span id="p1">Player 1</span> is playing X<h5>
<h5><span id="p2">Player 2</span> is playing O<h5>
</header>

<table class="tic">
<tr>
<td class="left"><button type="button" name="button" value="1"></button></td>
<td class="left"><button type="button" name="button" value="2"></button></td>
<td><button type="button" name="button" value="3"></button></td>
</tr>
<tr class="top">
<td class="left"><button type="button" name="button" value="4"></button></td>
<td class="left"><button type="button" name="button" value="5"></button></td>
<td><button type="button" name="button" value="6"></button></td>
</tr>
<tr class="top">
<td class="left"><button type="button" name="button" value="7"></button></td>
<td class="left"><button type="button" name="button" value="8"></button></td>
<td><button type="button" name="button" value="9"></button></td>
</tr>
<div id="scorecard">
<table class="table table-striped points" id="points">
<thead>
<tr>
<th scope="col">Users</th>
<th scope="col">Scores</th>
</tr>
</thead>
<tbody id="tbody">
</tbody>
</table>
</div>

</table>
<script
src="https://code.jquery.com/jquery-3.3.1.js"
integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60="
crossorigin="anonymous"></script>
<script src="index.js" charset="utf-8"></script>
</body>
</html>
Loading