Skip to content

Commit a2d11d5

Browse files
fix: improvements from recordings 24.2.2025
1 parent 3c5f516 commit a2d11d5

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2743,15 +2743,15 @@ In `script.js`, write a simple script:
27432743

27442744
```javascript
27452745
function greet() {
2746-
alert("Hello, world!");
2746+
alert("Hello, world!");
27472747
}
27482748
```
27492749

27502750
[![Edit 066-External JavaScript Example](images/codesandbox.svg)](https://codesandbox.io/p/sandbox/066-external-javascript-example-sttc6x)
27512751

27522752
[^66]CodeSandbox: External JavaScript Example.
27532753

2754-
[^66]:[CodeSandbox: External JavaScript Example](https://sttc6x.csb.app/), last access: June 18, 2024.
2754+
[^66]:[CodeSandbox: External JavaScript Example](https://sttc6x.csb.app/), last access: February 24, 2025.
27552755

27562756
- The JavaScript code is moved to an external file named `script.js`.
27572757
- The `<script>` tag in the HTML document references the external JavaScript file using the `src` attribute.
@@ -2793,7 +2793,7 @@ JavaScript interacts with HTML through the Document Object Model (DOM), a hierar
27932793

27942794
[^67]CodeSandbox: DOM Manipulation.
27952795

2796-
[^67]:[CodeSandbox: DOM Manipulation](https://7k5drg.csb.app/), last access: June 18, 2024.
2796+
[^67]:[CodeSandbox: DOM Manipulation](https://7k5drg.csb.app/), last access: February 24, 2025.
27972797

27982798
- The `changeText()` function modifies the text content of an `<h1>` element with the ID `heading` when the button is clicked.
27992799

@@ -2805,18 +2805,18 @@ Advanced DOM manipulation techniques involve traversing the DOM tree, selecting
28052805
setTimeout(changeParagraphText, 5000);
28062806

28072807
function changeParagraphText() {
2808-
// Select all paragraphs with a specific class and update their text content
2809-
document.querySelectorAll("p.myClass").forEach((paragraph) => {
2810-
paragraph.textContent = "New content";
2811-
});
2808+
// Select all paragraphs with a specific class and update their text content
2809+
document.querySelectorAll("p.myClass").forEach((paragraph) => {
2810+
paragraph.textContent = "New content";
2811+
});
28122812
}
28132813
```
28142814

28152815
[![Edit 068-Advanced DOM Manipulation Techniques](images/codesandbox.svg)](https://codesandbox.io/p/sandbox/068-advanced-dom-manipulation-techniques-mj9mr7)
28162816

28172817
[^68]CodeSandbox: Advanced DOM Manipulation Techniques.
28182818

2819-
[^68]:[CodeSandbox: Advanced DOM Manipulation Techniques](https://mj9mr7.csb.app/), last access: June 18, 2024.
2819+
[^68]:[CodeSandbox: Advanced DOM Manipulation Techniques](https://mj9mr7.csb.app/), last access: February 24, 2025.
28202820

28212821
### Event Handling
28222822

__presentation-slides/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1652,7 +1652,7 @@ <h1>External JavaScript Example</h1>
16521652

16531653
```javascript[|1|3|2|1-3]
16541654
function greet() {
1655-
alert("Hello, world!");
1655+
alert("Hello, world!");
16561656
}
16571657
```
16581658

@@ -1711,11 +1711,11 @@ <h1 id="heading">JavaScript Example</h1>
17111711
setTimeout(changeParagraphText, 5000);
17121712

17131713
function changeParagraphText() {
1714-
// Select all paragraphs with a specific class and update their text content
1715-
document.querySelectorAll("p.myClass")
1716-
.forEach((paragraph) => {
1717-
paragraph.textContent = "New content";
1718-
});
1714+
// Select all paragraphs with a specific class and update their text content
1715+
document.querySelectorAll("p.myClass")
1716+
.forEach((paragraph) => {
1717+
paragraph.textContent = "New content";
1718+
});
17191719
}
17201720
```
17211721

0 commit comments

Comments
 (0)