253 or be less than -253. As bigints are used in few special areas, we devote them a special chapter Bye
``` -<<<<<<< HEAD -That's how we can append an arbitrary HTML to our page. -======= That's how we can append arbitrary HTML to the page. ->>>>>>> e074a5f825a3d10b0c1e5e82561162f75516d7e3 Here's the picture of insertion variants: @@ -585,15 +488,6 @@ Insertion and removal of nodes: Text strings are inserted "as text". -<<<<<<< HEAD -- Given a piece of HTML: `elem.insertAdjacentHTML(where, html)`, inserts depending on where: - - `"beforebegin"` -- insert `html` right before `elem`, - - `"afterbegin"` -- insert `html` into `elem`, at the beginning, - - `"beforeend"` -- insert `html` into `elem`, at the end, - - `"afterend"` -- insert `html` right after `elem`. - - Also there are similar methods `elem.insertAdjacentText` and `elem.insertAdjacentElement`, they insert text strings and elements, but they are rarely used. -======= - Given some HTML in `html`, `elem.insertAdjacentHTML(where, html)` inserts it depending on the value of `where`: - `"beforebegin"` -- insert `html` right before `elem`, - `"afterbegin"` -- insert `html` into `elem`, at the beginning, @@ -601,7 +495,6 @@ Insertion and removal of nodes: - `"afterend"` -- insert `html` right after `elem`. Also there are similar methods, `elem.insertAdjacentText` and `elem.insertAdjacentElement`, that insert text strings and elements, but they are rarely used. ->>>>>>> e074a5f825a3d10b0c1e5e82561162f75516d7e3 - To append HTML to the page before it has finished loading: - `document.write(html)` diff --git a/2-ui/1-document/07-modifying-document/before-prepend-append-after.svg b/2-ui/1-document/07-modifying-document/before-prepend-append-after.svg index 25b958412..6e1fb4874 100644 --- a/2-ui/1-document/07-modifying-document/before-prepend-append-after.svg +++ b/2-ui/1-document/07-modifying-document/before-prepend-append-after.svg @@ -1,74 +1 @@ -<<<<<<< HEAD - - -======= - ->>>>>>> e074a5f825a3d10b0c1e5e82561162f75516d7e3 + \ No newline at end of file diff --git a/2-ui/1-document/07-modifying-document/insert-adjacent.svg b/2-ui/1-document/07-modifying-document/insert-adjacent.svg index 7fe480726..64beee037 100644 --- a/2-ui/1-document/07-modifying-document/insert-adjacent.svg +++ b/2-ui/1-document/07-modifying-document/insert-adjacent.svg @@ -1,74 +1 @@ -<<<<<<< HEAD - - -======= - ->>>>>>> e074a5f825a3d10b0c1e5e82561162f75516d7e3 + \ No newline at end of file diff --git a/2-ui/1-document/09-size-and-scroll/1-get-scroll-height-bottom/task.md b/2-ui/1-document/09-size-and-scroll/1-get-scroll-height-bottom/task.md index 2a6830b76..796039c2a 100644 --- a/2-ui/1-document/09-size-and-scroll/1-get-scroll-height-bottom/task.md +++ b/2-ui/1-document/09-size-and-scroll/1-get-scroll-height-bottom/task.md @@ -4,11 +4,7 @@ importance: 5 # What's the scroll from the bottom? -<<<<<<< HEAD -The `elem.scrollTop` property is the size of the scrolled out part from the top. How to get "`scrollBottom`" -- the size from the bottom? -======= The `elem.scrollTop` property is the size of the scrolled out part from the top. How to get the size of the bottom scroll (let's call it `scrollBottom`)? ->>>>>>> e074a5f825a3d10b0c1e5e82561162f75516d7e3 Write the code that works for an arbitrary `elem`. diff --git a/2-ui/1-document/09-size-and-scroll/4-put-ball-in-center/field.svg b/2-ui/1-document/09-size-and-scroll/4-put-ball-in-center/field.svg index 302008f91..ca8bbc3bd 100644 --- a/2-ui/1-document/09-size-and-scroll/4-put-ball-in-center/field.svg +++ b/2-ui/1-document/09-size-and-scroll/4-put-ball-in-center/field.svg @@ -1,24 +1 @@ -<<<<<<< HEAD - - -======= - ->>>>>>> e074a5f825a3d10b0c1e5e82561162f75516d7e3 + \ No newline at end of file diff --git a/2-ui/1-document/09-size-and-scroll/4-put-ball-in-center/solution.md b/2-ui/1-document/09-size-and-scroll/4-put-ball-in-center/solution.md index 3383d6c33..afa1d8f50 100644 --- a/2-ui/1-document/09-size-and-scroll/4-put-ball-in-center/solution.md +++ b/2-ui/1-document/09-size-and-scroll/4-put-ball-in-center/solution.md @@ -37,15 +37,9 @@ The code won't work reliably while `