forked from tinkerhub/tink-her-hack-temp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtablets.html
More file actions
92 lines (80 loc) · 2.32 KB
/
tablets.html
File metadata and controls
92 lines (80 loc) · 2.32 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tablets</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
margin: 0;
padding: 20px;
background-color: #f0f0f0;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}
th, td {
padding: 20px;
border: 2px solid #333;
}
.shape {
margin: 0 auto;
display: block;
}
.circle {
width: 150px;
height: 150px;
border-radius: 50%; /* Makes it a perfect circle */
background-color: #4CAF50; /* Default color */
}
.oval {
width: 200px;
height: 100px;
border-radius: 50%; /* Creates an oval */
background-color: #FF5722; /* Default color */
}
.customizer {
margin-top: 10px;
}
label {
margin-right: 10px;
}
</style>
</head>
<body>
<h1>Tablets</h1>
<!-- Table for separate boxes -->
<table>
<tr>
<!-- Circle Box -->
<td>
<div class="shape circle" id="circle"></div>
<p>Circle</p>
<div class="customizer">
<label for="circleColor">Change Circle Color: </label>
<input type="color" id="circleColor" value="#4CAF50" onchange="changeColor('circle', this.value)">
</div>
</td>
<!-- Oval Box -->
<td>
<div class="shape oval" id="oval"></div>
<p>Oval</p>
<div class="customizer">
<label for="ovalColor">Change Oval Color: </label>
<input type="color" id="ovalColor" value="#FF5722" onchange="changeColor('oval', this.value)">
</div>
</td>
</tr>
</table>
<script>
// Function to change the color of a shape
function changeColor(shapeId, color) {
document.getElementById(shapeId).style.backgroundColor = color;
}
</script>
</body>
</html>