Skip to content

Commit

Permalink
Added exercise README.md and gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
TAS-scorchedshadow committed Feb 21, 2024
1 parent 5df71fe commit eda286d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
2 changes: 2 additions & 0 deletions exercises/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
__pycache__
.venv
17 changes: 17 additions & 0 deletions exercises/js_dom_manipulation/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Javascript DOM Exercises

## Exercise 1
For this exercise only change **ex1.js**. Use javascript to change the following things on the html page

- Add your name in the h2 element with id #name
- Make the text bigger and green
- Change the img src to show a photo of a cat
- Change the style of all of the squares so that they appear on the page

## Exercise 2
For this exercise alter both **ex2.js** and **ex2.html** so that when button(x) is pressed it will fill in the center box with the corresponding html.

## Exercise 3
Complete the fetch code in **ex3.js**. Write the friendly advice from the API to the given box.

**Bonus ⭐**: Try using another api! You could also try to use an api that takes an input and combine that with some kind of text input
6 changes: 3 additions & 3 deletions exercises/js_dom_manipulation/ex1/ex1.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ <h3>Replace UNSW with a cute cat picture</h3>

<h3>Make the squares appear!</h3>
<div id="square-container">
<div class="square hidden">Hi</div>
<div class="square hidden"></div>
<div class="square hidden"></div>
<div class="square hidden">A</div>
<div class="square hidden">B</div>
<div class="square hidden">C</div>
</div>

<!-- Link js here-->
Expand Down

0 comments on commit eda286d

Please sign in to comment.