@abtasty/scroll-tracking
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -1,1 +0,1 @@ | ||
var widgetMain=function(e){"use strict";var n=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];e.unshift("[AB Tasty Widget] "+PACKAGE+":"),console.log.apply(console,e)},t=DATA.engagementGoal,o=function(){return 100*(document.body.scrollTop||document.documentElement.scrollTop)/(document.body.scrollHeight-window.innerHeight)};return window.addEventListener("scroll",function e(){var r=o();t.forEach(function(o,l){var c=o.percentage;if(r>=c){var i=o.name;t.splice(l,1),0===t.length&&window.removeEventListener("scroll",e),TEST_ID>0?(window.ABTastyEvent(i,null,TEST_ID),n('Engagement goal "'+i+'" sent to test '+TEST_ID+".")):n("Needs ID of the test.")}})}),e.getCurrentScrollPercent=o,e}({}); | ||
!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=DATA.engagementGoal;window.addEventListener("scroll",function t(){var o=100*(document.body.scrollTop||document.documentElement.scrollTop)/(document.body.scrollHeight-window.innerHeight);n.forEach(function(l,c){var s=l.percentage;if(o>=s){var i=l.name;n.splice(c,1),0===n.length&&window.removeEventListener("scroll",t),TEST_ID>0?(window.ABTastyEvent(i,null,TEST_ID),e('Engagement goal "'+i+'" sent to test '+TEST_ID+".")):e("Needs ID of the test.")}})})}(); |
{ | ||
"name": "@abtasty/scroll-tracking", | ||
"description": "AB Tasty Widget", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"icon": "icon.png", | ||
@@ -6,0 +6,0 @@ "form": "dist/form.js", |
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
1
4909