Skip to content

Commit f9bc1f5

Browse files
committed
merging all conflicts
2 parents be57662 + 9e3fa13 commit f9bc1f5

6 files changed

Lines changed: 27 additions & 3 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ alert(typeof value); // string
3636

3737
تبدیل به number در فانکشن‌ها و عبارات ریاضیاتی به طور خودکار انجام می‌شود.
3838

39+
<<<<<<< HEAD
3940
برای نمونه وقتی تقسیم `/` بر روی مقادیر غیر عددی رخ می‌دهد :
41+
=======
42+
Numeric conversion in mathematical functions and expressions happens automatically.
43+
>>>>>>> 9e3fa1351f80cfd6353a778a55b2c86bca9e895f
4044
4145

4246
```js run

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 @@ typeof function(){} == "function" // تابع‌ها در اصل زیرمجمو
103103

104104
ما از مرورگر به عنوان محیط کار خود استفاده می‌کنیم، در این محیط چند تابع برای ارتباط با کاربر وجود دارد:
105105

106+
<<<<<<< HEAD
106107
[`prompt(question, [default])`](mdn:api/Window/prompt)
107108
: `question` را به کاربر نمایش می‌دهد که از او می‌خواهد متنی را تایپ کند. بعد متن تایپ شده را بر می‌گرداند. در صورتی که کاربر روی "cancel" کلیک کند یا کلید Esc را فشار دهد مقدار `null` را بر می‌گرداند.
108109

@@ -111,6 +112,16 @@ typeof function(){} == "function" // تابع‌ها در اصل زیرمجمو
111112

112113
[`alert(message)`](mdn:api/Window/alert)
113114
: `message` را به کاربر نمایش می‌دهد
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
تمام این توابع *modal* هستند، آنها اجرای کد را متوقف می‌کنند و از تعامل کاربر با صفحه تا زمانی که جواب بدهد جلوگیری می‌کنند.
116127

@@ -143,8 +154,13 @@ alert( "Tea wanted: " + isTeaWanted ); // true
143154
مقداردهی (Assignments)
144155
: دو نوع مقداردهی داریم: مقداردهی معمولی مثل `a = b` و مقداردهی ترکیبی مثل `a *= 2`.
145156

157+
<<<<<<< HEAD
146158
بیتی (Bitwise)
147159
: عملگرهای بیتی با اعداد 32 بیتی در پایین‌ترین سطح یعنی بیت کار می‌کنند: زمانی که به آنها نیاز داشتید به [مستندات](mdn:/JavaScript/Guide/Expressions_and_Operators#Bitwise) مراجعه کنید.
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
شرطی (Conditional)
150166
: تنها اپراتور 3 پارامتری: `cond ? resultA : resultB`. اگر `cond` truthy باشد، `resultA` را برمی‌گرداند، در غیر این صورت `resultB`.

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,11 @@ let fruits = [
9898

9999
فرض کنیم ما آخرین المان یک ارایه را می‌خواهیم.
100100

101+
<<<<<<< HEAD
101102
بعضی از زبان‌های برنامه‌نویسی به ما اجازه می‌دهند که برای چنین اهدافی از ایندکس‌های منفی استفاده کنیم، مانند `friuts[-1]`.
103+
=======
104+
Some programming languages allow the use of negative indexes for the same purpose, like `fruits[-1]`.
105+
>>>>>>> 9e3fa1351f80cfd6353a778a55b2c86bca9e895f
102106
103107
اگرچه این کار در جاوااسکریپت کار نمی‌کند. نتیجه `undefined` خواهد بود چون در براکت‌ها با ایندکس به صورت لفظی رفتار می‌شود.
104108

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)