mirror of
https://github.com/FAUSheppy/flask-json-dream-website
synced 2025-12-06 16:21:35 +01:00
escape newlines
This commit is contained in:
@@ -76,11 +76,11 @@
|
|||||||
{% if PGP_KEY %}
|
{% if PGP_KEY %}
|
||||||
<script>
|
<script>
|
||||||
function copyPGP(){
|
function copyPGP(){
|
||||||
navigator.clipboard.writeText("{{ PGP_KEY }}")
|
navigator.clipboard.writeText("{{ PGP_KEY | replace('\n', '\\n') }}")
|
||||||
cur = document.getElementById("pgp").innerHTML
|
cur = document.getElementById("pgp").innerHTML
|
||||||
document.getElementById("pgp").innerHTML = "Kopiert!"
|
document.getElementById("pgp").innerHTML = "Kopiert!"
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
document.getElementById("pgp").innerHTML = "PGP Key" }, 2000);
|
document.getElementById("pgp").innerHTML = "PGP Key" }, 500);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
|
|||||||
Reference in New Issue
Block a user