FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fixing broken json example · jackcoolpython/learning-area@51fca7e · GitHub

Repository navigation

Commit 51fca7e

Browse files
fixing broken json example
1 parent 1aff9a2 commit 51fca7e

4 files changed

Lines changed: 13 additions & 7 deletions

File tree

‎html/forms/pseudo-classes/readonly-confirmation.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
<body>
8080
<form>
8181
<fieldset>
82-
<legend>Check shipping details</legend>
82+
<legend contenteditable="true">Check shipping details</legend>
8383
<div>
8484
<label for="name">Name: </label>
8585
<input id="name" name="name" type="text"

‎javascript/oojs/tasks/json/json1-download.html‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626

2727
</body>
2828
<script>
29+
const section = document.querySelector('section');
30+
31+
let para1 = document.createElement('p');
32+
let para2 = document.createElement('p');
2933
let motherInfo = 'The mother cats are called ';
3034
let kittenInfo;
3135

@@ -45,10 +49,6 @@
4549
para2.textContent = kittenInfo;
4650
}
4751

48-
const section = document.querySelector('section');
49-
50-
let para1 = document.createElement('p');
51-
let para2 = document.createElement('p');
5252
section.appendChild(para1);
5353
section.appendChild(para2);
5454
</script>

‎javascript/oojs/tasks/json/json1.html‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
</section>
2525

2626
<textarea class="playable playable-js" style="height: 220px;">
27+
const section = document.querySelector('section');
28+
29+
let para1 = document.createElement('p');
30+
let para2 = document.createElement('p');
2731

2832
let motherInfo = 'The mother cats are called ';
2933
let kittenInfo;
@@ -46,8 +50,6 @@
4650
para2.textContent = kittenInfo;
4751
}
4852

49-
let para1 = document.createElement('p');
50-
let para2 = document.createElement('p');
5153
section.appendChild(para1);
5254
section.appendChild(para2);
5355
</textarea>

‎javascript/oojs/tasks/json/marking.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ Some hints/questions:
2323
Your code should look something like this:
2424

2525
```
26+
let section = document.querySelector('.preview');
27+
let para1 = document.createElement('p');
28+
let para2 = document.createElement('p');
29+
2630
let motherInfo = 'The mother cats are called ';
2731
let kittenInfo;
2832

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL