Pickleball Score Keeper
by Chris
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pickleball Score Keeper</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
/* margin-top: 50px; */
}
.scoreboard {
display: inline-block;
border: 2px solid #000;
/* padding: 20px; */
/* border-radius: 10px; */
/* margin-bottom: 20px; */
}
.team {
margin: 5px;
}
.score {
font-size: 2em;
}
button {
font-size: 1em;
padding: 10px;
margin: 5px;
}
.court {
width: 600px;
height: 300px;
border: 3px solid #000;
margin: 0 auto;
position: relative;
}
.court .net {
width: 100%;
height: 2px;
background-color: #000;
position: absolute;
top: 50%;
transform: translateY(-50%);
}
.court .half {
width: 50%;
height: 100%;
position: absolute;
top: 0;
}
.court .half.left {
left: 0;
background-color: #135;
}
.court .half.right {
right: 0;
background-color: #439;]
}
</style>
</head>
<body>
<h1>Pickleball Score Keeper</h1>
<!-- <div class="scoreboard">
<div class="team">
<p>Team A</p>
<div class="score" id="scoreA">0</div>
<button onclick="incrementScore('A')">+1</button>
<button onclick="decrementScore('A')">-1</button>
</div>
<div class="team">
<p>Team B</p>
<div class="score" id="scoreB">0</div>
<button onclick="incrementScore('B')">+1</button>
...