Skip to content

Commit d6f6847

Browse files
Merge pull request #301 from perepichai/translate
RU 06-data-storage/02-localstorage
2 parents 7b6580d + 826bbe2 commit d6f6847

File tree

3 files changed

+106
-105
lines changed

3 files changed

+106
-105
lines changed

6-data-storage/02-localstorage/1-form-autosave/solution.view/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!doctype html>
2-
<textarea style="width:200px; height: 60px;" id="area" placeholder="Write here"></textarea>
2+
<textarea style="width:200px; height: 60px;" id="area" placeholder="Напишите сообщение здесь"></textarea>
33
<br>
4-
<button onclick="localStorage.removeItem('area');area.value=''">Clear</button>
4+
<button onclick="localStorage.removeItem('area');area.value=''">Очистить</button>
55
<script>
66
area.value = localStorage.getItem('area');
77
area.oninput = () => {
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11

2-
# Autosave a form field
2+
# Автосохранение поля формы
33

4-
Create a `textarea` field that "autosaves" its value on every change.
4+
Создайте поле `textarea`, значение которого будет автоматически сохраняться при каждом его изменении.
55

6-
So, if the user occasionally closes the page, and opens it again, he'll find his unfinished input at place.
6+
Когда пользователь закроет страницу и потом откроет ее заново он должен увидеть последнее введенное значение.
77

8-
Like this:
8+
Вот пример:
99

1010
[iframe src="solution" height=120]

0 commit comments

Comments
 (0)