2024-08-27 22:04:05 -05:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>Color Flipper</title>
|
|
|
|
<style>
|
|
|
|
#green {
|
|
|
|
background-color: green;
|
|
|
|
}
|
|
|
|
#red {
|
|
|
|
background-color: red;
|
|
|
|
}
|
|
|
|
#blue {
|
|
|
|
background-color: blue;
|
|
|
|
}
|
2024-08-27 22:29:54 -05:00
|
|
|
#white{
|
|
|
|
background-color: white;
|
|
|
|
}
|
2024-08-28 11:18:40 -05:00
|
|
|
#purple{
|
|
|
|
background-color: purple;
|
|
|
|
}
|
2024-09-04 12:02:01 -05:00
|
|
|
#teal{
|
|
|
|
background-color: teal;
|
|
|
|
}
|
2024-08-27 22:04:05 -05:00
|
|
|
button {
|
|
|
|
border-radius: 5px;
|
2024-08-28 11:18:40 -05:00
|
|
|
width: 60px;
|
|
|
|
margin: 1px;
|
2024-08-27 22:04:05 -05:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h3>Color Flipper</h3>
|
|
|
|
<script src="a.js"></script>
|
2024-08-27 22:25:20 -05:00
|
|
|
<button id="green" onclick=setColor('green')>green</button>
|
|
|
|
<button id="red"onclick=setColor('red')> red</button>
|
|
|
|
<button id="blue"onclick=setColor('blue')>blue</button>
|
2024-08-27 22:29:54 -05:00
|
|
|
<button id="white"onclick=setColor('white')>white</button>
|
2024-08-28 11:18:40 -05:00
|
|
|
<button id="purple"onclick=setColor('purple')>purple</button>
|
2024-09-04 12:02:01 -05:00
|
|
|
<button id="teal"onclick=setColor('teal')>teal</button>
|
2024-08-27 22:25:20 -05:00
|
|
|
<button onclick=randomColor()>random</button>
|
2024-08-27 22:04:05 -05:00
|
|
|
</body>
|
|
|
|
</html>
|