소스 검색

Consent on scroll

Amauri CHAMPEAUX 9 년 전
부모
커밋
5217dbe9c2
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  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;