Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- (function () {
- var currentURLDev = 'https://stgmobile.jpost.com/conferences';
- var currentURLProd = 'https://m.jpost.com/conferences';
- if (window.location.href == currentURLDev || window.location.href == currentURLProd) {
- var WAITING_TIMER_COUNTER = 10;
- var PART_OF_SECOND = 200;
- function waitPageSelector() {
- WAITING_TIMER_COUNTER--;
- var nativePageSelector = document.querySelector('.jpost-spotlight-wrap.line');
- if ((!nativePageSelector && WAITING_TIMER_COUNTER > 0) || !window.adoric || !window.adoric.trigger) {
- setTimeout(waitPageSelector, PART_OF_SECOND);
- } else if (window.adoric) {
- adoric.trigger('showAdoricUpcomingEventsMB');
- }
- }
- waitPageSelector();
- }
- })();
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement