diff --git a/views/decrypt.templ b/views/decrypt.templ index 21d3046..95f8419 100644 --- a/views/decrypt.templ +++ b/views/decrypt.templ @@ -15,7 +15,7 @@ templ Decrypt(text string) {
{text}
- +
diff --git a/views/decrypt_templ.go b/views/decrypt_templ.go index 1787959..af5dbf6 100644 --- a/views/decrypt_templ.go +++ b/views/decrypt_templ.go @@ -42,7 +42,7 @@ func Decrypt(text string) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/views/paste.templ b/views/paste.templ index 1ab6e1d..d369aec 100644 --- a/views/paste.templ +++ b/views/paste.templ @@ -14,7 +14,7 @@ templ PasteSuccess(url string) {
{url}
- + View Paste
diff --git a/views/paste_templ.go b/views/paste_templ.go index 084e902..e400eca 100644 --- a/views/paste_templ.go +++ b/views/paste_templ.go @@ -42,7 +42,7 @@ func PasteSuccess(url string) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
\n function copyText(event, selector) {\n var pastedContent = document.querySelector(selector);\n\n // Create a range and select the text\n var range = document.createRange();\n range.selectNode(pastedContent);\n window.getSelection().removeAllRanges();\n window.getSelection().addRange(range);\n\n // Copy the selected text\n if (navigator.clipboard) {\n navigator.clipboard.writeText(pastedContent.innerText).then(function() {\n event.dataset.tooltip = 'Copied!';\n event.innerText = 'Copied!';\n setTimeout(function() {\n event.innerText = 'Copy content';\n event.dataset.tooltip = 'Click to copy';\n event.blur();\n }, 1000);\n });\n }\n }\n ") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err }