bb
This commit is contained in:
parent
ee88d7e36d
commit
8a5addb17c
2 changed files with 16 additions and 6 deletions
|
@ -75,4 +75,11 @@ document.getElementById('file-upload').addEventListener('change', function(){
|
|||
fileReader.addEventListener("load", function () {document.getElementById('image-preview').setAttribute('src', this.result);});
|
||||
checkForRequired();
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
function savetext() {
|
||||
let post_title = document.getElementById('post-title').value
|
||||
let post_text = document.getElementById('post-text').value
|
||||
window.localStorage.setItem("post_title", post_title)
|
||||
window.localStorage.setItem("post_text", post_text)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue