mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-08 16:00:58 -04:00
fix(curriculum): refine editable regions in html video player (#65310)
Co-authored-by: Jeevankumar-S <jeevenkumar2003@email.com>
This commit is contained in:
@@ -35,14 +35,14 @@ assert.strictEqual(h1?.textContent.trim(), 'Working with the HTML Video Element'
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Working with the HTML Video Element</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Working with the HTML Video Element</title>
|
||||
</head>
|
||||
<body>
|
||||
<body>
|
||||
--fcc-editable-region--
|
||||
|
||||
|
||||
--fcc-editable-region--
|
||||
</body>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
@@ -31,14 +31,14 @@ assert.exists(document.querySelector('h1 + video'));
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Working with the HTML Video Element</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Working with the HTML Video Element</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Working with the HTML Video Element</h1>
|
||||
--fcc-editable-region--
|
||||
|
||||
|
||||
--fcc-editable-region--
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -28,9 +28,9 @@ assert.strictEqual(video?.getAttribute('width'), '640');
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Working with the HTML Video Element</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Working with the HTML Video Element</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Working with the HTML Video Element</h1>
|
||||
@@ -38,6 +38,6 @@ assert.strictEqual(video?.getAttribute('width'), '640');
|
||||
<video>
|
||||
--fcc-editable-region--
|
||||
</video>
|
||||
</body>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
@@ -30,9 +30,9 @@ assert.isTrue(video?.hasAttribute('loop'));
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Working with the HTML Video Element</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Working with the HTML Video Element</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Working with the HTML Video Element</h1>
|
||||
@@ -40,6 +40,6 @@ assert.isTrue(video?.hasAttribute('loop'));
|
||||
<video width="640">
|
||||
--fcc-editable-region--
|
||||
</video>
|
||||
</body>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
@@ -32,9 +32,9 @@ assert.isTrue(video?.hasAttribute('controls'));
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Working with the HTML Video Element</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Working with the HTML Video Element</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Working with the HTML Video Element</h1>
|
||||
@@ -42,6 +42,6 @@ assert.isTrue(video?.hasAttribute('controls'));
|
||||
<video width="640" loop>
|
||||
--fcc-editable-region--
|
||||
</video>
|
||||
</body>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
@@ -30,9 +30,9 @@ assert.isTrue(video?.hasAttribute('muted'));
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Working with the HTML Video Element</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Working with the HTML Video Element</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Working with the HTML Video Element</h1>
|
||||
@@ -40,6 +40,6 @@ assert.isTrue(video?.hasAttribute('muted'));
|
||||
<video width="640" loop controls>
|
||||
--fcc-editable-region--
|
||||
</video>
|
||||
</body>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
@@ -28,21 +28,22 @@ assert.strictEqual(video?.getAttribute('poster'), 'https://cdn.freecodecamp.org/
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Working with the HTML Video Element</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Working with the HTML Video Element</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Working with the HTML Video Element</h1>
|
||||
--fcc-editable-region--
|
||||
<video
|
||||
width="640"
|
||||
loop
|
||||
controls
|
||||
muted
|
||||
>
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
>
|
||||
</video>
|
||||
</body>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
@@ -38,9 +38,9 @@ assert.exists(document.querySelector('video > source'));
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Working with the HTML Video Element</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Working with the HTML Video Element</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Working with the HTML Video Element</h1>
|
||||
@@ -52,9 +52,9 @@ assert.exists(document.querySelector('video > source'));
|
||||
poster="https://cdn.freecodecamp.org/curriculum/labs/past-event2.jpg"
|
||||
>
|
||||
--fcc-editable-region--
|
||||
|
||||
|
||||
--fcc-editable-region--
|
||||
</video>
|
||||
</body>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
@@ -36,9 +36,9 @@ assert.strictEqual(source?.getAttribute('src'),
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Working with the HTML Video Element</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Working with the HTML Video Element</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Working with the HTML Video Element</h1>
|
||||
@@ -50,9 +50,9 @@ assert.strictEqual(source?.getAttribute('src'),
|
||||
poster="https://cdn.freecodecamp.org/curriculum/labs/past-event2.jpg"
|
||||
>
|
||||
--fcc-editable-region--
|
||||
<source>
|
||||
<source>
|
||||
--fcc-editable-region--
|
||||
</video>
|
||||
</body>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
@@ -41,9 +41,9 @@ assert.strictEqual(source?.getAttribute('type'), 'video/mp4');
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Working with the HTML Video Element</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Working with the HTML Video Element</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Working with the HTML Video Element</h1>
|
||||
@@ -54,12 +54,12 @@ assert.strictEqual(source?.getAttribute('type'), 'video/mp4');
|
||||
muted
|
||||
poster="https://cdn.freecodecamp.org/curriculum/labs/past-event2.jpg"
|
||||
>
|
||||
<source
|
||||
src="https://cdn.freecodecamp.org/curriculum/labs/what-is-the-map-method-and-how-does-it-work.mp4"
|
||||
--fcc-editable-region--
|
||||
<source
|
||||
src="https://cdn.freecodecamp.org/curriculum/labs/what-is-the-map-method-and-how-does-it-work.mp4"
|
||||
|
||||
>
|
||||
|
||||
--fcc-editable-region--
|
||||
>
|
||||
</video>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -57,9 +57,9 @@ assert.strictEqual(source?.getAttribute('type'), 'video/webm');
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Working with the HTML Video Element</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Working with the HTML Video Element</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Working with the HTML Video Element</h1>
|
||||
@@ -70,14 +70,14 @@ assert.strictEqual(source?.getAttribute('type'), 'video/webm');
|
||||
muted
|
||||
poster="https://cdn.freecodecamp.org/curriculum/labs/past-event2.jpg"
|
||||
>
|
||||
<source
|
||||
src="https://cdn.freecodecamp.org/curriculum/labs/what-is-the-map-method-and-how-does-it-work.mp4"
|
||||
type="video/mp4"
|
||||
>
|
||||
<source
|
||||
src="https://cdn.freecodecamp.org/curriculum/labs/what-is-the-map-method-and-how-does-it-work.mp4"
|
||||
type="video/mp4"
|
||||
>
|
||||
--fcc-editable-region--
|
||||
|
||||
|
||||
--fcc-editable-region--
|
||||
</video>
|
||||
</body>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
@@ -57,9 +57,9 @@ assert.strictEqual(source?.getAttribute('type'), 'video/ogg');
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Working with the HTML Video Element</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Working with the HTML Video Element</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Working with the HTML Video Element</h1>
|
||||
@@ -70,18 +70,18 @@ assert.strictEqual(source?.getAttribute('type'), 'video/ogg');
|
||||
muted
|
||||
poster="https://cdn.freecodecamp.org/curriculum/labs/past-event2.jpg"
|
||||
>
|
||||
<source
|
||||
src="https://cdn.freecodecamp.org/curriculum/labs/what-is-the-map-method-and-how-does-it-work.mp4"
|
||||
type="video/mp4"
|
||||
>
|
||||
<source
|
||||
src="https://cdn.freecodecamp.org/curriculum/labs/mapmethod.webm"
|
||||
type="video/webm"
|
||||
>
|
||||
<source
|
||||
src="https://cdn.freecodecamp.org/curriculum/labs/what-is-the-map-method-and-how-does-it-work.mp4"
|
||||
type="video/mp4"
|
||||
>
|
||||
<source
|
||||
src="https://cdn.freecodecamp.org/curriculum/labs/mapmethod.webm"
|
||||
type="video/webm"
|
||||
>
|
||||
--fcc-editable-region--
|
||||
|
||||
|
||||
--fcc-editable-region--
|
||||
</video>
|
||||
</body>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
@@ -59,9 +59,9 @@ assert.strictEqual(source?.getAttribute('type'), 'video/quicktime');
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Working with the HTML Video Element</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Working with the HTML Video Element</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Working with the HTML Video Element</h1>
|
||||
@@ -72,23 +72,23 @@ assert.strictEqual(source?.getAttribute('type'), 'video/quicktime');
|
||||
muted
|
||||
poster="https://cdn.freecodecamp.org/curriculum/labs/past-event2.jpg"
|
||||
>
|
||||
<source
|
||||
src="https://cdn.freecodecamp.org/curriculum/labs/what-is-the-map-method-and-how-does-it-work.mp4"
|
||||
type="video/mp4"
|
||||
>
|
||||
<source
|
||||
src="https://cdn.freecodecamp.org/curriculum/labs/mapmethod.webm"
|
||||
type="video/webm"
|
||||
>
|
||||
<source
|
||||
src="https://cdn.freecodecamp.org/curriculum/labs/mapmethod.ogg"
|
||||
type="video/ogg"
|
||||
>
|
||||
<source
|
||||
src="https://cdn.freecodecamp.org/curriculum/labs/what-is-the-map-method-and-how-does-it-work.mp4"
|
||||
type="video/mp4"
|
||||
>
|
||||
<source
|
||||
src="https://cdn.freecodecamp.org/curriculum/labs/mapmethod.webm"
|
||||
type="video/webm"
|
||||
>
|
||||
<source
|
||||
src="https://cdn.freecodecamp.org/curriculum/labs/mapmethod.ogg"
|
||||
type="video/ogg"
|
||||
>
|
||||
--fcc-editable-region--
|
||||
|
||||
|
||||
--fcc-editable-region--
|
||||
</video>
|
||||
</body>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user