Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- //pages where this script have to work
- //https://es.iqos.com/en/registercontact?context=spr
- //https://es.iqos.com/es/registercontact?context=spr
- (function() {
- var waitPageTriggerElement = setInterval(function() {
- var registrationUserEmailField = document.querySelector('.registration-confirmation__items-container');
- if (registrationUserEmailField) {
- clearInterval(waitPageTriggerElement);
- if (window.location.href.indexOf('/es/') != -1) {
- window.adoric && window.adoric.trigger('showGetSMS_form_ES');
- } else {
- window.adoric && window.adoric.trigger('showGetSMS_form_EN');
- }
- }
- }, 200);
- setTimeout(function() {
- clearInterval(waitPageTriggerElement);
- }, 7000);
- })();
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement