Add callout fold/unfold
This commit is contained in:
Alan Grainger 2023-09-29 23:55:11 +02:00
commit d5eeefdce0
5 changed files with 10 additions and 3 deletions

2
.gitignore vendored
View file

@ -20,3 +20,5 @@ data.json
# Exclude macOS Finder (System Explorer) View States
.DS_Store
test

View file

@ -1,7 +1,7 @@
{
"id": "share-note",
"name": "Share Note",
"version": "0.3.19",
"version": "0.3.20",
"minAppVersion": "0.15.0",
"description": "Share a note publicly with full styling. Data is shared encrypted by default and only you have the key.",
"author": "Alan Grainger",

View file

@ -1,6 +1,6 @@
{
"name": "share-note",
"version": "0.3.19",
"version": "0.3.20",
"description": "Share a note publicly with full styling. Data is stored encrypted on the server and only you have the key.",
"main": "main.js",
"scripts": {

View file

@ -30,6 +30,7 @@ const html = `
position: fixed !important;
}
</style>
<script src="https://file.obsidianshare.com/assets/app.js"></script>
</head>
<body>
<div class="app-container">
@ -117,11 +118,14 @@ const html = `
const contentEl = document.getElementById('template-user-data')
if (contentEl) contentEl.outerHTML = data.content
document.title = data.basename
initDocument()
})
.catch(() => {
const contentEl = document.getElementById('template-user-data')
if (contentEl) contentEl.innerHTML = 'Unable to decrypt using this key.'
})
} else {
initDocument()
}
</script>
</body>

View file

@ -39,5 +39,6 @@
"0.3.16": "0.15.0",
"0.3.17": "0.15.0",
"0.3.18": "0.15.0",
"0.3.19": "0.15.0"
"0.3.19": "0.15.0",
"0.3.20": "0.15.0"
}