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

@abtasty/scroll-tracking

Package Overview
Dependencies
Maintainers
20
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@abtasty/scroll-tracking - npm Package Compare versions

Comparing version 3.1.4-1 to 3.1.4-2

2

dist/main.js

@@ -1,1 +0,1 @@

!function(){"use strict";var e=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];e.unshift("[AB Tasty Widget] "+PACKAGE+":"),console.log.apply(console,e)},n=["fr","en","de","es"],t=DATA.engagementGoal,o=navigator.language.substr(0,2)||"en",c=function(e){return n.indexOf(e)>-1}(o)?o:"en";window.checkScrollGoals=function(){var n=100*(document.body.scrollTop||document.documentElement.scrollTop)/(Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)-window.innerHeight);t.forEach(function(o,l){var i=o.percentage;if(n>=i){var d=o.name[c]||o.name;t.splice(l,1),TEST_ID>0?(ABTastyEvent(d,null,TEST_ID),e('Engagement goal "'+d+'" sent to test '+TEST_ID+".")):e("Needs ID of the test.")}})},function(e,n){window.addEventListener(e,n)}("scroll",window.checkScrollGoals)}();
!function(){"use strict";var e=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];e.unshift("[AB Tasty Widget] "+PACKAGE+":"),console.log.apply(console,e)},n=["fr","en","de","es"],t=DATA.engagementGoal,o=(navigator.language||navigator.userLanguage).substr(0,2),c=function(e){return n.indexOf(e)>-1}(o)?o:"en";window.checkScrollGoals=function(){var n=100*(document.body.scrollTop||document.documentElement.scrollTop)/(Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)-window.innerHeight);t.forEach(function(o,l){var a=o.percentage;if(n>=a){var i=o.name[c]||o.name;t.splice(l,1),TEST_ID>0?(ABTastyEvent(i,null,TEST_ID),e('Engagement goal "'+i+'" sent to test '+TEST_ID+".")):e("Needs ID of the test.")}})},function(e,n){window.addEventListener(e,n)}("scroll",window.checkScrollGoals)}();
{
"name": "@abtasty/scroll-tracking",
"description": "AB Tasty Widget",
"version": "3.1.4-1",
"version": "3.1.4-2",
"icon": "icon.png",

@@ -6,0 +6,0 @@ "form": "dist/form.js",

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