This repository was archived by the owner on Apr 30, 2020. It is now read-only.
Add localstorage cache #75
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
더 이상 '글 쓰다 날렸어요 엉엉~' 하는 피해자를 막기 위해 캐쉬 기능을 넣었습니다.
사용자가 작성 중일 때 localStorage에 저장, submit 하면 지움
만약에 submit 안 하고 창을 닫아서 남아 있게 되면, 사용자한테 알려줌
사용자는 apply 를 누르면 내용을 넣을 수 있다. (덮어쓰기)
기본적인 기능은 이러한데, 기타 잡다한 기능도 추가했습니다:
<textarea name="body">추가.infobox추가 및 CSS발로 짜서 코드가 좀 지저분하긴 한데, 이런 기능을 위한 토론의 장이 되었으면 합니다.