GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Styles and classes by dbritto-dev · Pull Request #413 · javascript-tutorial/es.javascript.info

Styles and classes #413

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
joaquinelio merged 20 commits into javascript-tutorial:master from dbritto-dev:styles-classes
Oct 20, 2020

Uh oh!

There was an error while loading. Please reload this page.

Merged

Styles and classes #413

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
5505fec
WIP
dbritto-dev Oct 12, 2020
bd4b67a
WIP
dbritto-dev Oct 12, 2020
557466d
WIP
dbritto-dev Oct 12, 2020
dbb4233
WIP
dbritto-dev Oct 13, 2020
cd18376
WIP
dbritto-dev Oct 17, 2020
07af51a
WIP
dbritto-dev Oct 17, 2020
833c318
WIP
dbritto-dev Oct 17, 2020
4aaafbf
Minor changes
dbritto-dev Oct 17, 2020
1910164
Update 2-ui/1-document/08-styles-and-classes/article.md
dbritto-dev Oct 17, 2020
a6bce5b
Update 2-ui/1-document/08-styles-and-classes/article.md
dbritto-dev Oct 17, 2020
5bae251
Update 2-ui/1-document/08-styles-and-classes/article.md
dbritto-dev Oct 17, 2020
68bfee0
Update 2-ui/1-document/08-styles-and-classes/article.md
dbritto-dev Oct 17, 2020
5516205
Update 2-ui/1-document/08-styles-and-classes/article.md
dbritto-dev Oct 17, 2020
da858fa
Update 2-ui/1-document/08-styles-and-classes/article.md
dbritto-dev Oct 17, 2020
d3f7554
Update 2-ui/1-document/08-styles-and-classes/article.md
dbritto-dev Oct 17, 2020
4394f5b
Update 2-ui/1-document/08-styles-and-classes/article.md
dbritto-dev Oct 17, 2020
1409fae
Update 2-ui/1-document/08-styles-and-classes/article.md
dbritto-dev Oct 17, 2020
b335cf5
Update 2-ui/1-document/08-styles-and-classes/article.md
dbritto-dev Oct 17, 2020
0022411
Update 2-ui/1-document/08-styles-and-classes/article.md
dbritto-dev Oct 18, 2020
e2cc988
Update 2-ui/1-document/08-styles-and-classes/article.md
dbritto-dev Oct 18, 2020
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view

There are no files selected for viewing

16 changes: 8 additions & 8 deletions 16 2-ui/1-document/08-styles-and-classes/2-create-notification/task.md
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@ importance: 5

---

# Create a notification
# Crear una notificación

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.
Escribir una función `showNotification(options)` que cree una notificación: `<div class="notification">` con el contenido dado. La notificación debería desaparecer automáticamente despues de 1.5 segundos.

The options are:

```js
// shows an element with the text "Hello" near the right-top of the window
// muestra un elemento con el texto "Hello" cerca de la parte superior de la ventana
showNotification({
top: 10, // 10px from the top of the window (by default 0px)
right: 10, // 10px from the right edge of the window (by default 0px)
html: "Hello!", // the HTML of notification
className: "welcome" // an additional class for the div (optional)
top: 10, // 10px desde la parte superior de la ventana (por defecto es 0px)
right: 10, // 10px desde el borde derecho de la ventana (por defecto es 0px)
html: "Hello!", // el HTML de la notificación
className: "welcome" // una clase adicional para el "div" (opcional)
});
```

[demo src="solution"]


Use CSS positioning to show the element at given top/right coordinates. The source document has the necessary styles.
Usar posicionamiento CSS para mostrar el elemento en las coordenadas (top/right) dadas. El documento tiene los estilos necesarios.
Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.