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
+4-4
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>A notificação está à direita</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
@@ -32,14 +32,14 @@ <h2>Notification is on the right</h2>
Copy file name to clipboardExpand all lines: 2-ui/1-document/08-styles-and-classes/2-create-notification/source.view/index.html
+5-5
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>A notificação está è direita</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
@@ -16,17 +16,17 @@ <h2>Notification is on the right</h2>
16
16
17
17
<script>
18
18
functionshowNotification({top =0, right =0, className, html}){
Copy file name to clipboardExpand all lines: 2-ui/1-document/08-styles-and-classes/2-create-notification/task.md
+9-10
Original file line number
Diff line number
Diff line change
@@ -2,23 +2,22 @@ importance: 5
2
2
3
3
---
4
4
5
-
# Create a notification
5
+
# Crie uma notificação
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
+
Escreva uma função`showNotification(options)`que cria uma notificação: `<div class="notification">`com o conteúdo especificado. A notificação deve desaparecer automaticamente depois de 1.5 segundos.
8
8
9
-
The options are:
9
+
As opções são:
10
10
11
11
```js
12
-
//shows an element with the text "Hello" near the right-top of the window
12
+
//mostra um elemento com o texto "Olá" próximo ao canto superior direito da janela
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 a partir do topo da janela (por padrão 0px)
15
+
right:10, // 10px a partir da borda a direita da janela (por padrão 0px)
16
+
html:"Olá!", //o HTML da notificação
17
+
className:"bem-vindo"//uma classe adicional para a div (opcional)
18
18
});
19
19
```
20
20
21
21
[demo src="solution"]
22
22
23
-
24
-
Use CSS positioning to show the element at given top/right coordinates. The source document has the necessary styles.
23
+
Utilize posicionamento com CSS para mostrar o elemento nas coordenadas superiores/direitas especificadas. O documento fonte possui os estilos necessários.
0 commit comments