Skip to content

Commit ad22871

Browse files
committed
Styling in JavaScriptAdvance improved
1 parent cda7951 commit ad22871

13 files changed

+48
-63
lines changed

docs/JavaScript_Advance/AJAX.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,4 @@ Example:
4545
}
4646
})();
4747
</script>
48-
```
49-
50-
Reference:
51-
- https://developer.mozilla.org/en-US/docs/Web/Guide/AJAX/Getting_Started
52-
- https://www.ibm.com/support/knowledgecenter/SS8PJ7_9.6.1/com.ibm.etools.webtoolscore.doc/topics/cajax.html
48+
```

docs/JavaScript_Advance/BOM_functions.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,37 @@
1-
# BOM objects: screen / location
1+
## History API [MDN](https://developer.mozilla.org/ru/docs/Web/API/History)
2+
3+
Interface manipulates browser history in the session borders
4+
5+
Fields
6+
7+
- {length} integer amount of elements in session history
8+
- {state} field stories state existed page
9+
10+
Methods
11+
12+
- {go} method loads a page from the session history with integer args
13+
- {back} method goes to the previous page in session history the same as history.go(-1)
14+
- {forfard} method goes to the next page in session history the same as history.go(1)
15+
- {pushState} method pushes the given data onto the session history stack with the specified title and, if provided, URL
16+
- {replaceState} updates the most recent entry on the history stack to have the specified data, title, and, if provided, URL
17+
18+
## Navigator API [MDN](https://developer.mozilla.org/en-US/docs/Web/API/Navigator)
19+
20+
provides the user-agent information
21+
22+
- {userAgent} user agent string for the current browser
23+
- {language} language of the browser UI
24+
- {languages} list of languages known to the user
25+
26+
Also contains a lot of user-agent information related to:
27+
28+
- media devices
29+
- bluetooth
30+
- usb
31+
- geo location
32+
-- etc.
33+
34+
##### {serviceWorker} provides access to registration, removal, upgrade, and communication with service worker
235

336
## Screen [MDN](https://developer.mozilla.org/en-US/docs/Web/API/Screen)
437

docs/JavaScript_Advance/BOM_functions_1.md

Lines changed: 0 additions & 36 deletions
This file was deleted.

docs/JavaScript_Advance/JSON.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
JSON is a syntax for storing and exchanging data
33
Since the JSON format is text only, it can easily be sent to and from a server, and used as a data format by any programming language
44

5-
### Where JSON is used
5+
## Where JSON is used
66

77
The JSON format is often used for serializing and transmitting structured data over a network connection. It is used primarily to transmit data between a server and web application, serving as an alternative to XML.
88

9-
### How to use JSON
9+
## How to use JSON
1010

1111
JSON data is normally accessed in Javascript through dot notation
1212

docs/JavaScript_Advance/async_await.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### Async Await
1+
# Async Await
22

33
`async` and `await` is **syntactic sugar** for using `promises`. That means that the `async` and `await` keywords are transpiled to normal `promise` syntax.
44

docs/JavaScript_Advance/default_values.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/JavaScript_Advance/dom_manipulation_html.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# Top most tree nodes
1+
## Top most tree nodes
22

33
All operations on the DOM start with the **document** object. That's the main 'entry point' to DOM. From this tree we can access any node. The topmost tree nodes are available directly as document properties:
44
- **html**
55
- **body**
66
- **head**
77

8-
# DOM navigation
8+
## DOM navigation
99

1010
### Children
1111
- Children are nested exactly in the given one parent. For instance, `<head>` and `<body>` are children of `<html>` element.
@@ -28,7 +28,7 @@ All operations on the DOM start with the **document** object. That's the main 'e
2828
- The reason is that the root node `document.documentElement` (`<html>`) has `document` as its parent. But `document`is not an element node, so `parentNode` returns it and `parentElement` does not.
2929

3030

31-
# DOM collections
31+
## DOM collections
3232
- **ChildNodes** returns iterable array-like object.
3333
- We can use for...of loop to iterate over it. Though array methods are not applicable. However `Array.from()` can be used to convert it to a real array.
3434
- These collections are live and read-only. That means they reflect current state of the DOM and can not be altered or reassigned again.

docs/JavaScript_Advance/eventloop.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/JavaScript_Advance/json_parse_and_stringify.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# JSON Parse and Stringify
1+
## JSON Parse
22

33
The `JSON.parse()` method parses a JSON string, which turns the JSON string into an object.
44

@@ -13,7 +13,7 @@ let catFacts = await fetch(catFactsEndpoint);
1313
let parsedCatFacts = await catFacts.json();
1414
```
1515

16-
# JSON Stringify
16+
## JSON Stringify
1717

1818
The `JSON.stringify()` method turns a JavaScript object into a JSON string. `JSON.Stringify` takes 3 arguments:
1919

docs/JavaScript_Advance/object_assign.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,4 @@ console.log(object1);
3535
// expected output: { key: "newValue" }
3636
console.log(object2);
3737
// expected output: { key: "reallyNewValue" }
38-
```
39-
40-
***An Exhaustive reference for Object.assign() and other object methods can be found at [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign)***
38+
```

docs/JavaScript_Advance/postgres_connection.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# PostgreSQL
22
PostgreSQL is an open source object-relational database system with over 30 years of active development.
33

4-
# Configuration
4+
## Configuration
55
To connect with your database you need to modify `configuration` object and fill specific fields with your database connection data.
66

77
There are two basic ways to connect to your database:
@@ -34,7 +34,7 @@ Mine configuration object looks like:
3434
**REMEMBER!** As you can see, above connection URI contains connection password: `NWDMCE...`. DO NOT commit any connection information (host, user, password, database, connection URI) to public repositories on GitHub, etc.!
3535
In this case we can do that because above connection information are publicly available and user has read-only access.
3636

37-
# CODE'n'RUN
37+
## CODE'n'RUN
3838
In this example we will use async/await approach.
3939

4040
For first we need to create Client object:
@@ -62,7 +62,7 @@ await client.end();
6262
It is short sample with basic query to database. Now you can run our script in terminal: `node postgresConnection.js`
6363
Look at the next section for more information about postgres node client and sql.
6464

65-
# Helpful links
65+
## Helpful links
6666
* [Postgres](https://www.postgresql.org/)
6767
* [Node Postgres](https://node-postgres.com/)
6868
* [SQL Tutorial](https://www.w3schools.com/sql/)

docs/JavaScript_Advance/set_object.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ which iterate the values in insertion order.
55

66
## Creating Sets
77

8-
98
The Set object can be created using the keyword ***new***:
109
```javascript
1110
new Set([iterable]);
@@ -18,10 +17,8 @@ An iterable object. All the elements will be copied to the new created Set. If t
1817
### Return value
1918
A new Set object.
2019

21-
2220
## Instance Methods
2321

24-
2522
`set.add(value)`
2623
*Adds* a new element to the Set with the given *value*. If the element is already contained in the Set, the element will be not added.
2724

@@ -49,6 +46,5 @@ Return an interator that contains the values for each element in the Set object
4946
`set.keys()`
5047
The same as ***set.values()***.
5148

52-
5349
## Examples
5450
Examples can be consulted in the corresponding "***set-objects.js***" file.

docs/JavaScript_Advance/timer_function.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Heloooo 7!!!
4545

4646
```
4747

48-
## Stopping the timer or Cancelling the setTimeout method
48+
## Stopping the timer or Cancelling the setTimeout method
4949

5050
We can stop execution of `setTimeout()` using `clearTimeout` method. This can only be done if the function has not already been executed. It uses the variable returned from `setTimeout()`
5151

0 commit comments

Comments
 (0)