From 6d29e74372acd5e6f864280bd6e2943b0e9e3ff0 Mon Sep 17 00:00:00 2001 From: Shih-Hao Date: Tue, 24 Oct 2017 17:51:51 +0800 Subject: [PATCH] fixed typo in 1-endless-page --- 2-ui/3-event-details/8-onscroll/1-endless-page/solution.md | 2 +- 2-ui/3-event-details/8-onscroll/1-endless-page/task.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/2-ui/3-event-details/8-onscroll/1-endless-page/solution.md b/2-ui/3-event-details/8-onscroll/1-endless-page/solution.md index a3f21b57..f7412bd4 100644 --- a/2-ui/3-event-details/8-onscroll/1-endless-page/solution.md +++ b/2-ui/3-event-details/8-onscroll/1-endless-page/solution.md @@ -18,7 +18,7 @@ For instance, if the height of the whole HTML document is 2000px, then: document.documentElement.getBoundingClientRect().top = 0 // window-relative bottom = 2000 -// the document is long, so that is probably far beyound the window bottom +// the document is long, so that is probably far beyond the window bottom document.documentElement.getBoundingClientRect().bottom = 2000 ``` diff --git a/2-ui/3-event-details/8-onscroll/1-endless-page/task.md b/2-ui/3-event-details/8-onscroll/1-endless-page/task.md index 4b49070b..7c8d14fc 100644 --- a/2-ui/3-event-details/8-onscroll/1-endless-page/task.md +++ b/2-ui/3-event-details/8-onscroll/1-endless-page/task.md @@ -12,7 +12,7 @@ Like this: Please note two important features of the scroll: -1. **The scroll is "elastic".** We can scroll a little beyound the document start or end in some browsers/devices (empty space below is shown, and then the document will automatically "bounces back" to normal). +1. **The scroll is "elastic".** We can scroll a little beyond the document start or end in some browsers/devices (empty space below is shown, and then the document will automatically "bounces back" to normal). 2. **The scroll is imprecise.** When we scroll to page end, then we may be in fact like 0-50px away from the real document bottom. So, "scrolling to the end" should mean that the visitor is no more than 100px away from the document end.