From 2bda0436c7884db626bf788b9c60b5e94f2f7ad3 Mon Sep 17 00:00:00 2001 From: Michael Yuan Date: Sat, 28 Sep 2024 22:17:07 +0000 Subject: [PATCH] Add title to share Signed-off-by: Michael Yuan --- sample.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sample.html b/sample.html index 0bfd2ed..3846633 100644 --- a/sample.html +++ b/sample.html @@ -44,6 +44,7 @@ console.log(data); if (data['status']) { document.title = data["subject"]; + document.getElementById('share-btn').setAttribute('data-title', data["subject"]); document.getElementById("subject").innerHTML = data["subject"]; document.getElementById("body").innerHTML = "" + data["question"] + "
" + marked.parse(data["body"]); } else { @@ -65,7 +66,7 @@

Please wait ...

-