diff --git a/2-ui/2-events/03-event-delegation/1-hide-message-delegate/solution.view/index.html b/2-ui/2-events/03-event-delegation/1-hide-message-delegate/solution.view/index.html index 6f8ed9c4d..9880695e5 100644 --- a/2-ui/2-events/03-event-delegation/1-hide-message-delegate/solution.view/index.html +++ b/2-ui/2-events/03-event-delegation/1-hide-message-delegate/solution.view/index.html @@ -10,18 +10,18 @@
-

Horse

-

The horse is one of two extant subspecies of Equus ferus. It is an odd-toed ungulate mammal belonging to the taxonomic family Equidae. The horse has evolved over the past 45 to 55 million years from a small multi-toed creature, Eohippus, into the large, single-toed animal of today.

+

Cavalo

+

O cavalo é uma das duas subespécies existentes de Equus ferus. É um mamífero ungulado de dedo ímpar pertencente à família taxonômica Equidae. O cavalo evoluiu nos últimos 45 a 55 milhões de anos, de uma pequena criatura de vários dedos, o Eohippus, até o grande animal de dedo único de hoje.

-

Donkey

-

The donkey or ass (Equus africanus asinus) is a domesticated member of the horse family, Equidae. The wild ancestor of the donkey is the African wild ass, E. africanus. The donkey has been used as a working animal for at least 5000 years.

+

Burro

+

O burro ou jumento (Equus africanus asinus) é um membro domesticado da família dos cavalos, Equidae. O ancestral selvagem do burro é o jumento-selvagem-africano, E. africanus. O burro é usado como animal de trabalho há pelo menos 5000 anos.

-

Cat

-

The domestic cat (Latin: Felis catus) is a small, typically furry, carnivorous mammal. They are often called house cats when kept as indoor pets or simply cats when there is no need to distinguish them from other felids and felines. Cats are often valued by humans for companionship and for their ability to hunt vermin. +

Gato

+

O gato doméstico (em latim: Felis catus) é um mamífero carnívoro pequeno, geralmente peludo. Eles são frequentemente chamados de gatos caseiros quando mantidos como animais de estimação dentro de casa, ou simplesmente gatos quando não há necessidade de distingui-los de outros felídeos e felinos. Os gatos são frequentemente valorizados pelos humanos por companhia e por sua habilidade de caçar pragas.

diff --git a/2-ui/2-events/03-event-delegation/1-hide-message-delegate/source.view/index.html b/2-ui/2-events/03-event-delegation/1-hide-message-delegate/source.view/index.html index 8a9ed9a09..bdb26f855 100644 --- a/2-ui/2-events/03-event-delegation/1-hide-message-delegate/source.view/index.html +++ b/2-ui/2-events/03-event-delegation/1-hide-message-delegate/source.view/index.html @@ -10,25 +10,25 @@
-

Horse

-

The horse is one of two extant subspecies of Equus ferus. It is an odd-toed ungulate mammal belonging to the taxonomic family Equidae. The horse has evolved over the past 45 to 55 million years from a small multi-toed creature, Eohippus, into the large, single-toed animal of today.

+

Cavalo

+

O cavalo é uma das duas subespécies existentes de Equus ferus. É um mamífero ungulado de dedo ímpar pertencente à família taxonômica Equidae. O cavalo evoluiu nos últimos 45 a 55 milhões de anos, de uma pequena criatura de vários dedos, o Eohippus, até o grande animal de dedo único de hoje.

-

Donkey

-

The donkey or ass (Equus africanus asinus) is a domesticated member of the horse family, Equidae. The wild ancestor of the donkey is the African wild ass, E. africanus. The donkey has been used as a working animal for at least 5000 years.

+

Burro

+

O burro ou jumento (Equus africanus asinus) é um membro domesticado da família dos cavalos, Equidae. O ancestral selvagem do burro é o jumento-selvagem-africano, E. africanus. O burro é usado como animal de trabalho há pelo menos 5000 anos.

-

Cat

-

The domestic cat (Latin: Felis catus) is a small, typically furry, carnivorous mammal. They are often called house cats when kept as indoor pets or simply cats when there is no need to distinguish them from other felids and felines. Cats are often valued by humans for companionship and for their ability to hunt vermin. +

Gato

+

O gato doméstico (em latim: Felis catus) é um mamífero carnívoro pequeno, geralmente peludo. Eles são frequentemente chamados de gatos caseiros quando mantidos como animais de estimação dentro de casa, ou simplesmente gatos quando não há necessidade de distingui-los de outros felídeos e felinos. Os gatos são frequentemente valorizados pelos humanos por companhia e por sua habilidade de caçar pragas.

diff --git a/2-ui/2-events/03-event-delegation/1-hide-message-delegate/task.md b/2-ui/2-events/03-event-delegation/1-hide-message-delegate/task.md index 62c0a8ab0..56a147a64 100644 --- a/2-ui/2-events/03-event-delegation/1-hide-message-delegate/task.md +++ b/2-ui/2-events/03-event-delegation/1-hide-message-delegate/task.md @@ -2,12 +2,12 @@ importance: 5 --- -# Hide messages with delegation +# Oculte mensagens com delegação -There's a list of messages with removal buttons `[x]`. Make the buttons work. +Há uma lista de mensagens com botões de remoção `[x]`. Faça os botões funcionarem. -Like this: +Assim: [iframe src="solution" height=420] -P.S. Should be only one event listener on the container, use event delegation. +P.S. Deve haver apenas um manipulador de evento no container, use delegação de eventos. diff --git a/2-ui/2-events/03-event-delegation/2-sliding-tree/solution.md b/2-ui/2-events/03-event-delegation/2-sliding-tree/solution.md index 09c14a08c..cd68f05c0 100644 --- a/2-ui/2-events/03-event-delegation/2-sliding-tree/solution.md +++ b/2-ui/2-events/03-event-delegation/2-sliding-tree/solution.md @@ -1,4 +1,4 @@ -The solution has two parts. +A solução tem duas partes. -1. Wrap every tree node title into ``. Then we can CSS-style them on `:hover` and handle clicks exactly on text, because `` width is exactly the text width (unlike without it). -2. Set a handler to the `tree` root node and handle clicks on that `` titles. +1. Envolva o título de cada nó da árvore em um ``. Então podemos estilizá-los com CSS no `:hover` e tratar cliques exatamente no texto, porque a largura do `` é exatamente a largura do texto (diferente de sem ele). +2. Defina um manipulador no nó raiz `tree` e trate cliques nesses títulos ``. diff --git a/2-ui/2-events/03-event-delegation/2-sliding-tree/solution.view/index.html b/2-ui/2-events/03-event-delegation/2-sliding-tree/solution.view/index.html index 0e85e457e..99ec88284 100644 --- a/2-ui/2-events/03-event-delegation/2-sliding-tree/solution.view/index.html +++ b/2-ui/2-events/03-event-delegation/2-sliding-tree/solution.view/index.html @@ -17,36 +17,36 @@
    -
  • Animals +
  • Animais
      -
    • Mammals +
    • Mamíferos
        -
      • Cows
      • -
      • Donkeys
      • -
      • Dogs
      • -
      • Tigers
      • +
      • Vacas
      • +
      • Burros
      • +
      • Cachorros
      • +
      • Tigres
    • -
    • Other +
    • Outros
        -
      • Snakes
      • -
      • Birds
      • -
      • Lizards
      • +
      • Cobras
      • +
      • Pássaros
      • +
      • Lagartos
  • -
  • Fishes +
  • Peixes
      -
    • Aquarium +
    • Aquário
      • Guppy
      • -
      • Angelfish
      • +
      • Peixe-anjo
    • -
    • Sea +
    • Mar
        -
      • Sea trout
      • +
      • Truta marinha
    @@ -54,15 +54,15 @@
diff --git a/2-ui/2-events/03-event-delegation/3-sortable-table/task.md b/2-ui/2-events/03-event-delegation/3-sortable-table/task.md index ec85a473c..7a5a98fca 100644 --- a/2-ui/2-events/03-event-delegation/3-sortable-table/task.md +++ b/2-ui/2-events/03-event-delegation/3-sortable-table/task.md @@ -2,19 +2,19 @@ importance: 4 --- -# Sortable table +# Tabela ordenável -Make the table sortable: clicks on `` elements should sort it by corresponding column. +Faça a tabela ser ordenável: cliques nos elementos `` devem ordená-la pela coluna correspondente. -Each `` has the type in the attribute, like this: +Cada `` tem o tipo no atributo, assim: ```html *!* - - + + */!* @@ -32,12 +32,12 @@ Each `
AgeNameIdadeNome
` has the type in the attribute, like this:
``` -In the example above the first column has numbers, and the second one -- strings. The sorting function should handle sort according to the type. +No exemplo acima, a primeira coluna tem números, e a segunda -- strings. A função de ordenação deve tratar a ordenação de acordo com o tipo. -Only `"string"` and `"number"` types should be supported. +Só os tipos `"string"` e `"number"` devem ser suportados. -The working example: +O exemplo funcional: [iframe border=1 src="solution" height=190] -P.S. The table can be big, with any number of rows and columns. +P.S. A tabela pode ser grande, com qualquer número de linhas e colunas. diff --git a/2-ui/2-events/03-event-delegation/4-behavior-tooltip/solution.view/index.html b/2-ui/2-events/03-event-delegation/4-behavior-tooltip/solution.view/index.html index 1ef37cdc9..50f33557e 100644 --- a/2-ui/2-events/03-event-delegation/4-behavior-tooltip/solution.view/index.html +++ b/2-ui/2-events/03-event-delegation/4-behavior-tooltip/solution.view/index.html @@ -6,7 +6,7 @@