diff --git a/css/site.css b/css/site.css index 7419a5e..11e329a 100644 --- a/css/site.css +++ b/css/site.css @@ -261,6 +261,21 @@ body { } } +/** sharing links: **/ + +.content_plot_share { + margin-left: 1em; +} + +.content_plot_share_links { + margin-left: 5em; + margin-bottom: 1em; +} + +.share_logo { + width: 2em; +} + /** text: **/ .content_text_container { diff --git a/img/stripes/x_logo.png b/img/stripes/x_logo.png new file mode 100644 index 0000000..61d2c80 Binary files /dev/null and b/img/stripes/x_logo.png differ diff --git a/js/stripes.js b/js/stripes.js index a74b1b2..395747a 100644 --- a/js/stripes.js +++ b/js/stripes.js @@ -372,6 +372,11 @@ function update_location() { og_url.name = 'og:url'; og_url.content = meta_url_val; page_head.appendChild(og_url); + /* update sharing links: */ + var twit_share = document.getElementById('twit_share'); + twit_share.href = 'https://twitter.com/intent/tweet?text=' + + meta_desc_val + + '&url=' + encodeURIComponent(meta_url_val); }; /* function to load site data: */ diff --git a/stripes/index.html b/stripes/index.html index 4953860..aa49b13 100644 --- a/stripes/index.html +++ b/stripes/index.html @@ -155,6 +155,17 @@ class="content_plot_img flex_no_grow" src=""> + +