Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xaprb/story.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'static/js/story.js')
-rw-r--r--static/js/story.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/static/js/story.js b/static/js/story.js
index ff247f5..13582fc 100644
--- a/static/js/story.js
+++ b/static/js/story.js
@@ -42,10 +42,14 @@ $( function() {
// with a twitter permalink URL.
$( function() {
if ( $( "body.feature-tweetquote:not(.feature-notweetquote)" ).length ) {
- $("blockquote p:last-child a[href*='twitter.com']").each(function(i, e){
+ $("blockquote p:first-child a[href*='twitter.com']").each(function(i, e){
$(this.parentElement.parentElement).addClass("tweet sans-serif mw6");
- $(this).addClass("no-underline link dim");
- $(this).append(' <i class="fab fa-twitter fa-lg">');
+ $(this).addClass("no-underline link dim b dib v-top");
+ $(this).prepend('<i class="fl mr2 v-top fab fa-twitter-square fa-3x">');
+ var m = $(this).attr('href').match(/twitter.com\/([^\/]*)\//);
+ if (m.length > 1) {
+ $(this).append('<br><span class="normal gray">@' + m[1] + '</span>');
+ }
});
}
});