From 11c7819c9d5add38aa3bb11a7a31279d865fca72 Mon Sep 17 00:00:00 2001 From: fatmabadri Date: Fri, 19 Jun 2020 23:53:22 -0700 Subject: [PATCH 01/10] Update article.md --- .../07-modifying-document/article.md | 256 +++++++++--------- 1 file changed, 128 insertions(+), 128 deletions(-) diff --git a/2-ui/1-document/07-modifying-document/article.md b/2-ui/1-document/07-modifying-document/article.md index 9c756193d..2b4c5729c 100644 --- a/2-ui/1-document/07-modifying-document/article.md +++ b/2-ui/1-document/07-modifying-document/article.md @@ -1,16 +1,16 @@ # Modifying the document -DOM modifications is the key to create "live" pages. +DOM değişiklikleri "canlı" sayfalar oluşturmak için anahtardır. -Here we'll see how to create new elements "on the fly" and modify the existing page content. +Burada, "anında" nasıl yeni öğeler yaratmayı ve var olan sayfa içeriğini değiştirmeyi göreceğiz. -First we'll see a simple example and then explain the methods. +İlk önce, basit bir örnek göreceğiz ve ondan sonra yöntemleri açıklacağız. ## Example: show a message -For a start, let's see how to add a message on the page that looks nicer than `alert`. +Başlangıç için, sayfa üzerinde `alert`ten daha güzel görünen bir mesajın nasıl eklendiğini görelim. -Here's how it will look: +İşte nasıl görüneceği: ```html autorun height="80"
- Hi there! You've read an important message. + Hi there!You've read an important message.
``` @@ -340,11 +340,11 @@ An example of copying the message: ## DocumentFragment [#document-fragment] -`DocumentFragment` is a special DOM node that serves as a wrapper to pass around lists of nodes. +`DocumentFragment` düğüm listelerini geçirmek için bir sarıcı olarak görevi özel bir DOM düğümüdür. -We can append other nodes to it, but when we insert it somewhere, then its content is inserted instead. +Buna diğer düğümler ekleyebiliriz, ama bunu herhangi bir yere yerleştirdiğimizde, daha sonra içeriği bunun yerine eklenir. -For example, `getListContent` below generates a fragment with `
  • ` items, that are later inserted into `