Skip to content

Commit e7888cc

Browse files
fix: improvements from recordings 14.04.2025
1 parent fb3f8c4 commit e7888cc

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4108,7 +4108,7 @@ The Geolocation API enables web applications to access the user's geographic loc
41084108

41094109
[^108]CodeSandbox: Geolocation API.
41104110

4111-
[^108]:[CodeSandbox: Geolocation API](https://443vqt.csb.app/), last access: September 30, 2024.
4111+
[^108]:[CodeSandbox: Geolocation API](https://443vqt.csb.app/), last access: April 14, 2025.
41124112

41134113
- The code above demonstrates how to use the Geolocation API to retrieve the user's current position.
41144114
- If the browser supports geolocation, the `getCurrentPosition()` method is called to asynchronously obtain the user's position.
@@ -4132,17 +4132,15 @@ alert("Username: " + username);
41324132

41334133
[^109]CodeSandbox: Web Storage API.
41344134

4135-
[^109]:[CodeSandbox: Web Storage API](https://729wnm.csb.app/), last access: September 30, 2024.
4135+
[^109]:[CodeSandbox: Web Storage API](https://729wnm.csb.app/), last access: April 14, 2025.
41364136

41374137
- The code above demonstrates how to use `localStorage` to store and retrieve data.
41384138
- The `setItem()` method is used to store a key-value pair ("username" and "John") in local storage.
41394139
- Later, the `getItem()` method retrieves the value associated with the "username" key, which is then alerted to the user.
41404140

41414141
#### Canvas API
41424142

4143-
The Canvas API provides a powerful set of drawing and graphics capabilities, allowing developers to create dynamic and interactive graphics directly within the browser. With the Canvas API, developers can draw shapes, paths, text, images, and even perform animations and transformations. This API is commonly used for creating charts, graphs, games, image editing tools, and other visually rich content.
4144-
4145-
The `<canvas>` element is a powerful tool for creating graphics and animations directly within a web page.
4143+
The Canvas API provides a powerful set of drawing and graphics capabilities, allowing developers to create dynamic and interactive graphics directly within the browser. With the Canvas API, developers can draw shapes, paths, text, images, and even perform animations and transformations. This API is commonly used for creating charts, graphs, games, image editing tools, and other visually rich content. The `<canvas>` element is a powerful tool for creating graphics and animations directly within a web page.
41464144

41474145
```html
41484146
<canvas id="myCanvas" width="400" height="200" style="border:1px solid #000000;"></canvas>
@@ -4169,7 +4167,7 @@ ctx.fill();
41694167

41704168
[^110]CodeSandbox: Canvas API.
41714169

4172-
[^110]:[CodeSandbox: Canvas API](https://lgtkpg.csb.app/), last access: October 1, 2024.
4170+
[^110]:[CodeSandbox: Canvas API](https://lgtkpg.csb.app/), last access: April 14, 2025.
41734171

41744172
- The code above demonstrates how to use the Canvas API to draw shapes on a canvas element.
41754173
- First, a canvas context (`2d`) is obtained from the canvas element.
@@ -4205,7 +4203,7 @@ self.addEventListener("message", (e) => {
42054203

42064204
[^111]CodeSandbox: Web Workers.
42074205

4208-
[^111]:[CodeSandbox: Web Workers](https://snqmpz.csb.app/), last access: October 1, 2024.
4206+
[^111]:[CodeSandbox: Web Workers](https://snqmpz.csb.app/), last access: April 14, 2025.
42094207

42104208
- The code above demonstrates how to use web workers to perform tasks in background threads.
42114209
- First, a new web worker is created by passing the path to a worker script (`worker.js`).
@@ -4239,7 +4237,7 @@ socket.send("Hello from client!");
42394237

42404238
[^112]CodeSandbox: WebSocket API.
42414239

4242-
[^112]:[CodeSandbox: WebSocket API](https://dypkvz.csb.app/), last access: October 2, 2024.
4240+
[^112]:[CodeSandbox: WebSocket API](https://dypkvz.csb.app/), last access: April 14, 2025.
42434241

42444242
- The code above demonstrates how to establish a WebSocket connection with a server.
42454243
- Upon successful connection (`onopen` event), the client logs a message to the alert popup.

__presentation-slides/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2913,7 +2913,7 @@ <h1>Welcome to My Website</h1>
29132913

29142914
### Geolocation API <!-- .slide: data-transition="zoom" data-transition-speed="slow" -->
29152915

2916-
```html[|1|2|1,2|4|20|4,20|5|17|5,17|6|16|6,16|7-12|13-15|18-20]
2916+
```html[|1|2|1,2|4|21|4,21|5|17|5,17|6|16|6,16|7-12|13-15|18-20]
29172917
<p>Latitude: <span id="latitude"></span></p>
29182918
<p>Longitude: <span id="longitude"></span></p>
29192919

0 commit comments

Comments
 (0)