Advertisement
NikolayBezay

Adoric set up custom z-index for campaign.

May 16th, 2022
862
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.53 KB | None | 0 0
  1. <script>
  2. (function() {
  3.     function updateZindex() {
  4.         var currentCanvas = document.querySelector('.' + self.identifier + '.__ADORIC__ [tabindex]');
  5.         currentCanvas.style.zIndex = '10';
  6.         currentCanvas.parentNode.style.zIndex = '10';
  7.     }
  8.     updateZindex();
  9.     setTimeout(function() {
  10.         updateZindex();
  11.     }, 1000);
  12.     window.addEventListener('resize', function() {
  13.         updateZindex();
  14.     });
  15.     window.addEventListener('scroll', function() {
  16.         updateZindex();
  17.     });
  18. })();
  19. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement