bb
This commit is contained in:
parent
ee88d7e36d
commit
8a5addb17c
2 changed files with 16 additions and 6 deletions
|
@ -76,3 +76,10 @@ document.getElementById('file-upload').addEventListener('change', function(){
|
|||
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)
|
||||
}
|
|
@ -194,13 +194,16 @@
|
|||
</div>
|
||||
{% endblock %}
|
||||
|
||||
<script data-cfasync="false">
|
||||
let fetched_title = window.localStorage.getItem("post_title")
|
||||
document.getElementById('post-title').value = fetched_title
|
||||
let fetched_text = window.localStorage.getItem("post_text")
|
||||
document.getElementById('post-text').value = fetched_text
|
||||
</script>
|
||||
|
||||
<script src="/static/assets/js/marked.js?a=3"></script>
|
||||
<script src="/static/assets/js/formatting.js?a=3"></script>
|
||||
<script src="/static/assets/js/submit.js?a=3"></script>
|
||||
<script>
|
||||
function savetext() {
|
||||
}
|
||||
</script>
|
||||
<script src="/static/assets/js/submit.js?a=4"></script>
|
||||
{% include "emoji_modal.html" %}
|
||||
{% include "gif_modal.html" %}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue