2016-07-24 11:27:22 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>...</title>
|
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
textarea {
|
|
|
|
margin: 0;
|
|
|
|
background: #FFF7EC;
|
|
|
|
|
|
|
|
font-size: 24px;
|
|
|
|
font-family: Open Sans, sans-serif;
|
|
|
|
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
border: 0;
|
|
|
|
resize: none;
|
|
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
padding: 35px 50px;
|
|
|
|
|
|
|
|
color: #1f1f1f;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<textarea></textarea>
|
2016-07-24 12:05:32 +00:00
|
|
|
|
|
|
|
<script>
|
|
|
|
var txt = document.querySelector('textarea');
|
|
|
|
|
|
|
|
txt.value = localStorage.getItem('text') || '';
|
|
|
|
|
|
|
|
txt.addEventListener('keydown', function(e) {
|
|
|
|
localStorage.setItem('text', txt.value);
|
|
|
|
});
|
|
|
|
</script>
|
2016-07-24 11:27:22 +00:00
|
|
|
</html>
|