← Winnitude! Search  ·  Reader Mode (2751 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 172 LINKS

Searching: getElement*, querySelector* by shahrzadJavadiKoushesh · Pull Request #278 · javascript-tutorial/fa.javascript.info

Repository navigation

Searching: getElement*, querySelector* - #278


Merged
mahdiHash merged 37 commits into javascript-tutorial:master from shahrzadJavadiKoushesh:patch-2 Jul 31, 2023
Merged

Searching: getElement*, querySelector* #278 mahdiHash merged 37 commits into javascript-tutorial:master from shahrzadJavadiKoushesh:patch-2

Conversation

shahrzadJavadiKoushesh commented Jul 16, 2023



Copy link Copy Markdown
Contributor

No description provided.

shahrzadJavadiKoushesh added 25 commits July 13, 2023 18:53 Update article.md 1fcad5e Update article.md fc9a972 Update article.md bae4e93 Update article.md 0a3f985 Update article.md 61e4dcf Update article.md c419fce Update article.md 8b49824 Update article.md f9b0d59 Update article.md 36c9cb0 Update article.md cf8bd65 Update article.md bc7a515 Update article.md b00e6d2 Update article.md cc577c5 Update article.md 1860ba1 bugs with the last change 3808ba9 bis closet 2a4ca9e end closet bee0ef7 Update article.md 490817e Update article.md 2a13786 until live collections 0616e89 Update article.md 1b3679b Update article.md 4263b2d Update article.md 8667ecf Update article.md 6aa2680 final changes e39a426 javascript-translate-bot added the review needed label Jul 16, 2023 javascript-translate-bot requested a review from a team July 16, 2023 17:47

CLAassistant commented Jul 16, 2023 · edited Loading



Copy link Copy Markdown


All committers have signed the CLA.

javascript-translate-bot mentioned this pull request Jul 16, 2023 Persian (Farsi) Translation Progress #1 Open alivarastepour suggested changes Jul 17, 2023
View reviewed changes

alivarastepour left a comment · edited Loading



Copy link Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more .

please re-format your translation so that the number of lines match the number of lines in the original version. comment /done when done.

javascript-translate-bot added the changes requested label Jul 22, 2023

javascript-translate-bot commented Jul 22, 2023



Copy link Copy Markdown

Please make the requested changes. After it, add a comment "/done".
Then I'll ask for a new review 👻

shahrzadJavadiKoushesh added 3 commits July 23, 2023 09:06 Update task.md 908e0a7 Merge branch 'javascript-tutorial:master' into patch-3 7e18985 Merge pull request #1 from shahrzadJavadiKoushesh/patch-3 fdba861
/done

shahrzadJavadiKoushesh commented Jul 23, 2023



Copy link Copy Markdown
Contributor

Author

Hi, you have forgotten to merge your changes to the current branch; also note that top file metadata should not be translated.

/done

javascript-translate-bot added review needed and removed changes requested labels Jul 23, 2023 alivarastepour suggested changes Jul 23, 2023
View reviewed changes

alivarastepour left a comment



Copy link Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more .

Hello again,
First of all, thanks for your contribution and time devoted to this project;
As you have probably guessed, using markdown with two languages which have different directions is a bit challenging; so we kindly ask you to follow the steps mentioned in this repo to bring a local server up and see your changes as they are made to each individual markdown.
all changes should maintain the readability of document; currently, that is not the case with your changes.
Thanks again

javascript-translate-bot added changes requested and removed review needed labels Jul 23, 2023

javascript-translate-bot commented Jul 23, 2023



Copy link Copy Markdown

Please make the requested changes. After it, add a comment "/done".
Then I'll ask for a new review 👻

mahdiHash commented Jul 25, 2023



Copy link Copy Markdown
Contributor

Hello again, First of all, thanks for your contribution and time devoted to this project; As you have probably guessed, using markdown with two languages which have different directions is a bit challenging; so we kindly ask you to follow the steps mentioned in this repo to bring a local server up and see your changes as they are made to each individual markdown. all changes should maintain the readability of document; currently, that is not the case with your changes. Thanks again

Checking the translation with the server repo isn't that necessary. You can read the article on github since it'll keep the RTL format of Persian (although in some cases it's overridden, but it's ok overall).
So, please submit your review on this translation, @alivarastepour .

alivarastepour suggested changes Jul 27, 2023
View reviewed changes

alivarastepour left a comment



Copy link Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more .

Hi @shahrzadJavadiKoushesh , i have proposed some changes to improve your translation even further. please review them.

Comment thread 2-ui/1-document/04-searching-elements-dom/article.md
Outdated
## querySelectorAll [#querySelectorAll]

By far, the most versatile method, `elem.querySelectorAll(css)` returns all elements inside `elem` matching the given CSS selector .
تا اینجا، همه‌کاره‌ترین روش `elem.querySelectorAll(css)` بود که تمام elementهای درون `elem` که با css selector داده شده تطابق دارند را انتخاب می‌کند.
Comment thread 2-ui/1-document/04-searching-elements-dom/article.md
Outdated
The method comes in handy when we are iterating over elements (like in an array or something) and trying to filter out those that interest us.
این روش زمانی به کار می‌آید که می‌خواهیم روی elementهایی (مثل آرایه یا همچین چیزی) iterate کنیم و آن‌هایی که مطلوب هستند را فیلتر کنیم.

For instance:
Comment thread 2-ui/1-document/04-searching-elements-dom/article.md
Outdated
همچنین روش‌های دیگری برای جستجو برای یک node با tag ، class و ... وجود دارد.

Today, they are mostly history, as `querySelector` is more powerful and shorter to write.
امروزه آن‌ها بیشتر تاریخچه هستند چون `querySelector` قدرتمندتر است و برای نوشتن سریع‌تر است.
Comment thread 2-ui/1-document/04-searching-elements-dom/article.md
Outdated
</table>

By far the most used are `querySelector` and `querySelectorAll`, but `getElement(s)By *` can be sporadically helpful or found in the old scripts.
.های قدیمی یافت شود script هم گاهی به صورت پراکنده می‌تواند مفید باشد یا در `getElement(s)By ` شده است، اما `querySelectorAll` و `querySelector` تا اینجا بیشترین استفاده از
Comment thread 2-ui/1-document/04-searching-elements-dom/article.md
Outdated
And let's mention one more method here to check for the child-parent relationship, as it's sometimes useful:
- `elemA.contains(elemB)` returns true if ` elemB` is inside `elemA` (a descendant of `elemA` ) or when `elemA== elemB` .
و بیایید اینجا یک روش دیگر برای بررسی رابطه والد و فرزند را چک کنیم،‌چون بعضی وقت‌ها مفید است:
.را برمی‌گرداند true مثدار `elemA.contains(elemB)` باشد، عبارت `elemA== elemB` یا وقتی که ( `elemA` از فرزندان) باشد `elemA` داخل ` elemB` اگر -
Comment thread 2-ui/1-document/04-searching-elements-dom/article.md
Outdated

```warn header=" Please don't use id-named global variables to access elements "
This behavior is described [in the specification](https://html.spec.whatwg.org/multipage/window-object.html#named-access-on-the-window-object) , but it is supported mainly for compatibility.
```warn header=" .ها استفاده نکنیدelement برای دسترسی به global لفطا از متغیرهای "
Comment thread 2-ui/1-document/04-searching-elements-dom/1-find-elements/task.md
Outdated
اینجا document مربوط به table و form را می‌بینیم.

How to find?...
چگونه پیدا کنیم؟

javascript-translate-bot commented Jul 27, 2023



Copy link Copy Markdown

Please make the requested changes. After it, add a comment "/done".
Then I'll ask for a new review 👻

mahdiHash commented Jul 28, 2023



Copy link Copy Markdown
Contributor

Thanks for the review, @alivarastepour :D

shahrzadJavadiKoushesh added 2 commits July 30, 2023 23:46 Update article.md 26871c9 Update task.md 1858254

shahrzadJavadiKoushesh commented Jul 30, 2023



Copy link Copy Markdown
Contributor

Author

/done

javascript-translate-bot added review needed and removed changes requested labels Jul 30, 2023 mahdyar approved these changes Jul 30, 2023
View reviewed changes

mahdyar left a comment



Copy link Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more .

LGTM!

javascript-translate-bot added needs +1 and removed review needed labels Jul 30, 2023 alivarastepour approved these changes Jul 31, 2023
View reviewed changes

mahdiHash commented Jul 31, 2023



Copy link Copy Markdown
Contributor

Thanks for your contribution, @shahrzadJavadiKoushesh :D

remove additional line 5543ec2 mahdiHash approved these changes Jul 31, 2023
View reviewed changes
mahdiHash merged commit 950fd4b into javascript-tutorial : master Jul 31, 2023

javascript-translate-bot commented Jul 31, 2023



Copy link Copy Markdown

Thank you 💖 I updated the Progress Issue #1 🎉 🎉 🎉

Sign up for free to join this conversation on GitHub . Already have an account? Sign in to comment

Labels

needs +1

6 participants