Part 2: Get the Code
1. Go to Gitea in your browser:
https://gitea.techshare.cc
2. Login with your credentials
3. Fork this repository:
https://gitea.techshare.cc/technolyceum/g11-m2.git
Click the "Fork" button to create your own copy
4. Clone your forked repository:
git clone https://gitea.techshare.cc/your-username/g11-m2.git
Replace "your-username" with your actual Gitea username
5. Enter the project folder:
cd g11-m2
Part 3: Coding Tasks
Task 1: CSS Styling
Find the .chess-board CSS and add:
width: 400px;
height: 400px;
display: grid;
border: 3px solid gray;
Task 2: JavaScript Function
Find the function and replace with:
function createChessBoard() {
Task 3: For Loops
Find the loops and replace with:
for (let row = 0; row < 8; row++) {
for (let col = 0; col < 8; col++) {
Test your work:
- Save the HTML file
- Open it in a browser
- Click "Create Chess Board"
- You should see a chess board with 64 squares!