remotes/1693045480750635534/spooky-22
Aevann1 2022-01-19 12:12:37 +02:00
parent 16823faeb5
commit 31324dad83
3 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
{% if comment_info and not request.full_path.endswith('#context') %}
<script data-cfasync="false">
<script>
history.pushState(null, null, '#context');
</script>
{% endif %}

View File

@ -14,7 +14,7 @@
{% block title %}
{% if success %}
<script data-cfasync="false">
<script>
history.pushState(null, null, '{{p.permalink | full_link}}');
window.localStorage.setItem("post_title", "")
window.localStorage.setItem("post_text", "")

View File

@ -194,7 +194,7 @@
</div>
{% endblock %}
<script data-cfasync="false">
<script>
let fetched_title = window.localStorage.getItem("post_title")
document.getElementById('post-title').value = fetched_title
let fetched_text = window.localStorage.getItem("post_text")