File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ Simple social buttons for your site.
13
13
* Pocket
14
14
* Reddit
15
15
* Evernote
16
+ * LinkedIn
16
17
* EMail
17
18
18
19
## Browser support
Original file line number Diff line number Diff line change 35
35
< a class ="btn-pocket " data-id ="pk "> < i class ="fab fa-get-pocket "> </ i > Pocket</ a >
36
36
< a class ="btn-reddit " data-id ="re "> < i class ="fab fa-reddit "> </ i > Reddit</ a >
37
37
< a class ="btn-evernote " data-id ="ev "> < i class ="far fa-sticky-note "> </ i > Evernote</ a >
38
+ < a class ="btn-linkedin " data-id ="in "> < i class ="fab fa-linkedin "> </ i > LinkedIn</ a >
38
39
< a class ="btn-mail " data-id ="mail "> < i class ="fas fa-at "> </ i > EMail</ a >
39
40
</ div >
40
41
Original file line number Diff line number Diff line change 17
17
POCKET_LINK_FORMAT = 'https://getpocket.com/edit?url={0}&title={1}' ,
18
18
RE_LINK_FORMAT = 'https://reddit.com/submit/?url={0}' ,
19
19
EV_LINK_FORMAT = 'https://www.evernote.com/clip.action?url={0}&t={1}' ,
20
+ IN_LINK_FORMAT = 'https://www.linkedin.com/shareArticle?mini=true&url={0}&title={1}&summary={2}&source={0}' ,
20
21
MAIL_LINK_FORMAT = 'mailto:?Subject={0}{1}&body={2}{3}' ,
21
22
FB_CLASS_NAME = 'fb' ,
22
23
VK_CLASS_NAME = 'vk' ,
25
26
PK_CLASS_NAME = 'pk' ,
26
27
RE_CLASS_NAME = 're' ,
27
28
EV_CLASS_NAME = 'ev' ,
29
+ IN_CLASS_NAME = 'in' ,
28
30
MAIL_CLASS_NAME = 'mail' ,
29
31
30
32
// from https://wcoder.github.io/notes/string-format-for-string-formating-in-javascript
181
183
titleDef ) ;
182
184
break ;
183
185
186
+ case IN_CLASS_NAME :
187
+ this . popupCenter (
188
+ stringFormat ( IN_LINK_FORMAT , [
189
+ url ,
190
+ title ,
191
+ mergeForTitle ( [ title , desc ] )
192
+ ] ) ,
193
+ titleDef ) ;
194
+ break ;
195
+
184
196
case MAIL_CLASS_NAME :
185
197
if ( title . length > 0 && desc . length > 0 ) {
186
198
text = mergeForTitle ( [ title , desc ] ) ;
You can’t perform that action at this time.
0 commit comments