Description:
Продолжаем изучать JavaScript и сегодня поговорим о размерах, прокрутке и координатах окна и объектов на странице. В JavaScript существуют множество свойств, которые позволяют получить информацию об элементе: ширину, высоту и другие геометрические характеристики. Они часто требуются, когда нам нужно передвигать или позиционировать элементы с помощью JavaScript. Для начала поговорим о том, как узнать ширину и высоту окна браузера, получить полную ширину и высоту документа, включая прокрученную часть. А также, прокрутить страницу с помощью JavaScript. Также поговорим о размерах, координатах, прокрутке элементов на странице и методе getBoundingClientRect. 👉 Файлы урока - https://fls.guru/files/tutorials/js/js-size-scroll-coordinates.zip 👉 Плейлист "Как это сделать?" - https://www.youtube.com/playlist?list=PLM6XATa8CAG6IJvQBkrTTNZmpIcyS2Avk 💪 Курс по верстке: https://edu.fls.guru/ 🔴 Карта канала: https://miro.com/app/board/o9J_lZB3YKI=/ 🔴 Получить доступ к плюшкам + поддержать канал: https://www.patreon.com/freelancerlifestyle 🔴 Telegram канал: https://t.me/freelancer_lifestyle (https://teleg.run/freelancer_lifestyle) 🔴 Telegram чат по верстке: https://t.me/flschat (https://teleg.run/flschat) 🔴 Facebook: https://www.facebook.com/unsupportedbrowser 🔴 Instagram: https://www.facebook.com/unsupportedbrowser 00:00 - В уроке 00:13 - Ширина и высота окна браузера 02:40 - Полная ширина и высота страницы 03:55 - Получение кол-ва прокрученных пикселей 05:08 - Управление скроллом. Метод scrollBy 06:54 - Управление скроллом. Метод scrollTo 09:31 - Управление скроллом. Метод scrollIntoView 13:57 - Метрики элементов на странице 14:55 - Свойства offsetParent, offsetLeft и offsetTop 19:01 - Свойства offsetWidth и offsetHeight 20:02 - Свойства clientTop и clientLeft 21:12 - Свойства clientWidth и clientHeight 22:18 - Свойства scrollWidth и scrollHeight 23:07 - Свойства scrollLeft и scrollTop 23:07 - Управление скроллом элемента 24:55 - Координаты элементов на странице 26:22 - getBoundingClientRect 31:26 - elementFromPoint 32:35 - Домашка 33:31 - Заключение 👉 @IT-ПРИСТРАСТІ, українськомовний канал присвячений інтерв'ю з цікавими IT-спеціалістами - https://www.youtube.com/channel/UCJNVBfLijFSa_tBcrNZKZag 👋 Меня зовут Женя Андриканич, я IT - специалист, занимаюсь разработкой сайтов. На этом канале, я регулярно и в максимально доступном формате буду делиться с тобой своим опытом, наработками, секретами и лайфхаками! Ссылка на канал: https://www.youtube.com/c/freelancerlifestyle 🤟 Живи, а работай в свободное время! ©
Preparing download options
http://unidownloader.com/ website is the best way to download a video or a separate audio track if you want to do without installing programs and extensions.
The UDL Helper extension is a convenient button that is seamlessly integrated into YouTube, Instagram and OK.ru sites for fast content download.
UDL Client program (for Windows) is the most powerful solution that supports more than 900 websites, social networks and video hosting sites, as well as any video quality that is available in the source.
UDL Lite is a really convenient way to access a website from your mobile device. With its help, you can easily download videos directly to your smartphone.
The best quality formats are FullHD (1080p), 2K (1440p), 4K (2160p) and 8K (4320p). The higher the resolution of your screen, the higher the video quality should be. However, there are other factors to consider: download speed, amount of free space, and device performance during playback.
The browser/computer should not freeze completely! If this happens, please report it with a link to the video. Sometimes videos cannot be downloaded directly in a suitable format, so we have added the ability to convert the file to the desired format. In some cases, this process may actively use computer resources.
You can download a video to your smartphone using the website or the PWA application UDL Lite. It is also possible to send a download link via QR code using the UDL Helper extension.
The most convenient way is to use the UDL Client program, which supports converting video to MP3 format. In some cases, MP3 can also be downloaded through the UDL Helper extension.
This feature is available in the UDL Helper extension. Make sure that "Show the video snapshot button" is checked in the settings. A camera icon should appear in the lower right corner of the player to the left of the "Settings" icon. When you click on it, the current frame from the video will be saved to your computer in JPEG format.
It costs nothing. Our services are absolutely free for all users. There are no PRO subscriptions, no restrictions on the number or maximum length of downloaded videos.