|
51 | 51 | - [Exercise: Level 1](#exercise-level-1)
|
52 | 52 | - [Exercise: Level 2](#exercise-level-2)
|
53 | 53 | - [Exercise: Level 3](#exercise-level-3)
|
54 |
| - - [DOM: Mini Projects](#dom-mini-projects) |
| 54 | + - [DOM: Mini project 1](#dom-mini-project-1) |
55 | 55 |
|
56 | 56 | # Day 20
|
57 | 57 |
|
@@ -742,19 +742,46 @@ We can access all the key numbers of the keyboard using different event listener
|
742 | 742 | 8. Select all paragraphs and loop through each elements and give the first and third paragraph a color of color, and the second and the fourth paragraph a red color
|
743 | 743 | 9. Remove all the paragraph and create them using JavaScript
|
744 | 744 | 10. Set text content, id and class to each paragraph
|
745 |
| -11. Create a div container on HTML document and create 100 numbers dynamically and append to the container div. Put each number in 150px by 150px box. If the number is even the background will be lightgreen else lightblue. |
| 745 | + |
746 | 746 |
|
747 | 747 | ### Exercise: Level 2
|
748 | 748 |
|
| 749 | +1. Create a div container on HTML document and create 100 numbers dynamically and append to the container div. Put each number in 150px by 150px box. If the number is even the background will be lightgreen else lightblue. |
| 750 | + |
749 | 751 | 1. Use the rgb color generator function or hexaColor generator to create 10 divs with random background colors
|
750 | 752 |
|
751 | 753 | ### Exercise: Level 3
|
752 | 754 |
|
753 |
| -1. Use the countries.js to visualize all the countries on the HTML document. You need one wrapper div and box for each countries. In the box display, the letter the country starts with, the name of the country and the number of characters for the country name. |
| 755 | +#### DOM: Mini project 1 |
754 | 756 |
|
| 757 | +1. Develop the following application, use the following HTML elements to get started with. You will get the same code on starter folder. Apply all the styles and functionality using JavaScript only. |
755 | 758 |
|
756 |
| -### DOM: Mini Projects |
| 759 | + ```html |
| 760 | +<!-- index.html --> |
| 761 | +<!DOCTYPE html> |
| 762 | +<html> |
| 763 | + <head> |
| 764 | + <title>JavaScript for Everyone:DOM</title> |
| 765 | + </head> |
| 766 | + <body> |
| 767 | + <div class="wrapper"> |
| 768 | + <h1>Asabeneh Yetayeh challenges in 2020</h1> |
| 769 | + <h2>30DaysOfJavaScript Challenge</h2> |
| 770 | + <ul> |
| 771 | + <li>30DaysOfPython Challenge Done</li> |
| 772 | + <li>30DaysOfJavaScript Challenge Ongoing</li> |
| 773 | + <li>30DaysOfReact Challenge Coming</li> |
| 774 | + <li>30DaysOfFullStack Challenge Coming</li> |
| 775 | + <li>30DaysOfDataAnalysis Challenge Coming</li> |
| 776 | + <li>30DaysOfReactNative Challenge Coming</li> |
| 777 | + <li>30DaysOfMachineLearning Challenge Coming</li> |
| 778 | + </ul> |
| 779 | + </div> |
| 780 | + </body> |
| 781 | +</html> |
| 782 | +``` |
757 | 783 |
|
| 784 | + |
758 | 785 |
|
759 | 786 | 🎉 CONGRATULATIONS ! 🎉
|
760 | 787 |
|
|
0 commit comments