sailplay-hub-actions
Advanced tools
Comparing version 1.0.8 to 1.0.9
{ | ||
"name": "sailplay-hub-actions", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "SailPlay Widgets Actions plugin", | ||
@@ -5,0 +5,0 @@ "main": "sailplay.hub.actions.js", |
@@ -124,2 +124,6 @@ # SAILPLAY.HUB.ACTIONS | ||
//все необходимые данные, включая тексты шарингов, настройки айди групп и приложения находятся внутри data | ||
//тут любой ваш код для шаринга с необходимым действием: data.actions[n] | ||
SAILPLAY.send('actions.perform', data.actions[0]); //регистрируем выполнение первого действия из списка, полученного с сервера SailPlay | ||
@@ -126,0 +130,0 @@ |
@@ -191,28 +191,2 @@ (function () { | ||
// SOCIAL GOOGLE PLUS CHANGE HEIGHT | ||
sp.on('actions.social.gp.like.mouseenter', function(){ | ||
var elms = document.querySelectorAll('iframe[iframe-action-gp-like], iframe.gp.like'); | ||
var originWidth, | ||
w, | ||
h = 500; | ||
for(var i = 0, len = elms.length; i < len; i++){ | ||
elms[i].removeAttribute("style"); | ||
originWidth = elms[i].parentNode. offsetWidth; | ||
w = +originWidth + 70; | ||
elms[i].style.cssText = 'width: ' + w + 'px !important;height: ' + h + 'px !important;margin-left: -35px !important;z-index: 10 !important;'; | ||
elms[i].parentNode.style.setProperty ("overflow", "visible", "important"); | ||
} | ||
}); | ||
sp.on('actions.social.gp.like.mouseleave', function(){ | ||
var elms = document.querySelectorAll('iframe[iframe-action-gp-like], iframe.gp.like'); | ||
var w = 150, | ||
h = 27; | ||
for(var i = 0, len = elms.length; i < len; i++){ | ||
elms[i].removeAttribute("style"); | ||
elms[i].style.cssText = 'width: ' + w + 'px !important;height: ' + h + 'px !important;margin-left: auto !important;'; | ||
elms[i].parentNode.style.setProperty ("overflow", "hidden", "important"); | ||
} | ||
}); | ||
var Actions = {}; | ||
@@ -219,0 +193,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
138
15811
264
1