Skip to content

Commit 1d2e418

Browse files
committed
merging all conflicts
2 parents cd1f432 + 9e3fa13 commit 1d2e418

File tree

6 files changed

+24
-4
lines changed

6 files changed

+24
-4
lines changed

1-js/02-first-steps/07-type-conversions/article.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ Konverze na řetězec je většinou zřejmá: `false` se převede na `"false"`,
3434

3535
## Konverze na číslo
3636

37+
<<<<<<< HEAD
3738
Konverze na číslo se automaticky odehrává v matematických funkcích a výrazech.
39+
=======
40+
Numeric conversion in mathematical functions and expressions happens automatically.
41+
>>>>>>> 9e3fa1351f80cfd6353a778a55b2c86bca9e895f
3842
3943
Například když použijeme dělení `/` na něco jiného než čísla:
4044

1-js/02-first-steps/18-javascript-specials/article.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ Více v kapitole: <info:variables> a <info:types>.
103103

104104
Jako pracovní prostředí používáme prohlížeč, takže základní funkce uživatelského rozhraní budou:
105105

106+
<<<<<<< HEAD
106107
[`prompt(otázka, [default])`](mdn:api/Window/prompt)
107108
: Položí otázku `otázka` a vrátí buď to, co návštěvník zadal, nebo `null`, jestliže stiskl „Storno“.
108109

@@ -111,6 +112,16 @@ Jako pracovní prostředí používáme prohlížeč, takže základní funkce u
111112

112113
[`alert(zpráva)`](mdn:api/Window/alert)
113114
: Vypíše zprávu `zpráva`.
115+
=======
116+
[`prompt(question, [default])`](https://developer.mozilla.org/en-US/docs/Web/API/Window/prompt)
117+
: Ask a `question`, and return either what the visitor entered or `null` if they clicked "cancel".
118+
119+
[`confirm(question)`](https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm)
120+
: Ask a `question` and suggest to choose between Ok and Cancel. The choice is returned as `true/false`.
121+
122+
[`alert(message)`](https://developer.mozilla.org/en-US/docs/Web/API/Window/alert)
123+
: Output a `message`.
124+
>>>>>>> 9e3fa1351f80cfd6353a778a55b2c86bca9e895f
114125
115126
Všechny tyto funkce jsou *modální*. Pozastaví vykonávání kódu a znemožní uživateli jinou interakci se stránkou, dokud neodpoví.
116127

@@ -143,8 +154,13 @@ Aritmetické
143154
Přiřazení
144155
: Existuje jednoduché přiřazení `a = b` a kombinovaná přiřazení, např. `a *= 2`.
145156

157+
<<<<<<< HEAD
146158
Bitové
147159
: Bitové operátory pracují se 32-bitovými celými čísly na nejnižší, bitové úrovni: až je budete potřebovat, viz [dokumentaci](mdn:/JavaScript/Guide/Expressions_and_Operators#bitwise_operators).
160+
=======
161+
Bitwise
162+
: Bitwise operators work with 32-bit integers at the lowest, bit-level: see the [docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Expressions_and_Operators#bitwise_operators) when they are needed.
163+
>>>>>>> 9e3fa1351f80cfd6353a778a55b2c86bca9e895f
148164
149165
Podmíněný
150166
: Jediný operátor se třemi parametry: `podmínka ? výsledekA : výsledekB`. Je-li `podmínka` pravdivá, vrátí `výsledekA`, jinak vrátí `výsledekB`.

1-js/05-data-types/04-array/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ The "trailing comma" style makes it easier to insert/remove items, because all l
9898

9999
Let's say we want the last element of the array.
100100

101-
Some programming languages allow to use negative indexes for the same purpose, like `fruits[-1]`.
101+
Some programming languages allow the use of negative indexes for the same purpose, like `fruits[-1]`.
102102

103103
Although, in JavaScript it won't work. The result will be `undefined`, because the index in square brackets is treated literally.
104104

2-ui/1-document/11-coordinates/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Additionally, there are derived properties:
3636
```online
3737
For instance click this button to see its window coordinates:
3838
39-
<p><input id="brTest" type="button" value="Get coordinates using button.getBoundingClientRect() for this button" onclick='showRect(this)'/></p>
39+
<p><input id="brTest" type="button" style="max-width: 90vw;" value="Get coordinates using button.getBoundingClientRect() for this button" onclick='showRect(this)'/></p>
4040
4141
<script>
4242
function showRect(elem) {

2-ui/3-event-details/6-pointer-events/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Some pointer devices measure contact area and pressure, e.g. for a finger on the
6969
- `height` - the height of the area where the pointer touches the device. Where unsupported, it's always `1`.
7070
- `pressure` - the pressure of the pointer tip, in range from 0 to 1. For devices that don't support pressure must be either `0.5` (pressed) or `0`.
7171
- `tangentialPressure` - the normalized tangential pressure.
72-
- `tiltX`, `tiltY`, `twist` - pen-specific properties that describe how the pen is positioned relative the surface.
72+
- `tiltX`, `tiltY`, `twist` - pen-specific properties that describe how the pen is positioned relative to the surface.
7373
7474
These properties aren't supported by most devices, so they are rarely used. You can find the details about them in the [specification](https://w3c.github.io/pointerevents/#pointerevent-interface) if needed.
7575

5-network/10-long-polling/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The flow:
2929
3. When a message appears - the server responds to the request with it.
3030
4. The browser makes a new request immediately.
3131

32-
The situation when the browser sent a request and has a pending connection with the server, is standard for this method. Only when a message is delivered, the connection is reestablished.
32+
This situation, where the browser has sent a request and keeps a pending connection with the server, is standard for this method. Only when a message is delivered, the connection is closed and reestablished.
3333

3434
![](long-polling.svg)
3535

0 commit comments

Comments
 (0)