Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xing share support #77

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/css/social-share-kit.css

Large diffs are not rendered by default.

Binary file modified dist/fonts/social-share-kit.eot
Binary file not shown.
1 change: 1 addition & 0 deletions dist/fonts/social-share-kit.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/fonts/social-share-kit.ttf
Binary file not shown.
Binary file modified dist/fonts/social-share-kit.woff
Binary file not shown.
5 changes: 4 additions & 1 deletion dist/js/social-share-kit.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* ---
*/
var SocialShareKit = (function () {
var supportsShare = /(twitter|facebook|google-plus|pinterest|tumblr|vk|linkedin|buffer|email)/,
var supportsShare = /(twitter|facebook|google-plus|pinterest|tumblr|vk|linkedin|buffer|email|xing)/,
sep = '*|*', wrap, _wrap;

// Wrapper to support multiple instances per page by selector
Expand Down Expand Up @@ -255,6 +255,9 @@ var SocialShareKit = (function () {
'&title=' + encodeURIComponent(title) +
'&summary=' + encodeURIComponent(text);
break;
case 'xing':
url = 'https://www.xing.com/spi/shares/new?url=' + paramsObj.shareUrlEncoded();
break;
case 'vk':
url = 'https://vkontakte.ru/share.php?url=' + paramsObj.shareUrlEncoded();
break;
Expand Down
2 changes: 1 addition & 1 deletion dist/js/social-share-kit.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,9 @@ <h3 class="page-header">Share icons</h3>
<a href="" class="ssk ssk-google-plus"></a>
<a href="" class="ssk ssk-pinterest"></a>
<a href="" class="ssk ssk-tumblr"></a>
<a href="" class="ssk ssk-linkedin"></a>
<a href="" class="ssk ssk-vk"></a>
<a href="" class="ssk ssk-linkedin"></a>
<a href="" class="ssk ssk-xing"></a>
<a href="" class="ssk ssk-email"></a>
</div>
<div class="ssk-group ssk-sm">
Expand All @@ -154,6 +155,7 @@ <h3 class="page-header">Share icons</h3>
<a href="" class="ssk ssk-tumblr"></a>
<a href="" class="ssk ssk-vk"></a>
<a href="" class="ssk ssk-linkedin"></a>
<a href="" class="ssk ssk-xing"></a>
<a href="" class="ssk ssk-email"></a>
</div>
<div class="ssk-group">
Expand All @@ -164,6 +166,7 @@ <h3 class="page-header">Share icons</h3>
<a href="" class="ssk ssk-tumblr"></a>
<a href="" class="ssk ssk-vk"></a>
<a href="" class="ssk ssk-linkedin"></a>
<a href="" class="ssk ssk-xing"></a>
<a href="" class="ssk ssk-email"></a>
</div>
<div class="ssk-group ssk-lg">
Expand All @@ -174,6 +177,7 @@ <h3 class="page-header">Share icons</h3>
<a href="" class="ssk ssk-tumblr"></a>
<a href="" class="ssk ssk-vk"></a>
<a href="" class="ssk ssk-linkedin"></a>
<a href="" class="ssk ssk-xing"></a>
<a href="" class="ssk ssk-email"></a>
</div>
</div>
Expand Down Expand Up @@ -213,6 +217,7 @@ <h3 class="page-header">Icons only</h3>
<a href="" class="ssk ssk-icon ssk-tumblr"></a>
<a href="" class="ssk ssk-icon ssk-vk"></a>
<a href="" class="ssk ssk-icon ssk-linkedin"></a>
<a href="" class="ssk ssk-icon ssk-xing"></a>
<a href="" class="ssk ssk-icon ssk-email"></a>
</div>
<div class="ssk-sm">
Expand All @@ -223,6 +228,7 @@ <h3 class="page-header">Icons only</h3>
<a href="" class="ssk ssk-icon ssk-tumblr"></a>
<a href="" class="ssk ssk-icon ssk-vk"></a>
<a href="" class="ssk ssk-icon ssk-linkedin"></a>
<a href="" class="ssk ssk-icon ssk-xing"></a>
<a href="" class="ssk ssk-icon ssk-email"></a>
</div>
<div>
Expand All @@ -233,6 +239,7 @@ <h3 class="page-header">Icons only</h3>
<a href="" class="ssk ssk-icon ssk-tumblr"></a>
<a href="" class="ssk ssk-icon ssk-vk"></a>
<a href="" class="ssk ssk-icon ssk-linkedin"></a>
<a href="" class="ssk ssk-icon ssk-xing"></a>
<a href="" class="ssk ssk-icon ssk-email"></a>
</div>
<div class="ssk-lg">
Expand All @@ -243,6 +250,7 @@ <h3 class="page-header">Icons only</h3>
<a href="" class="ssk ssk-icon ssk-tumblr"></a>
<a href="" class="ssk ssk-icon ssk-vk"></a>
<a href="" class="ssk ssk-icon ssk-linkedin"></a>
<a href="" class="ssk ssk-icon ssk-xing"></a>
<a href="" class="ssk ssk-icon ssk-email"></a>
</div>
</div>
Expand Down
3 changes: 3 additions & 0 deletions less/fonts.less
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@
.ssk-link:before {
content: "w";
}
.ssk-xing:before {
content: "{";
}
.ssk-buffer:before {
content: "\79";
transform: scale(.85);
Expand Down
1 change: 1 addition & 0 deletions less/icons.less
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@
.make-ssk-icon('reddit');
.make-ssk-icon('reddit2');
.make-ssk-icon('buffer');
.make-ssk-icon('xing');

// Extra colors
.make-ssk-color('turquoise');
Expand Down
Loading