remotes/1693045480750635534/spooky-22
Aevann1 2022-01-22 00:48:06 +02:00
parent cb2fc90770
commit 72e2af12e0
5 changed files with 8 additions and 8 deletions

View File

@ -16,8 +16,8 @@
{% if success %}
<script>
history.pushState(null, null, '{{p.permalink | full_link}}');
window.localStorage.setItem("post_title", "")
window.localStorage.setItem("post_text", "")
localStorage.setItem("post_title", "")
localStorage.setItem("post_text", "")
</script>
{% endif %}
@ -878,7 +878,7 @@
const comments = JSON.parse(localStorage.getItem("comment-counts")) || {}
const newTotal = {{p.comment_count}} || ((comments['{{p.id}}'] || {c: 0}).c + 1)
comments['{{p.id}}'] = {c: newTotal, t: Date.now()}
window.localStorage.setItem("comment-counts", JSON.stringify(comments))
localStorage.setItem("comment-counts", JSON.stringify(comments))
{% endif %}
})()
</script>

View File

@ -195,9 +195,9 @@
{% endblock %}
<script>
let fetched_title = window.localStorage.getItem("post_title")
let fetched_title = localStorage.getItem("post_title")
document.getElementById('post-title').value = fetched_title
let fetched_text = window.localStorage.getItem("post_text")
let fetched_text = localStorage.getItem("post_text")
document.getElementById('post-text').value = fetched_text
function checkForRequired() {

View File

@ -698,7 +698,7 @@
<div id="username" class="d-none">{{u.username}}</div>
{% endif %}
<script src="/static/assets/js/userpage.js?a=205"></script>
<script src="/static/assets/js/userpage.js?a=206"></script>
{% endblock %}

View File

@ -114,5 +114,5 @@
<div id="username" class="d-none">{{u.username}}</div>
{% endif %}
<script src="/static/assets/js/userpage.js?a=205"></script>
<script src="/static/assets/js/userpage.js?a=206"></script>
{% endblock %}

View File

@ -48,5 +48,5 @@
<div id="username" class="d-none">{{u.username}}</div>
{% endif %}
<script src="/static/assets/js/userpage.js?a=205"></script>
<script src="/static/assets/js/userpage.js?a=206"></script>
{% endblock %}