Forráskód Böngészése

Consent on scroll

Amauri CHAMPEAUX 9 éve
szülő
commit
5217dbe9c2
1 módosított fájl, 2 hozzáadás és 3 törlés
  1. 2 3
      tarteaucitron.js

+ 2 - 3
tarteaucitron.js

@@ -41,7 +41,7 @@ var tarteaucitron = {
                 window.addEventListener("scroll", function () {
                     var scrollPos = window.pageYOffset || document.documentElement.scrollTop,
                         heightPosition;
-                    if (document.getElementById('tarteaucitronAlertBig') !== null && tarteaucitron.showsmall && !tarteaucitron.highPrivacy) {
+                    if (document.getElementById('tarteaucitronAlertBig') !== null && !tarteaucitron.highPrivacy) {
                         if (document.getElementById('tarteaucitronAlertBig').style.display === 'block') {
                             heightPosition = document.getElementById('tarteaucitronAlertBig').offsetHeight + 'px';
                             
@@ -95,7 +95,7 @@ var tarteaucitron = {
                 window.attachEvent("onscroll", function () {
                     var scrollPos = window.pageYOffset || document.documentElement.scrollTop,
                         heightPosition;
-                    if (document.getElementById('tarteaucitronAlertBig') !== null && tarteaucitron.showsmall && !tarteaucitron.highPrivacy) {
+                    if (document.getElementById('tarteaucitronAlertBig') !== null && !tarteaucitron.highPrivacy) {
                         if (document.getElementById('tarteaucitronAlertBig').style.display === 'block') {
                             heightPosition = document.getElementById('tarteaucitronAlertBig').offsetHeight + 'px';
                             
@@ -191,7 +191,6 @@ var tarteaucitron = {
         }
         
         // global
-        tarteaucitron.showsmall = defaults.showAlertSmall;
         tarteaucitron.orientation = defaults.orientation;
         tarteaucitron.hashtag = defaults.hashtag;
         tarteaucitron.highPrivacy = defaults.highPrivacy;