Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sailplay-hub-actions

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sailplay-hub-actions - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc