diff --git a/templates/head.html b/templates/head.html
index dbf5747..d414c17 100644
--- a/templates/head.html
+++ b/templates/head.html
@@ -48,10 +48,7 @@
{{end}}
-
+
{{end}}
{{ if eq .type "address" }}
diff --git a/templates/note.html b/templates/note.html
index 60e9bba..892a938 100644
--- a/templates/note.html
+++ b/templates/note.html
@@ -29,7 +29,8 @@
{{ if .parentNevent }}
- In reply to {{ printf "%s%s" "nostr:" .parentNevent | escapeString | basicFormatting }}
+ In reply to {{ printf "%s%s" "nostr:" .parentNevent | escapeString |
+ basicFormatting }}
{{ end }}
@@ -38,12 +39,9 @@
{{ if (not (eq .subject ""))}}
{{.subject | escapeString}}
- {{ end }}
- {{ if (or (eq .kindID 30023) (eq .kindID 30024))}}
- {{.content | mdToHTML | sanitizeXSS }}
- {{ else }}
- {{.content | escapeString | basicFormatting }}
- {{ end }}
+ {{ end }} {{ if (or (eq .kindID 30023) (eq .kindID 30024))}}
+ {{.content | mdToHTML | sanitizeXSS }} {{ else }} {{.content |
+ escapeString | basicFormatting }} {{ end }}
diff --git a/templates/other.html b/templates/other.html
index af63bd8..0c61d99 100644
--- a/templates/other.html
+++ b/templates/other.html
@@ -10,11 +10,9 @@
-
-
- {{.kindDescription | escapeString}}
-
-
+
+
{{.kindDescription | escapeString}}
+
@@ -28,7 +26,6 @@
-
diff --git a/templates/profile.html b/templates/profile.html
index f81aaea..067ab28 100644
--- a/templates/profile.html
+++ b/templates/profile.html
@@ -39,7 +39,9 @@
>{{.metadata.Website | escapeString}}
- {{.metadata.About | escapeString | basicFormatting}}
+
+ {{.metadata.About | escapeString | basicFormatting}}
+
Public key
@@ -58,23 +60,19 @@
Last update:
{{.createdAt | escapeString}}
-
+
@@ -93,7 +91,6 @@
{{template "details.html" .}}
-
{{template "column_clients.html" .}}
diff --git a/templates/scripts.js b/templates/scripts.js
index 4bf117b..6ab1ac9 100644
--- a/templates/scripts.js
+++ b/templates/scripts.js
@@ -97,17 +97,20 @@ function syntaxHighlight(json) {
)
}
-document.addEventListener('DOMContentLoaded', function() {
- var contentDivs = document.getElementsByClassName('content');
+document.addEventListener('DOMContentLoaded', function () {
+ var contentDivs = document.getElementsByClassName('content')
for (var i = 0; i < contentDivs.length; i++) {
- var contentDiv = contentDivs[i];
+ var contentDiv = contentDivs[i]
if (contentDiv.offsetHeight == 160) {
- contentDiv.classList.add('gradient');
+ contentDiv.classList.add('gradient')
}
}
-});
+})
// Needed to apply proper print styles
-if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1) {
- document.body.classList.add('safari');
-}
\ No newline at end of file
+if (
+ navigator.userAgent.indexOf('Safari') != -1 &&
+ navigator.userAgent.indexOf('Chrome') == -1
+) {
+ document.body.classList.add('safari')
+}
diff --git a/templates/top.html b/templates/top.html
index b0edaeb..8aecb39 100644
--- a/templates/top.html
+++ b/templates/top.html
@@ -71,14 +71,14 @@
// document.documentElement.classList.add('theme--dark');
// }
- window.addEventListener('beforeprint', function() {
+ window.addEventListener('beforeprint', function () {
const htmlElement = document.documentElement
htmlElement.classList.remove('theme--dark')
htmlElement.classList.add('theme--default')
- });
- window.addEventListener('afterprint', function() {
+ })
+ window.addEventListener('afterprint', function () {
const htmlElement = document.documentElement
htmlElement.classList.toggle('theme--dark', isDarkMode)
htmlElement.classList.toggle('theme--default', !isDarkMode)
- });
+ })