Skip to content

Commit

Permalink
Add threads and blusky sharing links
Browse files Browse the repository at this point in the history
  • Loading branch information
cemacrr committed Nov 29, 2024
1 parent c8f529b commit 57cca24
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
Binary file added img/stripes/bsky_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/stripes/threads_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 8 additions & 1 deletion js/stripes.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,17 @@ function update_location() {
wa_share.href = 'https://wa.me/?text=' +
encodeURIComponent(meta_desc_val) +
': ' + encodeURIComponent(meta_url_val);
var bsky_share = document.getElementById('bsky_share');
bsky_share.href = 'https://bsky.app/intent/compose?text=' +
encodeURIComponent(meta_desc_val) +
'&url=' + encodeURIComponent(meta_url_val);
var threads_share = document.getElementById('threads_share');
threads_share.href = 'https://www.threads.net/intent/post?text=' +
encodeURIComponent(meta_desc_val) +
'&url=' + encodeURIComponent(meta_url_val);
var li_share = document.getElementById('li_share');
li_share.href = 'https://www.linkedin.com/sharing/share-offsite/?url=' +
encodeURIComponent(meta_url_val);

var mail_share = document.getElementById('mail_share');
mail_share.href = 'mailto:?subject=' +
encodeURIComponent(meta_desc_val) +
Expand Down
8 changes: 8 additions & 0 deletions stripes/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,14 @@ <h3>Share</h3>
title="Share via WhatsApp"
href="https://wa.me/?text=Air Quality Stripes https%3A%2F%2Fairqualitystripes.info%2Fstripes%2F"
target="_new"><img class="share_logo" src="../img/stripes/wa_logo.png"></a>
<a id="bsky_share"
title="Share via Bluesky"
href="https://bsky.app/intent/compose?text=Air Quality Stripes&url=https%3A%2F%2Fairqualitystripes.info%2Fstripes%2F"
target="_new"><img class="share_logo" src="../img/stripes/bsky_logo.png"></a>
<a id="threads_share"
title="Share via Threads"
href="https://www.threads.net/intent/post?text=Air Quality Stripes&url=https%3A%2F%2Fairqualitystripes.info%2Fstripes%2F"
target="_new"><img class="share_logo" src="../img/stripes/threads_logo.png"></a>
<a id="li_share"
title="Share via LinkedIn"
href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fairqualitystripes.info%2Fstripes%2F"
Expand Down

0 comments on commit 57cca24

Please sign in to comment.