JavaScript Taskbook Level 8.9
Задание 1
Given a menu with links. Make it so that when you click on a menu link, a submenu appears underneath it.
Задание 2
Given a paragraph with words and a button. By clicking on the button, paint each word a random color so that adjacent paragraphs have different colors.
Задание 3
This div has a closing cross. Make it so that by clicking on the cross, or on any place on the page outside the div, this div hides.
Задание 4
Given textarea and ul. Text is entered into textarea. Make it so that when you press Shift + Enter, each line of text is added to the list as a separate tag li.
Задание 5
The following list of things to do for a specific date is given:
javascriptlet affairs = {
'2019-12-31': ['array of cases'],
'2018-11-29': ['array of cases'],
'2018-11-30': ['array of cases'],
'2018-12-27': ['array of cases'],
'2019-12-29': ['array of cases'],
'2019-12-30': ['array of cases'],
'2018-12-30': ['array of cases'],
'2018-12-31': ['array of cases'],
}
Display all cases for 2018 year.