- Dear user,
- The copying is forbidden for you.
- If you know JS or HTML, then you can get everything from the page source though.
+
+ کاربر عزیز,
+ کپی کردن برای شما ممنوع شده است.
+ هرچند اگر که اچتیامال یا جاوااسکریپت بلد هستید، میتوانید هرچه نیاز دارید از سورس صفحه پیدا کنید.
`, that won't work, because the default action `oncopy` is prevented.
+اگر تلاش کنید که اطلاعات متنی داخل `
` را کپی کنید، کار نمیکند، زیرا از رفتار پیشفرض مرورگر در هنگام `oncopy` جلوگیری شده.
-Surely the user has access to HTML-source of the page, and can take the content from there, but not everyone knows how to do it.
+قاعدتا کاربر به سورس اچتیامال صفحه دسترسی دارد، و میتواند هر اطلاعاتی که بخواهد از آنجا بردارد، اما هرکسی نمیداند چطور این کار انجام میشود.
````
-## Summary
+## خلاصه
-Mouse events have the following properties:
+رویدادهای موس این خصوصیاترا دارند:
-- Button: `button`.
-- Modifier keys (`true` if pressed): `altKey`, `ctrlKey`, `shiftKey` and `metaKey` (Mac).
- - If you want to handle `key:Ctrl`, then don't forget Mac users, they usually use `key:Cmd`, so it's better to check `if (e.metaKey || e.ctrlKey)`.
+- کلید: `button`.
+- کلیدهای اصلاحکننده (`true` اگر فشار دادهشوند): `altKey`, `ctrlKey`, `shiftKey` و `metaKey` (مک).
+ - اگر میخواهید که `key:Ctrl` را کنترل کنید، کاربران مکرا فراموش نکنید،آنها معمولا از `key:Cmd` استفاده میکند. پس بهتر این است که `if (e.metaKey || e.ctrlKey)` چک شود.
-- Window-relative coordinates: `clientX/clientY`.
-- Document-relative coordinates: `pageX/pageY`.
+- مختصات مربوط به پنجره: `clientX/clientY`.
+- مختصاب مربوط به سند: `pageX/pageY`.
-The default browser action of `mousedown` is text selection, if it's not good for the interface, then it should be prevented.
+رفتار پیشفرض مروگر در هنگام `mousedown` انتخاب متن است. اگر این برای رابط کاربری شما مناسب نیست، پس باید از آن جلوگیری شود.
-In the next chapter we'll see more details about events that follow pointer movement and how to track element changes under it.
+در بخش بعدی ما با جزئیات بیشتری درباره رویدادهایی که حرکت اشارهگر موسرا دنبال میکنند، و همچنین با چگونگی شناسایی تغییرات عنصر زیر آن آشنا خواهیم شد.
diff --git a/2-ui/3-event-details/1-mouse-events-basics/head.html b/2-ui/3-event-details/1-mouse-events-basics/head.html
index 1b9a73fca..2520244e0 100644
--- a/2-ui/3-event-details/1-mouse-events-basics/head.html
+++ b/2-ui/3-event-details/1-mouse-events-basics/head.html
@@ -25,7 +25,7 @@
function logMouse(e) {
let evt = e.type;
while (evt.length < 11) evt += ' ';
- showmesg(evt + " button=" + e.button, 'test')
+ showmesg(evt + " کلید=" + e.button, 'تست')
return false;
}