Skip to content

Commit

Permalink
Update jquery.popline.social.js
Browse files Browse the repository at this point in the history
  • Loading branch information
blyamur authored Jan 23, 2023
1 parent 04318c9 commit 5289d2e
Showing 1 changed file with 39 additions and 5 deletions.
44 changes: 39 additions & 5 deletions scripts/plugins/jquery.popline.social.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
jquery.popline.social.js 1.0.0
Version: 1.0.0
Updated: Sep 10th, 2014
Version: 1.0.1
Updated: Jan 23th, 2023
Mons (https://github.com/blyamur)
(c) 2014 by kenshin54
*/
;(function($) {
Expand Down Expand Up @@ -36,23 +36,57 @@
openWindow(url, true);
}
},
vkcom: {
iconClass: "fa fa-vk",
mode: "view",
action: function(event) {
var url = "https://www.vk.com/share.php";
params = [];
params.push("title=" + encodeURIComponent($.popline.utils.selection().text()));
params.push("url=" + encodeURIComponent(location.href));
openWindow(url + "?" + params.join("&"), true);
}
},
okru: {
iconClass: "fa fa-odnoklassniki",
mode: "view",
action: function(event) {
var url = "https://connect.ok.ru/offer";
params = [];
params.push("title=" + encodeURIComponent($.popline.utils.selection().text()));
params.push("url=" + encodeURIComponent(location.href));
openWindow(url + "?" + params.join("&"), true);
}
},
facebook: {
iconClass: "fa fa-facebook",
mode: "view",
action: function(event) {
var url = "http://www.facebook.com/sharer.php";
var url = "https://www.facebook.com/sharer.php";
params = [];
params.push("s=100");
params.push("p[summary]=" + encodeURIComponent($.popline.utils.selection().text()));
params.push("p[url]=" + encodeURIComponent(location.href));
openWindow(url + "?" + params.join("&"), true);
}
},
trileru: {
iconClass: "fa fa-compress",
mode: "view",
action: function(event) {
var url = "https://3le.ru/api/";
params = [];
params.push("social=" + encodeURIComponent('3LE'));
params.push("apik=" + encodeURIComponent('3LE'));
params.push("url=" + encodeURIComponent(location.href));
openWindow(url + "?" + params.join("&"), true);
}
},
pinterest: {
iconClass: "fa fa-pinterest",
mode: "view",
action: function(event) {
var url = "http://pinterest.com/pin/create/button/";
var url = "https://pinterest.com/pin/create/button/";
var range = $.popline.utils.selection().range();
var fragment = null;
if ($.popline.utils.browser.ieLtIE9()) {
Expand Down

0 comments on commit 5289d2e

Please sign in to comment.