Citibank Online

April 25, 2021


Citibank Online -1) { console.log(‘index.html inside bootstrap.js wait function’); function waitFor(condition, callback) { if (!condition()) { window.setTimeout( waitFor.bind(null, condition, callback), 100 ); /* this checks the flag every 100 milliseconds*/ } else { callback(); } } var head = document.head || document.getElementsByTagName(‘head’)[0]; // CSS as text to insert dynamically, fix for no-js error. /* Opacity 0f 0 on container div till adobe target js is activated */ var hideStyle = document.createElement(‘style’); hideStyle.type = ‘text/css’; // Check if browser is IE var ua = window.navigator.userAgent; var isIE = /MSIE|Trident/.test(ua); if (!isIE) { console.log( ‘browser is not IE, so add test and target css fix for /login’, isIE ); hideStyle.innerText = ‘div.citi-outer-container{opacity:0!important}’; } // appends temporary style head.appendChild(hideStyle); var syncLoadLinks = { bootstrap: window[‘location’][‘hostname’] === ‘www.citi.com’ ? ‘https://nexus.ensighten.com/citi/na_prod/Bootstrap.js’ : ‘https://nexus.ensighten.com/citi/na_stage/Bootstrap.js’ }; [syncLoadLinks.bootstrap].forEach(function(src, idx, arr) { var script = document.createElement(‘script’); script.src = src; script.async = false; document.head.appendChild(script); if (idx === 0) { waitFor( function() { return window.Bootstrapper; }, function() { Bootstrapper.ensEvent.add([‘naAnalyticsPageView’], function() { console.log(‘/login bootstrap call success’); if (hideStyle.parentNode == head) { head.removeChild(hideStyle); } }); } ); } script.onerror = function() { console.log(‘/login bootstrap call fail’); if (hideStyle.parentNode == head) { head.removeChild(hideStyle); } }; }); // On load remove style if not already removed. window.addEventListener(‘load’, function() { console.log(‘/login no bootstrap call’); if (hideStyle.parentNode == head) { head.removeChild(hideStyle); } }); } ]]> -1) { let newRobotsTag = document.createElement(‘meta’); newRobotsTag.setAttribute(‘name’, ‘robots’); newRobotsTag.setAttribute(‘content’, ‘noindex,nofollow’); let docHead = document.querySelectorAll(‘head’)[0]; docHead.appendChild(newRobotsTag); } ]]>

Source