russian improvment translate (#37547)
This commit is contained in:
committed by
Gregory Gubarev
parent
14342ac3d4
commit
5dfb6b5de0
@ -13,7 +13,7 @@ localeTitle: Получите данные геолокации, чтобы на
|
||||
|
||||
## Instructions
|
||||
<section id='instructions'>
|
||||
Add the example code inside the <code>script</code> tags to check a user's current location and insert it into the HTML.
|
||||
Добавьте образец кода в тег <code>script</code> для проверки геолокации пользователя и вставки полученного значения в HTML.
|
||||
</section>
|
||||
|
||||
## Tests
|
||||
@ -21,13 +21,13 @@ Add the example code inside the <code>script</code> tags to check a user's curre
|
||||
|
||||
```yml
|
||||
tests:
|
||||
- text: Your code should use <code>navigator.geolocation</code> to access the user's current location.
|
||||
- text: Ваш код должен использовать <code>navigator.geolocation</code> для доступа к текущей локации user's.
|
||||
testString: assert(code.match(/navigator\.geolocation\.getCurrentPosition/g));
|
||||
- text: Your code should use <code>position.coords.latitude</code> to display the user's latitudinal location.
|
||||
- text: Ваш код должен использовать <code>position.coords.latitude</code> для отображения широты геолокации user's.
|
||||
testString: assert(code.match(/position\.coords\.latitude/g));
|
||||
- text: Your code should use <code>position.coords.longitude</code> to display the user's longitudinal location.
|
||||
- text: Ваш код должен использовать <code>position.coords.longitude</code> для отображения широты долготы user's.
|
||||
testString: assert(code.match(/position\.coords\.longitude/g));
|
||||
- text: You should display the user's position within the <code>data</code> div element.
|
||||
- text: Вы должны отобразить геолокацию user's с помощью div-элемента <code>data</code>.
|
||||
testString: assert(code.match(/document\.getElementById\(\s*?('|")data\1\s*?\)\.innerHTML/g));
|
||||
|
||||
```
|
||||
|
Reference in New Issue
Block a user