| @@ -15,19 +15,8 @@ | ||
| 15 | 15 | var bindShareClick = function( networkName ) { |
| 16 | 16 | $element.on( 'click', function() { |
| 17 | 17 | openShareLink( networkName ); |
| 18 | 18 | } ); |
| 19 | - | |
| 20 | - // Add "Enter" and "Space" event only if the element has role=button attribute. | |
| 21 | - if ( 'button' === $element.attr( 'role' ) ) { | |
| 22 | - $element.on( 'keyup', ( event ) => { | |
| 23 | - if ( 13 === event.keyCode || 32 === event.keyCode ) { | |
| 24 | - event.preventDefault(); | |
| 25 | - | |
| 26 | - openShareLink( networkName ); | |
| 27 | - } | |
| 28 | - } ); | |
| 29 | - } | |
| 30 | 19 | }; |
| 31 | 20 | |
| 32 | 21 | var openShareLink = function( networkName ) { |
| 33 | 22 | var shareWindowParams = ''; |
| @@ -84,12 +73,10 @@ | ||
| 84 | 73 | }; |
| 85 | 74 | |
| 86 | 75 | ShareLink.networkTemplates = { |
| 87 | 76 | twitter: 'https://twitter.com/intent/tweet?text={text}\x20{url}', |
| 88 | - 'x-twitter': 'https://x.com/intent/tweet?text={text}\x20{url}', | |
| 89 | 77 | pinterest: 'https://www.pinterest.com/pin/create/button/?url={url}&media={image}', |
| 90 | 78 | facebook: 'https://www.facebook.com/sharer.php?u={url}', |
| 91 | - threads: 'https://threads.net/intent/post?text={text}\x20{url}', | |
| 92 | 79 | vk: 'https://vkontakte.ru/share.php?url={url}&title={title}&description={text}&image={image}', |
| 93 | 80 | linkedin: 'https://www.linkedin.com/shareArticle?mini=true&url={url}&title={title}&summary={text}&source={url}', |
| 94 | 81 | odnoklassniki: 'https://connect.ok.ru/offer?url={url}&title={title}&imageUrl={image}', |
| 95 | 82 | tumblr: 'https://tumblr.com/share/link?url={url}', |
| @@ -98,11 +85,11 @@ | ||
| 98 | 85 | reddit: 'https://reddit.com/submit?url={url}&title={title}', |
| 99 | 86 | stumbleupon: 'https://www.stumbleupon.com/submit?url={url}', |
| 100 | 87 | pocket: 'https://getpocket.com/edit?url={url}', |
| 101 | 88 | whatsapp: 'https://api.whatsapp.com/send?text=*{title}*%0A{text}%0A{url}', |
| 102 | - xing: 'https://www.xing.com/spi/shares/new?url={url}', | |
| 89 | + xing: 'https://www.xing.com/app/user?op=share&url={url}', | |
| 103 | 90 | print: 'javascript:print()', |
| 104 | - email: 'mailto:?subject={title}&body={text}%0A{url}', | |
| 91 | + email: 'mailto:?subject={title}&body={text}\n{url}', | |
| 105 | 92 | telegram: 'https://telegram.me/share/url?url={url}&text={text}', |
| 106 | 93 | skype: 'https://web.skype.com/share?url={url}', |
| 107 | 94 | }; |
| 108 | 95 | |