Permalink
Browse files

Release: v1.4.0

  • Loading branch information...
1 parent 3f08b62 commit 0ea13a483f9a9781b7339a875f5feacf7ae18b74 @tabalinas committed Oct 10, 2016
View
@@ -1,6 +1,6 @@
{
"name": "jssocials",
- "version": "1.3.1",
+ "version": "1.4.0",
"main": [
"dist/jssocials.js",
"dist/jssocials.css",
@@ -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;
@@ -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;
@@ -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; }
View
@@ -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; }
View
@@ -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) {
@@ -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 = {
@@ -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: {
@@ -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"
}
});
Oops, something went wrong.
View
@@ -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",
@@ -24,7 +24,7 @@
},
"license": "MIT",
"scripts": {
- "test": "grunt"
+ "test": "grunt test"
},
"dependencies": {},
"devDependencies": {

0 comments on commit 0ea13a4

Please sign in to comment.