3

Developer
Size
1,905 Kb
Views
20,240

How do I make an 3?

What is a 3? How do you make a 3? This script and codes were developed by Lichi Chen on 18 October 2022, Tuesday.

3 Previews

3 - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>3</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h1>Choices of City to Travel</h1>
<canvas id="one" class="pinkback"> Choice one
</canvas>
<canvas id="two" class="greenback"> Choice two
</canvas>
<p> <input type = "button" value = "pink" onclick = "dopink()"> <input type = "button" value = "blue" onclick = "doblue()"> <input type = "button" value = "green" onclick = "dogreen()"> <input type = "button" value = "purple" onclick = "dopurple()">
</p> <script src="js/index.js"></script>
</body>
</html>

3 - Script Codes CSS Codes

canvas { width: 200px; hight: 100px; margin: 20px;
}

3 - Script Codes JS Codes

function dopink() { var c1 = document.getElementById("one"); c1.style.backgroundColor = "pink"; var ctx = c1.getContext("2d"); ctx.clearRect(10,10,60,60); ctx.clearRect(80,10,60,60); ctx.clearRect(150,10,60,60);
}
function doblue() { var c1 = document.getElementById("one"); c1.style.backgroundColor = "blue"; var ctx = c1.getContext("2d"); ctx.fillStyle = "yellow"; ctx.fillRect(10,10,60,60); ctx.fillRect(80,10,60,60); ctx.fillRect(150,10,60,60); ctx.fillStyle = "black"; ctx.font = "20px Arial"; ctx.fillText("Hello",15,40);
}
function dogreen() { var c2 = document.getElementById("two"); c2.style.backgroundColor = "green";
}
function dopurple() { var c2 = document.getElementById("two"); c2.style.backgroundColor = "purple";
}
3 - Script Codes
3 - Script Codes
Home Page Home
Developer Lichi Chen
Username chenlichiclc
Uploaded October 18, 2022
Rating 3
Size 1,905 Kb
Views 20,240
Do you need developer help for 3?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Lichi Chen (chenlichiclc) Script Codes
Create amazing marketing copy with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!