3
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 - 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";
}
Developer | Lichi Chen |
Username | chenlichiclc |
Uploaded | October 18, 2022 |
Rating | 3 |
Size | 1,905 Kb |
Views | 20,240 |
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!
Name | Size |
Color chooser practice-1 | 1,730 Kb |
My Interests Page | 2,331 Kb |
Draft | 2,161 Kb |
Color chooser practice-2 | 1,887 Kb |
2 | 1,975 Kb |
1 | 1,885 Kb |
Week 3 | 2,287 Kb |
The Filter Page | 3,026 Kb |
Upload and Display | 2,022 Kb |
The Filter Page-3 | 2,033 Kb |
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!
Name | Username | Size |
PNotify Demo | Adittmar | 1,731 Kb |
Polygon Logo in CSS | Kai | 3,412 Kb |
A bit of elegance | Hackthevoid | 9,095 Kb |
Automatic scroll | Skeurentjes | 4,042 Kb |
Faux column absolute wrapper | Yurimorini | 1,823 Kb |
Text Blocks Over Image, Updated | KatieK2 | 3,122 Kb |
Wikipedia API | Coderpilot | 2,802 Kb |
Wikipedia viewer | Chpecson | 2,865 Kb |
Tab panels | Accessibility | 0 Kb |
A Pen by James Podles | Jpod | 2,656 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!