GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Searching: getElement*, querySelector* by shahrzadJavadiKoushesh · Pull Request #278 · javascript-tutorial/fa.javascript.info Conversation
|
There was an error while loading. Please reload this page.
|
Please make the requested changes. After it, add a comment "/done". |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
/done |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem 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.
There was an error while loading. Please reload this page.
|
Please make the requested changes. After it, add a comment "/done". |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
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). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem 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.
There was an error while loading. Please reload this page.
| ## 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 داده شده تطابق دارند را انتخاب میکند. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| تا اینجا، همهکارهترین روش `elem.querySelectorAll(css)` بود که تمام elementهای درون `elem` که با css selector داده شده تطابق دارند را انتخاب میکند. | |
| با اختلاف، جامعترین روش جستجو، `elem.querySelectorAll(css)` است که تمام elementهای درون `elem` که با css selector داده شده تطابق دارند را انتخاب میکند. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| تا اینجا، همهکارهترین روش `elem.querySelectorAll(css)` بود که تمام elementهای درون `elem` که با css selector داده شده تطابق دارند را انتخاب میکند. | |
| تا اینجا، جامعترین روش جستجو `elem.querySelectorAll(css)` بود که تمام elementهای درون `elem` که با css selector داده شده تطابق دارند را انتخاب میکند. |
"By far" translation is correct.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| 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: |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| For instance: | |
| برای مثال: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| همچنین روشهای دیگری برای جستجو برای یک node با tag، class و ... وجود دارد. | ||
|
|
||
| Today, they are mostly history, as `querySelector` is more powerful and shorter to write. | ||
| امروزه آنها بیشتر تاریخچه هستند چون `querySelector` قدرتمندتر است و برای نوشتن سریعتر است. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| امروزه آنها بیشتر تاریخچه هستند چون `querySelector` قدرتمندتر است و برای نوشتن سریعتر است. | |
| امروزه آنها کمتر استفاده میشوند چون `querySelector` قدرتمندتر است و برای نوشتن سریعتر است. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| </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` تا اینجا بیشترین استفاده از |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| .های قدیمی یافت شود script هم گاهی به صورت پراکنده میتواند مفید باشد یا در `getElement(s)By` شده است، اما `querySelectorAll` و `querySelector` تا اینجا بیشترین استفاده از | |
| .های قدیمی یافت شود script هم گاهی به صورت پراکنده میتواند مفید باشد یا در `getElement(s)By` شده است، اما `querySelectorAll` و `querySelector` با اختلاف بیشترین استفاده از |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem 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.
There was an error while loading. Please reload this page.
| 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` اگر - |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| .را برمیگرداند true مثدار `elemA.contains(elemB)` باشد، عبارت `elemA==elemB` یا وقتی که (`elemA` از فرزندان) باشد `elemA` داخل `elemB` اگر - | |
| .را برمیگرداند true مقدار `elemA.contains(elemB)` باشد، عبارت `elemA==elemB` یا وقتی که (`elemA` از فرزندان) باشد `elemA` داخل `elemB` اگر - |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| ```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 لفطا از متغیرهای" |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| ```warn header=".ها استفاده نکنیدelement برای دسترسی به global لفطا از متغیرهای" | |
| ```warn header=".ها استفاده نکنیدelement برای دسترسی به global لطفا از متغیرهای" |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| اینجا document مربوط به table و form را میبینیم. | ||
|
|
||
| How to find?... | ||
| چگونه پیدا کنیم؟ |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| چگونه پیدا کنیم؟ | |
| چگونه ... را پیدا کنیم؟ |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| چگونه پیدا کنیم؟ | |
| چگونه موارد زیر را پیدا کنیم؟ |
The ellipsis refers to the follow-up lines.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Please make the requested changes. After it, add a comment "/done". |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks for the review, @alivarastepour :D |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
/done |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks for your contribution, @shahrzadJavadiKoushesh :D |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thank you 💖 I updated the Progress Issue #1 🎉 🎉 🎉 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.