GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Searching: getElement*, querySelector* by shahrzadJavadiKoushesh · Pull Request #278 · javascript-tutorial/fa.javascript.info

Conversation

@shahrzadJavadiKoushesh

@shahrzadJavadiKoushesh shahrzadJavadiKoushesh commented Jul 16, 2023

Copy link
Copy Markdown
Contributor

No description provided.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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

CLAassistant commented Jul 16, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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

@alivarastepour alivarastepour left a comment •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

shahrzadJavadiKoushesh reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@javascript-translate-bot javascript-translate-bot added the changes requested label Jul 22, 2023
@javascript-translate-bot

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 👻

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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

@alivarastepour alivarastepour left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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

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 👻

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mahdiHash

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

alivarastepour
alivarastepour suggested changes Jul 27, 2023
View reviewed changes

@alivarastepour alivarastepour left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
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 داده شده تطابق دارند را انتخاب می‌کند.

@alivarastepour alivarastepour Jul 27, 2023

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Suggested change
تا اینجا، همه‌کاره‌ترین روش `elem.querySelectorAll(css)` بود که تمام elementهای درون `elem` که با css selector داده شده تطابق دارند را انتخاب می‌کند.
با اختلاف، جامع‌ترین روش جستجو، `elem.querySelectorAll(css)` است که تمام elementهای درون `elem` که با css selector داده شده تطابق دارند را انتخاب می‌کند.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

mahdiHash and shahrzadJavadiKoushesh reacted with thumbs up emoji
All reactions
  • 👍 2 reactions

@mahdiHash mahdiHash Jul 28, 2023

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Suggested change
تا اینجا، همه‌کاره‌ترین روش `elem.querySelectorAll(css)` بود که تمام elementهای درون `elem` که با css selector داده شده تطابق دارند را انتخاب می‌کند.
تا اینجا، جامع‌ترین روش جستجو `elem.querySelectorAll(css)` بود که تمام elementهای درون `elem` که با css selector داده شده تطابق دارند را انتخاب می‌کند.

"By far" translation is correct.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
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:

@alivarastepour alivarastepour Jul 27, 2023

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Suggested change
For instance:
برای مثال:

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

mahdiHash and shahrzadJavadiKoushesh reacted with thumbs up emoji
All reactions
  • 👍 2 reactions
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` قدرتمندتر است و برای نوشتن سریع‌تر است.

@alivarastepour alivarastepour Jul 27, 2023

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Suggested change
امروزه آن‌ها بیشتر تاریخچه هستند چون `querySelector` قدرتمندتر است و برای نوشتن سریع‌تر است.
امروزه آن‌ها کمتر استفاده می‌شوند چون `querySelector` قدرتمندتر است و برای نوشتن سریع‌تر است.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

mahdiHash and shahrzadJavadiKoushesh reacted with thumbs up emoji
All reactions
  • 👍 2 reactions
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` تا اینجا بیشترین استفاده از

@alivarastepour alivarastepour Jul 27, 2023

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Suggested change
.های قدیمی یافت شود script هم گاهی به صورت پراکنده می‌تواند مفید باشد یا در `getElement(s)By` شده است، اما `querySelectorAll` و `querySelector` تا اینجا بیشترین استفاده از
.های قدیمی یافت شود script هم گاهی به صورت پراکنده می‌تواند مفید باشد یا در `getElement(s)By` شده است، اما `querySelectorAll` و `querySelector` با اختلاف بیشترین استفاده از

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@mahdiHash mahdiHash Jul 28, 2023

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

The translation is ok, but aren't the words disordered?
It's not a code comment, so if you've changed the order of translation, please turn it back.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
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` اگر -

@alivarastepour alivarastepour Jul 27, 2023

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Suggested change
.را برمی‌گرداند true مثدار `elemA.contains(elemB)` باشد، عبارت `elemA==elemB` یا وقتی که (`elemA` از فرزندان) باشد `elemA` داخل `elemB` اگر -
.را برمی‌گرداند true مقدار `elemA.contains(elemB)` باشد، عبارت `elemA==elemB` یا وقتی که (`elemA` از فرزندان) باشد `elemA` داخل `elemB` اگر -

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

mahdiHash and shahrzadJavadiKoushesh reacted with thumbs up emoji
All reactions
  • 👍 2 reactions
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 لفطا از متغیرهای"

@alivarastepour alivarastepour Jul 27, 2023

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Suggested change
```warn header=".ها استفاده نکنیدelement برای دسترسی به global لفطا از متغیرهای"
```warn header=".ها استفاده نکنیدelement برای دسترسی به global لطفا از متغیرهای"

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

mahdiHash reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
Comment thread 2-ui/1-document/04-searching-elements-dom/1-find-elements/task.md Outdated
اینجا document مربوط به table و form را می‌بینیم.

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

@alivarastepour alivarastepour Jul 27, 2023

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Suggested change
چگونه پیدا کنیم؟
چگونه ... را پیدا کنیم؟

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@mahdiHash mahdiHash Jul 28, 2023

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Suggested change
چگونه پیدا کنیم؟
چگونه موارد زیر را پیدا کنیم؟

The ellipsis refers to the follow-up lines.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

alivarastepour and shahrzadJavadiKoushesh reacted with thumbs up emoji
All reactions
  • 👍 2 reactions
@javascript-translate-bot

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 👻

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mahdiHash

mahdiHash commented Jul 28, 2023

Copy link
Copy Markdown
Contributor

Thanks for the review, @alivarastepour :D

alivarastepour reacted with heart emoji
All reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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

shahrzadJavadiKoushesh commented Jul 30, 2023

Copy link
Copy Markdown
Contributor Author

/done

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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

@mahdyar mahdyar left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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

mahdiHash commented Jul 31, 2023

Copy link
Copy Markdown
Contributor

Thanks for your contribution, @shahrzadJavadiKoushesh :D

shahrzadJavadiKoushesh reacted with heart emoji
All reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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

javascript-translate-bot commented Jul 31, 2023

Copy link
Copy Markdown

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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

Reviewers

@mahdyar mahdyar mahdyar approved these changes
+2 more reviewers
@mahdiHash mahdiHash mahdiHash approved these changes
@alivarastepour alivarastepour alivarastepour approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@mahdiHash mahdiHash

@alivarastepour alivarastepour

Labels

needs +1

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@shahrzadJavadiKoushesh @CLAassistant @javascript-translate-bot @mahdiHash @alivarastepour @mahdyar
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.