Skip to content

Commit

Permalink
Release: v1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tabalinas committed Oct 10, 2016
1 parent 3f08b62 commit 0ea13a4
Show file tree
Hide file tree
Showing 8 changed files with 123 additions and 16 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jssocials",
"version": "1.3.1",
"version": "1.4.0",
"main": [
"dist/jssocials.js",
"dist/jssocials.css",
Expand Down
24 changes: 24 additions & 0 deletions dist/jssocials-theme-classic.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,30 @@
.jssocials-share-line .jssocials-share-link:hover {
background: #1a7c00; }

.jssocials-share-viber .jssocials-share-link {
background: #7b519d;
border: 1px solid #6e488c; }
.jssocials-share-viber .jssocials-share-link:hover {
background: #61407b; }

.jssocials-share-pocket .jssocials-share-link {
background: #ef4056;
border: 1px solid #ed2841; }
.jssocials-share-pocket .jssocials-share-link:hover {
background: #e9132e; }

.jssocials-share-messenger .jssocials-share-link {
background: #0084ff;
border: 1px solid #0077e6; }
.jssocials-share-messenger .jssocials-share-link:hover {
background: #006acc; }

.jssocials-share-vkontakte .jssocials-share-link {
background: #45668e;
border: 1px solid #3d5a7d; }
.jssocials-share-vkontakte .jssocials-share-link:hover {
background: #344d6c; }

.jssocials-share-link {
padding: .5em .6em;
border-radius: 0.3em;
Expand Down
20 changes: 20 additions & 0 deletions dist/jssocials-theme-flat.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,26 @@
.jssocials-share-line .jssocials-share-link:hover {
background: #1a7c00; }

.jssocials-share-viber .jssocials-share-link {
background: #7b519d; }
.jssocials-share-viber .jssocials-share-link:hover {
background: #61407b; }

.jssocials-share-pocket .jssocials-share-link {
background: #ef4056; }
.jssocials-share-pocket .jssocials-share-link:hover {
background: #e9132e; }

.jssocials-share-messenger .jssocials-share-link {
background: #0084ff; }
.jssocials-share-messenger .jssocials-share-link:hover {
background: #006acc; }

.jssocials-share-vkontakte .jssocials-share-link {
background: #45668e; }
.jssocials-share-vkontakte .jssocials-share-link:hover {
background: #344d6c; }

.jssocials-share-link {
padding: .5em .6em;
color: #fff;
Expand Down
36 changes: 36 additions & 0 deletions dist/jssocials-theme-minima.css
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,42 @@
.jssocials-share-line .jssocials-share-link:hover .jssocials-share-label, .jssocials-share-line .jssocials-share-link:focus .jssocials-share-label, .jssocials-share-line .jssocials-share-link:active .jssocials-share-label {
color: #1a7c00; }

.jssocials-share-viber .jssocials-share-link {
color: #7b519d; }
.jssocials-share-viber .jssocials-share-link .jssocials-share-label {
color: #7b519d; }
.jssocials-share-viber .jssocials-share-link:hover, .jssocials-share-viber .jssocials-share-link:focus, .jssocials-share-viber .jssocials-share-link:active {
color: #61407b; }
.jssocials-share-viber .jssocials-share-link:hover .jssocials-share-label, .jssocials-share-viber .jssocials-share-link:focus .jssocials-share-label, .jssocials-share-viber .jssocials-share-link:active .jssocials-share-label {
color: #61407b; }

.jssocials-share-pocket .jssocials-share-link {
color: #ef4056; }
.jssocials-share-pocket .jssocials-share-link .jssocials-share-label {
color: #ef4056; }
.jssocials-share-pocket .jssocials-share-link:hover, .jssocials-share-pocket .jssocials-share-link:focus, .jssocials-share-pocket .jssocials-share-link:active {
color: #e9132e; }
.jssocials-share-pocket .jssocials-share-link:hover .jssocials-share-label, .jssocials-share-pocket .jssocials-share-link:focus .jssocials-share-label, .jssocials-share-pocket .jssocials-share-link:active .jssocials-share-label {
color: #e9132e; }

.jssocials-share-messenger .jssocials-share-link {
color: #0084ff; }
.jssocials-share-messenger .jssocials-share-link .jssocials-share-label {
color: #0084ff; }
.jssocials-share-messenger .jssocials-share-link:hover, .jssocials-share-messenger .jssocials-share-link:focus, .jssocials-share-messenger .jssocials-share-link:active {
color: #006acc; }
.jssocials-share-messenger .jssocials-share-link:hover .jssocials-share-label, .jssocials-share-messenger .jssocials-share-link:focus .jssocials-share-label, .jssocials-share-messenger .jssocials-share-link:active .jssocials-share-label {
color: #006acc; }

.jssocials-share-vkontakte .jssocials-share-link {
color: #45668e; }
.jssocials-share-vkontakte .jssocials-share-link .jssocials-share-label {
color: #45668e; }
.jssocials-share-vkontakte .jssocials-share-link:hover, .jssocials-share-vkontakte .jssocials-share-link:focus, .jssocials-share-vkontakte .jssocials-share-link:active {
color: #344d6c; }
.jssocials-share-vkontakte .jssocials-share-link:hover .jssocials-share-label, .jssocials-share-vkontakte .jssocials-share-link:focus .jssocials-share-label, .jssocials-share-vkontakte .jssocials-share-link:active .jssocials-share-label {
color: #344d6c; }

.jssocials-share-link {
-webkit-transition: color 200ms ease-in-out;
transition: color 200ms ease-in-out; }
Expand Down
5 changes: 1 addition & 4 deletions dist/jssocials.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
.jssocials-share {
display: inline-block;
vertical-align: top;
margin: 0.3em; }

.jssocials-share:first-child {
margin-left: 0; }
margin: 0.3em 0.6em 0.3em 0; }

.jssocials-share:last-child {
margin-right: 0; }
Expand Down
44 changes: 37 additions & 7 deletions dist/jssocials.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! jssocials - v1.3.1 - 2016-08-20
/*! jssocials - v1.4.0 - 2016-10-10
* http://js-socials.com
* Copyright (c) 2016 Artem Tabalin; Licensed MIT */
(function(window, $, undefined) {
Expand All @@ -13,7 +13,7 @@
return value;
};

var IMG_SRC_REGEX = /(\.(jpeg|png|gif|bmp|svg\+xml)$|^data:image\/(jpeg|png|gif|bmp|svg\+xml);base64)/i;
var IMG_SRC_REGEX = /(\.(jpeg|png|gif|bmp|svg)$|^data:image\/(jpeg|png|gif|bmp|svg\+xml);base64)/i;
var URL_PARAMS_REGEX = /(&?[a-zA-Z0-9]+=)?\{([a-zA-Z0-9]+)\}/g;

var MEASURES = {
Expand Down Expand Up @@ -449,20 +449,27 @@
label: "Like",
logo: "fa fa-facebook",
shareUrl: "https://facebook.com/sharer/sharer.php?u={url}",
countUrl: "http://graph.facebook.com/?id={url}",
countUrl: "https://graph.facebook.com/?id={url}",
getCount: function(data) {
return data.share && data.share.share_count || 0;
}
},

vkontakte: {
label: "Like",
logo: "fa fa-vk",
shareUrl: "https://vk.com/share.php?url={url}&title={title}&description={text}",
countUrl: "https://vk.com/share.php?act=count&index=1&url={url}",
getCount: function(data) {
return parseInt(data.slice(15, -2).split(', ')[1]);
}
},

googleplus: {
label: "+1",
logo: "fa fa-google",
shareUrl: "https://plus.google.com/share?url={url}",
countUrl: "https://cors-anywhere.herokuapp.com/https://plusone.google.com/_/+1/fastbutton?url={url}",
getCount: function(data) {
return parseFloat((data.match(/\{c: ([.0-9E]+)/) || [])[1]);
}
countUrl: ""
},

linkedin: {
Expand Down Expand Up @@ -516,6 +523,29 @@
logo: "fa fa-comment",
shareUrl: "http://line.me/R/msg/text/?{text} {url}",
countUrl: ""
},

viber: {
label: "Viber",
logo: "fa fa-volume-control-phone",
shareUrl: "viber://forward?text={url} {text}",
countUrl: "",
shareIn: "self"
},

pocket: {
label: "Pocket",
logo: "fa fa-get-pocket",
shareUrl: "https://getpocket.com/save?url={url}&title={title}",
countUrl: ""
},

messenger: {
label: "Share",
logo: "fa fa-commenting",
shareUrl: "fb-messenger://share?link={url}",
countUrl: "",
shareIn: "self"
}

});
Expand Down
4 changes: 2 additions & 2 deletions dist/jssocials.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jssocials",
"version": "1.3.1",
"version": "1.4.0",
"main": "dist/jssocials.js",
"description": "jsSocials - jQuery Social Network Sharing Plugin",
"homepage": "http://js-socials.com",
Expand All @@ -24,7 +24,7 @@
},
"license": "MIT",
"scripts": {
"test": "grunt"
"test": "grunt test"
},
"dependencies": {},
"devDependencies": {
Expand Down

0 comments on commit 0ea13a4

Please sign in to comment.