The Modern JavaScript Tutorial - Part III. Additional Articles (Regexps, Animations, etc.) [3]

3,556 1,189 4MB

English Pages 333 Year 2019

Report DMCA / Copyright

DOWNLOAD FILE

The Modern JavaScript Tutorial - Part III. Additional Articles (Regexps, Animations, etc.) [3]

Table of contents :
Popups and window methods......Page 4
Cross-window communication......Page 11
The clickjacking attack......Page 20
ArrayBuffer, binary arrays......Page 25
TextDecoder and TextEncoder......Page 33
Blob......Page 35
File and FileReader......Page 41
Fetch......Page 45
FormData......Page 53
Fetch: Download progress......Page 57
Fetch: Abort......Page 60
Fetch: Cross-Origin Requests......Page 63
Fetch API......Page 74
URL objects......Page 80
XMLHttpRequest......Page 85
Resumable file upload......Page 97
Long polling......Page 99
WebSocket......Page 102
Server Sent Events......Page 112
Cookies, document.cookie......Page 118
LocalStorage, sessionStorage......Page 130
IndexedDB......Page 137
Bezier curve......Page 157
CSS-animations......Page 166
JavaScript animations......Page 180
From the orbital height......Page 193
Custom elements......Page 197
Shadow DOM......Page 207
Template element......Page 211
Shadow DOM slots, composition......Page 214
Shadow DOM styling......Page 224
Shadow DOM and events......Page 232
Regular expressions......Page 236
Patterns and flags......Page 237
Character classes......Page 241
Unicode: flag "u" and class \p{...}......Page 246
Anchors: string start ^ and end $......Page 250
Multiline mode of anchors ^ $, flag "m"......Page 252
Word boundary: \b......Page 254
Escaping, special characters......Page 256
Sets and ranges [...]......Page 258
Quantifiers +, *, ? and {n}......Page 263
Greedy and lazy quantifiers......Page 268
Capturing groups......Page 277
Backreferences in pattern: \N and \k......Page 287
Alternation (OR) |......Page 289
Lookahead and lookbehind......Page 293
Catastrophic backtracking......Page 298
Sticky flag "y", searching at position......Page 305
Methods of RegExp and String......Page 308

Polecaj historie