You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 2-ui/1-document/08-styles-and-classes/2-create-notification/solution.view/index.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
7
7
<body>
8
8
9
-
<h2>Notification is on the right</h2>
9
+
<h2>Сповіщення знаходиться справа</h2>
10
10
11
11
<p>
12
12
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolorum aspernatur quam ex eaque inventore quod voluptatem adipisci omnis nemo nulla fugit iste numquam ducimus cumque minima porro ea quidem maxime necessitatibus beatae labore soluta voluptatum
Copy file name to clipboardExpand all lines: 2-ui/1-document/08-styles-and-classes/2-create-notification/source.view/index.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
7
7
<body>
8
8
9
-
<h2>Notification is on the right</h2>
9
+
<h2>Сповіщення знаходиться справа</h2>
10
10
11
11
<p>
12
12
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolorum aspernatur quam ex eaque inventore quod voluptatem adipisci omnis nemo nulla fugit iste numquam ducimus cumque minima porro ea quidem maxime necessitatibus beatae labore soluta voluptatum
Copy file name to clipboardExpand all lines: 2-ui/1-document/08-styles-and-classes/2-create-notification/task.md
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -2,23 +2,23 @@ importance: 5
2
2
3
3
---
4
4
5
-
# Create a notification
5
+
# Створити сповіщення
6
6
7
-
Write a function `showNotification(options)` that creates a notification: `<div class="notification">`with the given content. The notification should automatically disappear after 1.5 seconds.
7
+
Напишіть функцію `showNotification(options)`, яка створює сповіщення `<div class="notification">`з переданим вмістом. Сповіщення повинно автоматично зникати через 1.5 секунди.
8
8
9
-
The options are:
9
+
Вхідні параметри такі:
10
10
11
11
```js
12
-
//shows an element with the text "Hello" near the right-top of the window
12
+
//показує елемент з текстом "Hello" біля правого верхнього кутка вікна
13
13
showNotification({
14
-
top:10, // 10px from the top of the window (by default 0px)
15
-
right:10, // 10px from the right edge of the window (by default 0px)
16
-
html:"Hello!", //the HTML of notification
17
-
className:"welcome"//an additional class for the div (optional)
14
+
top:10, // 10px від верха вікна (усталено має бути 0px)
15
+
right:10, // 10px від правого краю вікна (усталено — 0px)
16
+
html:"Hello!", // HTML-код сповіщення
17
+
className:"welcome"//додатковий клас для елемента div (необов'язково)
18
18
});
19
19
```
20
20
21
21
[demo src="solution"]
22
22
23
23
24
-
Use CSS positioning to show the element at given top/right coordinates. The source document has the necessary styles.
24
+
Використовуйте позиціонування CSS для розміщення елемента за вказаними координатами `top/right`. Документ з оточенням вже містить всі необхідні стилі.
0 commit comments