diff options
author | YujiSoftware <yuji.software@gmail.com> | 2021-05-16 22:30:00 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-16 16:30:00 +0300 |
commit | d2c717611f2ab3dc0a25deae3a78cf44aa31a4f2 (patch) | |
tree | bb953ad1f2cf6752372fac3dcae7db4634e2de6f /files/ru/web/api/mouseevent | |
parent | 0667721b0999fe6407c1a82888a760ea5d0e2c7d (diff) | |
download | translated-content-d2c717611f2ab3dc0a25deae3a78cf44aa31a4f2.tar.gz translated-content-d2c717611f2ab3dc0a25deae3a78cf44aa31a4f2.tar.bz2 translated-content-d2c717611f2ab3dc0a25deae3a78cf44aa31a4f2.zip |
Migrate CompatibilityTable to Compat macro (lang-ru) (#876)
* Migrate to Compat macro
* Migrate to Compat macro (multiple in page)
* Migrate to Compat macro
* Migrate to Compat macro (removed)
Diffstat (limited to 'files/ru/web/api/mouseevent')
-rw-r--r-- | files/ru/web/api/mouseevent/button/index.html | 54 | ||||
-rw-r--r-- | files/ru/web/api/mouseevent/buttons/index.html | 64 | ||||
-rw-r--r-- | files/ru/web/api/mouseevent/clientx/index.html | 52 | ||||
-rw-r--r-- | files/ru/web/api/mouseevent/clienty/index.html | 52 | ||||
-rw-r--r-- | files/ru/web/api/mouseevent/index.html | 123 | ||||
-rw-r--r-- | files/ru/web/api/mouseevent/offsetx/index.html | 73 | ||||
-rw-r--r-- | files/ru/web/api/mouseevent/pagex/index.html | 76 | ||||
-rw-r--r-- | files/ru/web/api/mouseevent/shiftkey/index.html | 52 |
8 files changed, 8 insertions, 538 deletions
diff --git a/files/ru/web/api/mouseevent/button/index.html b/files/ru/web/api/mouseevent/button/index.html index ffde5f6aab..41e6e10aa1 100644 --- a/files/ru/web/api/mouseevent/button/index.html +++ b/files/ru/web/api/mouseevent/button/index.html @@ -91,59 +91,7 @@ var whichButton = function (e) { <h2 id="Поддерживается_браузерами">Поддерживается браузерами</h2> -<p>{{CompatibilityTable}}</p> - -<div id="compat-desktop"> -<table class="compat-table"> - <tbody> - <tr> - <th>Feature</th> - <th>Edge</th> - <th>Firefox (Gecko)</th> - <th>Chrome</th> - <th>Internet Explorer</th> - <th>Opera</th> - <th>Safari</th> - </tr> - <tr> - <td>Basic support</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatGeckoDesktop(1)}}</td> - <td>1.0</td> - <td>9.0 [1]</td> - <td>{{CompatVersionUnknown}}</td> - <td>3.0.4</td> - </tr> - </tbody> -</table> -</div> - -<div id="compat-mobile"> -<table class="compat-table"> - <tbody> - <tr> - <th>Feature</th> - <th>Edge</th> - <th>Firefox Mobile (Gecko)</th> - <th>Android</th> - <th>IE Mobile</th> - <th>Opera Mobile</th> - <th>Safari Mobile</th> - </tr> - <tr> - <td>Basic support</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - </tr> - </tbody> -</table> -</div> - -<p>[1] Это соглашение не поддерживается браузерами Internet Explorer до версии 9: см. <a href="http://www.quirksmode.org/js/events_properties.html#button">QuirksMode for details</a>.</p> +<p>{{Compat("api.MouseEvent.button")}}</p> <h2 id="Смотрите_также">Смотрите также</h2> diff --git a/files/ru/web/api/mouseevent/buttons/index.html b/files/ru/web/api/mouseevent/buttons/index.html index 02513b395f..cb0eb631e4 100644 --- a/files/ru/web/api/mouseevent/buttons/index.html +++ b/files/ru/web/api/mouseevent/buttons/index.html @@ -54,69 +54,7 @@ translation_of: Web/API/MouseEvent/buttons <h2 id="Совместимость_с_браузерами">Совместимость с браузерами</h2> -<p>{{CompatibilityTable}}</p> - -<div id="compat-desktop"> -<table class="compat-table"> - <tbody> - <tr> - <th>Feature</th> - <th>Chrome</th> - <th>Edge</th> - <th>Firefox (Gecko)</th> - <th>Internet Explorer</th> - <th>Opera</th> - <th>Safari</th> - </tr> - <tr> - <td>Basic support</td> - <td>{{CompatChrome(43)}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}<sup>[1]</sup></td> - <td>9</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatNo}}</td> - </tr> - </tbody> -</table> -</div> - -<div id="compat-mobile"> -<table class="compat-table"> - <tbody> - <tr> - <th>Feature</th> - <th>Android Webview</th> - <th>Chrome for Android</th> - <th>Edge</th> - <th>Firefox Mobile (Gecko)</th> - <th>IE Mobile</th> - <th>Opera Mobile</th> - <th>Safari Mobile</th> - </tr> - <tr> - <td>Basic support</td> - <td>{{CompatNo}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - </tr> - </tbody> -</table> -</div> - -<p>[1] Gecko supports the <code>buttons</code> attribute on Windows, Linux (GTK), and Mac OS with the following restrictions:</p> - -<ul> - <li>Utilities allow customization of button actions so that primary may not the the left button on the device, secondary may not be the right button, and so on. The middle (wheel) button, 4th button and 5th button might not be assigned a value, even when they are pressed.</li> - <li>Single button devices may emulate additional buttons with combinations of button and keyboard presses</li> - <li>Touch devices may emulate buttons with configurable gestures (e.g. single touch for primary, two-finger touch for secondary, etc.)</li> - <li>On Linux (GTK), the 4th button and the 5th button are not supported. In addition, a mouseup event always has the releasing button information in this attribute value.</li> - <li>On Mac OS X 10.5, the buttons attribute always returns 0 because there is no platform API for implementing this feature.</li> -</ul> +<p>{{Compat("api.MouseEvent.buttons")}}</p> <h2 id="Смотрите_также">Смотрите также</h2> diff --git a/files/ru/web/api/mouseevent/clientx/index.html b/files/ru/web/api/mouseevent/clientx/index.html index 2122a975a2..8901060df9 100644 --- a/files/ru/web/api/mouseevent/clientx/index.html +++ b/files/ru/web/api/mouseevent/clientx/index.html @@ -71,57 +71,7 @@ function showCoords(evt){ <h2 id="Browser_compatibility" name="Browser_compatibility">Совместимость с браузерами</h2> -<p>{{ CompatibilityTable() }}</p> - -<div id="compat-desktop"> -<table class="compat-table"> - <tbody> - <tr> - <th>Возможность</th> - <th>Edge</th> - <th>Firefox (Gecko)</th> - <th>Chrome</th> - <th>Internet Explorer</th> - <th>Opera</th> - <th>Safari</th> - </tr> - <tr> - <td>Базовая поддержка</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown()}}</td> - <td>{{CompatVersionUnknown()}}</td> - <td>6</td> - <td>{{CompatVersionUnknown()}}</td> - <td>{{CompatVersionUnknown()}}</td> - </tr> - </tbody> -</table> -</div> - -<div id="compat-mobile"> -<table class="compat-table"> - <tbody> - <tr> - <th>Возможность</th> - <th>Edge</th> - <th>Firefox Mobile (Gecko)</th> - <th>Android</th> - <th>IE Mobile</th> - <th>Opera Mobile</th> - <th>Safari Mobile</th> - </tr> - <tr> - <td>Базовая поддержка</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - </tr> - </tbody> -</table> -</div> +<p>{{Compat("api.MouseEvent.clientX")}}</p> <h2 id="See_also" name="See_also"><strong>Смотрите также</strong></h2> diff --git a/files/ru/web/api/mouseevent/clienty/index.html b/files/ru/web/api/mouseevent/clienty/index.html index 02d03fb891..07b4774d4a 100644 --- a/files/ru/web/api/mouseevent/clienty/index.html +++ b/files/ru/web/api/mouseevent/clienty/index.html @@ -63,57 +63,7 @@ function showCoords(evt){ <h2 id="Browser_compatibility" name="Browser_compatibility">Совместимость с браузерами</h2> -<p>{{ CompatibilityTable() }}</p> - -<div id="compat-desktop"> -<table class="compat-table"> - <tbody> - <tr> - <th>Возможность</th> - <th>Edge</th> - <th>Firefox (Gecko)</th> - <th>Chrome</th> - <th>Internet Explorer</th> - <th>Opera</th> - <th>Safari</th> - </tr> - <tr> - <td>Базовая поддержка</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown()}}</td> - <td>{{CompatVersionUnknown()}}</td> - <td>6</td> - <td>{{CompatVersionUnknown()}}</td> - <td>{{CompatVersionUnknown()}}</td> - </tr> - </tbody> -</table> -</div> - -<div id="compat-mobile"> -<table class="compat-table"> - <tbody> - <tr> - <th>Возможность</th> - <th>Edge</th> - <th>Firefox Mobile (Gecko)</th> - <th>Android</th> - <th>IE Mobile</th> - <th>Opera Mobile</th> - <th>Safari Mobile</th> - </tr> - <tr> - <td>Базовая поддержка</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - </tr> - </tbody> -</table> -</div> +<p>{{Compat("api.MouseEvent.clientY")}}</p> <h2 id="See_also" name="See_also"><strong>Смотрите также</strong></h2> diff --git a/files/ru/web/api/mouseevent/index.html b/files/ru/web/api/mouseevent/index.html index 3d7e42d675..bae758f90d 100644 --- a/files/ru/web/api/mouseevent/index.html +++ b/files/ru/web/api/mouseevent/index.html @@ -173,128 +173,7 @@ document.getElementById("button").addEventListener('click', simulateClick);</pre <h2 id="Browser_compatibility" name="Browser_compatibility">Совместимость с браузерами</h2> -<p>{{ CompatibilityTable() }}</p> - -<div id="compat-desktop"> -<table class="compat-table"> - <tbody> - <tr> - <th>Возможность</th> - <th>Firefox (Gecko)</th> - <th>Edge</th> - <th>Chrome</th> - <th>Internet Explorer</th> - <th>Opera</th> - <th>Safari</th> - </tr> - <tr> - <td>Базовая поддержка</td> - <td>{{CompatVersionUnknown()}}</td> - <td>{{CompatVersionUnknown()}}</td> - <td>{{CompatVersionUnknown()}}</td> - <td>{{CompatVersionUnknown()}}</td> - <td>{{CompatVersionUnknown()}}</td> - <td>{{CompatVersionUnknown()}}</td> - </tr> - <tr> - <td>{{domxref("MouseEvent.movementX","movementX")}}<br> - {{domxref("MouseEvent.movementY","movementY")}}</td> - <td>{{CompatVersionUnknown()}} {{property_prefix("moz")}}</td> - <td>{{CompatVersionUnknown()}}</td> - <td>{{CompatVersionUnknown()}}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{CompatVersionUnknown()}}</td> - <td>{{ CompatUnknown() }}</td> - </tr> - <tr> - <td>{{ domxref("MouseEvent.buttons", "buttons") }}</td> - <td>{{ CompatVersionUnknown() }}</td> - <td>{{CompatVersionUnknown()}}</td> - <td>43</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{CompatNo}}</td> - </tr> - <tr> - <td>{{ domxref("MouseEvent.which", "which") }}</td> - <td>1.0</td> - <td>{{CompatVersionUnknown()}}</td> - <td>1.0</td> - <td>9.0</td> - <td>5.0</td> - <td>1.0</td> - </tr> - <tr> - <td>{{domxref("MouseEvent.getModifierState()", "getModifierState()")}}</td> - <td>{{CompatGeckoDesktop(15)}}</td> - <td>{{CompatVersionUnknown()}}</td> - <td>{{CompatVersionUnknown()}}</td> - <td>{{CompatVersionUnknown()}}</td> - <td>{{CompatVersionUnknown()}}</td> - <td>{{CompatVersionUnknown()}}</td> - </tr> - <tr> - <td>{{domxref("MouseEvent.mozPressure", "mozPressure")}} and {{domxref("MouseEvent.mozInputSource", "mozInputSource")}} {{non-standard_inline}}</td> - <td>{{CompatGeckoDesktop(2)}}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{CompatNo}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatNo}}</td> - </tr> - <tr> - <td>{{domxref("MouseEvent.MouseEvent", "MouseEvent()")}}</td> - <td>{{CompatGeckoDesktop(11)}}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{CompatVersionUnknown()}}</td> - <td>9.0</td> - <td>{{CompatVersionUnknown()}}</td> - <td>{{ CompatUnknown() }}</td> - </tr> - <tr> - <td>{{domxref("MouseEvent.region")}}</td> - <td>{{CompatGeckoDesktop(32)}}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - </tr> - <tr> - <td>{{domxref("MouseEvent.offsetX")}}, and {{domxref("MouseEvent.offsetY")}}{{experimental_inline}}</td> - <td>{{CompatGeckoDesktop(40)}}</td> - <td>9</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - </tr> - </tbody> -</table> -</div> - -<div id="compat-mobile"> -<table class="compat-table"> - <tbody> - <tr> - <th>Возможность</th> - <th>Firefox Mobile (Gecko)</th> - <th>Android</th> - <th>IE Mobile</th> - <th>Opera Mobile</th> - <th>Safari Mobile</th> - </tr> - <tr> - <td>Базовая поддержка</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - </tr> - </tbody> -</table> -</div> +<p>{{Compat("api.MouseEvent")}}</p> <h2 id="Посмотрите_также">Посмотрите также</h2> diff --git a/files/ru/web/api/mouseevent/offsetx/index.html b/files/ru/web/api/mouseevent/offsetx/index.html index 9e9a8bd70d..c799a6e30d 100644 --- a/files/ru/web/api/mouseevent/offsetx/index.html +++ b/files/ru/web/api/mouseevent/offsetx/index.html @@ -42,78 +42,7 @@ translation_of: Web/API/MouseEvent/offsetX <h2 id="Browser_compatibility" name="Browser_compatibility">Совместимость с браузерами</h2> -<p>{{ CompatibilityTable() }}</p> - -<div id="compat-desktop"> -<table class="compat-table"> - <tbody> - <tr> - <th>Возможность</th> - <th>Chrome</th> - <th>Edge</th> - <th>Firefox (Gecko)</th> - <th>Internet Explorer</th> - <th>Opera</th> - <th>Safari</th> - </tr> - <tr> - <td>Базовая поддержка</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatGeckoDesktop("39.0")}}</td> - <td>6</td> - <td>{{ CompatVersionUnknown() }}</td> - <td>{{ CompatVersionUnknown() }}</td> - </tr> - <tr> - <td>Переопределено с <code>long</code> на <code>double</code></td> - <td>{{CompatChrome(56)}}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - </tr> - </tbody> -</table> -</div> - -<div id="compat-mobile"> -<table class="compat-table"> - <tbody> - <tr> - <th>Возможность</th> - <th>Android Webview</th> - <th>Chrome for Android</th> - <th>Edge</th> - <th>Firefox Mobile (Gecko)</th> - <th>IE Mobile</th> - <th>Opera Mobile</th> - <th>Safari Mobile</th> - </tr> - <tr> - <td>Базовая поддержка</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatGeckoMobile("43.0")}}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - </tr> - <tr> - <td>Переопределено с <code>long</code> на <code>double</code></td> - <td>{{CompatChrome(56)}}</td> - <td>{{CompatChrome(56)}}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - </tr> - </tbody> -</table> -</div> +<p>{{Compat("api.MouseEvent.offsetX")}}</p> <h2 id="See_also" name="See_also">Смотрите также</h2> diff --git a/files/ru/web/api/mouseevent/pagex/index.html b/files/ru/web/api/mouseevent/pagex/index.html index ca9b24d6b9..a487fe9da0 100644 --- a/files/ru/web/api/mouseevent/pagex/index.html +++ b/files/ru/web/api/mouseevent/pagex/index.html @@ -41,81 +41,7 @@ pageX === event.clientX + (window.pageYOffset || document.body.scrollTop); <h2 id="Совместимость_с_браузерами">Совместимость с браузерами</h2> -<p>{{CompatibilityTable}}</p> - -<div id="compat-desktop"> -<table class="compat-table"> - <tbody> - <tr> - <th>Feature</th> - <th>Chrome</th> - <th>Edge</th> - <th>Firefox (Gecko)</th> - <th>Internet Explorer</th> - <th>Opera</th> - <th>Safari (WebKit)</th> - </tr> - <tr> - <td>Basic support</td> - <td>{{CompatChrome(45.0)}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>9</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - </tr> - <tr> - <td>Redefined from <code>long</code> to <code>double</code></td> - <td>{{CompatChrome(56)}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - </tr> - </tbody> -</table> -</div> - -<div id="compat-mobile" style="line-height: 19.0909080505371px;"> -<table class="compat-table"> - <tbody> - <tr> - <th>Feature</th> - <th>Android Webview</th> - <th>Chrome for Android</th> - <th>Edge</th> - <th>Firefox Mobile (Gecko)</th> - <th>Firefox OS</th> - <th>IE Mobile</th> - <th>Opera Mobile</th> - <th>Safari Mobile</th> - </tr> - <tr> - <td>Basic support</td> - <td>{{CompatChrome(45.0)}}</td> - <td>{{CompatChrome(45.0)}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - </tr> - <tr> - <td>Redefined from <code>long</code> to <code>double</code></td> - <td>{{CompatChrome(56)}}</td> - <td>{{CompatChrome(56)}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - </tr> - </tbody> -</table> -</div> +<p>{{Compat("api.MouseEvent.pageX")}}</p> <h2 id="Смотрите_также"><strong>Смотрите также</strong></h2> diff --git a/files/ru/web/api/mouseevent/shiftkey/index.html b/files/ru/web/api/mouseevent/shiftkey/index.html index cc959f838e..4f2bc4ed10 100644 --- a/files/ru/web/api/mouseevent/shiftkey/index.html +++ b/files/ru/web/api/mouseevent/shiftkey/index.html @@ -67,57 +67,7 @@ function showChar(e){ <h2 id="Browser_compatibility" name="Browser_compatibility">Совместимость с браузерами</h2> -<p>{{ CompatibilityTable() }}</p> - -<div id="compat-desktop"> -<table class="compat-table"> - <tbody> - <tr> - <th>Feature</th> - <th>Edge</th> - <th>Firefox (Gecko)</th> - <th>Chrome</th> - <th>Internet Explorer</th> - <th>Opera</th> - <th>Safari</th> - </tr> - <tr> - <td>Basic support</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown()}}</td> - <td>{{CompatVersionUnknown()}}</td> - <td>{{CompatVersionUnknown()}}</td> - <td>{{CompatVersionUnknown()}}</td> - <td>{{CompatVersionUnknown()}}</td> - </tr> - </tbody> -</table> -</div> - -<div id="compat-mobile"> -<table class="compat-table"> - <tbody> - <tr> - <th>Feature</th> - <th>Edge</th> - <th>Firefox Mobile (Gecko)</th> - <th>Android</th> - <th>IE Mobile</th> - <th>Opera Mobile</th> - <th>Safari Mobile</th> - </tr> - <tr> - <td>Basic support</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - </tr> - </tbody> -</table> -</div> +<p>{{Compat("api.MouseEvent.shiftKey")}}</p> <h2 id="See_also" name="See_also">Смотрите также</h2> |