Skip to content

Commit 9cfcf75

Browse files
ReenaRajaniTanya Butenko
authored andcommitted
level3 and readme changes (#2)
1 parent f4c2e78 commit 9cfcf75

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ _______________
1313

1414

1515

16-
If you familiar with git you can clone repositore to your machine and simply start working
17-
through files starting from README.md file, after jump to js/level1.js file.
16+
If you familiar with git you can clone this repository to your machine and simply start working
17+
through files starting from README.md file, after that jump to js/level1.js file.
1818

1919

20-
If you don't know what is git, relax, you can download the folder on your machine - go to
20+
If you don't know what is git, relax, you can download the folder on your machine - go to
2121
'releases' tab over the yellow line on the page and download folder 'Source code (zip)'.
2222
Unzip it and start from README.md file, after jump to js/level1.js file.
2323

@@ -43,7 +43,7 @@ ____________________
4343
- _level2.js_ - more complex javaScript with explanations(arrays, loops).
4444
- _level3.js_ - html, css and how manipulate them with javaScript (selectors)
4545

46-
- _index.html_ - a file that responsible for structure of our project.
46+
- _index.html_ - a file responsible for structure of our project.
4747

4848
- _Readme.md_ - a file with explanations and any information about the project, how to run it, what it is for etc.
4949

js/level3.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<header></header>, <p></p> etc - it is tags, each element on the page has opening
1818
and closing tag (NOTE: some tags are self-closing like <img>). Whole html file is wrapped
1919
in tag <html>, which contains of <head> and <body> tags. In <head> we keep different
20-
meta information, title and link to css files. <Body> contains our actual content.
20+
meta information, title and link to css files. <body> contains our actual content.
2121
Tags has a set of names which you can find here http://htmldog.com/references/html/tags/
2222
2323
Any tag also can have different attributes (<div class="settings"></div> - tag div
@@ -86,8 +86,8 @@
8686

8787

8888

89-
//TODO: do you still remember arrays that we had in previous sections? Using this knowladge
90-
//itirate through whole meadiaLinks items and print them out.
89+
//TODO: do you still remember arrays that we had in previous sections? Using this knowledge
90+
//iterate through whole meadiaLinks items and print them out.
9191

9292

9393

@@ -119,15 +119,15 @@
119119

120120
/*
121121
Change content
122-
Using same property .innerHTML we can change content of the tags.
122+
we can change the content of the tags using the same .innerHTML property
123123
Example:
124124
ourTwitter.innerHTML = '@ButenkoMe';
125125
console.log(ourTwitter.innerHTML);
126126
//guess what we will see on the page and in console?
127127
*/
128128

129129

130-
//TODO: change content of the 'h1' on anything you like
130+
//TODO: change content of the 'h1' with anything you like
131131

132132

133133

@@ -142,18 +142,18 @@
142142
*/
143143

144144

145-
//TODO: replace 'src' attribute for our img tag on "img/kittens.jpeg"
145+
//TODO: replace the value of 'src' attribute for our img tag with "img/kittens.jpeg"
146146

147147

148148

149149

150150

151151
/*
152152
Accessing and changing styles
153-
So, let's do some css changes. We can do it with help of '.style' property and then
154-
giving the css property as we use them in css file, the only change is - if is css
153+
So, let's do some css changes. We can do it with help of '.style' property and
154+
giving the css property just like we do in css file, the only change here is is - if is css
155155
property name has '-' in the name (like font-size etc) then dash will be deleted and
156-
next word starts with capital (fontSize) - this way of naming calls CamelCase :)
156+
next word starts with capital (fontSize) - this way of naming is called the CamelCase :)
157157
Example:
158158
var ourTwitter = document.querySelector('.twitter');
159159
ourTwitter.style.backgroundColor = 'white';
@@ -171,9 +171,9 @@
171171
/*
172172
Creating new nodes (elements)
173173
The document object also provides ways to create nodes from scratch:
174-
document.createElement(tagName);
175-
document.createTextNode(text);
176-
document.appendChild();
174+
document.createElement(tagName); --> create the element
175+
document.createTextNode(text); --> what text it should contain
176+
document.appendChild(); --> append it to the document
177177
Example:
178178
var pageNode = document.querySelector('body')[0];
179179
var newParagraph = document.createElement('p');

0 commit comments

Comments
 (0)