diff --git a/Week1/homework/app.js b/Week1/homework/app.js index ffef836dc..2430f6ed9 100644 --- a/Week1/homework/app.js +++ b/Week1/homework/app.js @@ -1,11 +1,156 @@ 'use strict'; -{ - const bookTitles = [ + +/* const bookTitles = [ // Replace with your own book titles - 'harry_potter_chamber_secrets' + 'i_am_number_four', + 'the_power_of_six', + 'the_rise_of_nine', + 'the_fall_of_five', + 'the_revenge_of_seven', + 'the_fate_of_ten', + 'united_as_one', + 'twee_verhalen_van_sherlock_holmes', + 'the_analyst', + 'in_the_heat_of_summer' ]; + + function generatingBookList () { + + // Creating the DOM element. + + let generatingP = document.createElement('p'); + let generatingUl = document.createElement('ul'); + generatingP.appendChild(generatingUl); + + // Creating the function + + for (let i = 0; i \ No newline at end of file + + + + + + + + JavaScript2 - Yaacob! + + + + +
+ + + + \ No newline at end of file diff --git a/Week1/homework/style.css b/Week1/homework/style.css index bab13ec23..ea804cab2 100644 --- a/Week1/homework/style.css +++ b/Week1/homework/style.css @@ -1 +1,49 @@ -/* add your styling here */ \ No newline at end of file +body { + background-color: rgb(4, 37, 65); + font-family: Arial, Helvetica, sans-serif; + text-align: center; + box-sizing: border-box; + text-align: center; + display: flex; + flex-wrap: wrap; + } + + div { + display: flex; + flex-wrap: wrap; + } + + h2 { + background-color: #fff; + border-radius: 15px; + padding: 0 15px; + cursor: pointer; + } + + h2:hover { + transform: translateX(2px); + } + + img { + width:200px; + height:300px; + border-radius: 12px; + transition-duration: 3ms; + } + + img:hover { + transform: translateX(3px); + } + + ul li { + list-style: none; + } + + p { + color: rgb(252, 252, 252); + font-size: 1.2em; + } + + :hover { + transition: all 0.3s; + } \ No newline at end of file