Created
February 10, 2019 01:28
-
-
Save puppe1990/2a1f9b8fb76809ca035ecd34604b40aa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
let size = document.querySelectorAll(".clickable-mask").length; | |
for(let i=0; i<=size;i++){ | |
console.log(document.querySelectorAll(".clickable-mask")[i].dataset.isPromotional); | |
let promocao = document.querySelectorAll(".clickable-mask")[i].dataset.isPromotional; | |
if (promocao == 'Promocionado') { | |
console.log(document.querySelectorAll(".clickable-mask")[i]); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment