'); } // Show lean library banner only if user has full access if ($('.articleBadges .accessIcon.openAccess, .articleBadges .accessIcon.freeAccess').length>0) $('.lean-library-ft p.ll-message-oa').removeClass('doNotShow'); else if ($('.articleBadges .accessIcon.fullAccess').length>0) $('.lean-library-ft p.ll-message').removeClass('doNotShow'); if ($('.PDFTool.pdf-no-access').length===0) $('div.lean-library-ft').removeClass('doNotShow'); //By default check the Remember Me box in login form $('.remember .keepMeLogin input').prop('checked', true); $('#restore-content .field-info').on('hover', function() { $('#restore-content p.note').show(); console.debug('in'); }, function() { $('#restore-content p.note').hide(); console.debug('out'); } ); $('input#email').attr('tabindex','0'); $('.restore-content-access-widget p.note').attr('id', 'restore-access-note'); $('.restore-content-access-widget #email').attr('aria-describedby', 'restore-access-note'); /* try{ var observer = new MutationObserver(function(mutations) { mutations.forEach(function(mutationRecord) { if (mutationRecord.type == 'childList') { //console.log('A child node has been added or removed.'); let refPopup=document.getElementById('openBalloon'); if (refPopup!==null){ if (refPopup.style.right==='0px') { addClass('openBalloon', 'flip-balloon'); //let ref=$(refPopup).closest('span.ref').prev('a.ref')[0]; //if ($(ref).width()>250 || ref.getBoundingClientRect().left<0.6*window.innerWidth) // addClass('openBalloon', 'pull-left'); } } } }); }); var target = document.getElementById('25e8d4fe-c5d2-4686-bdef-3b125e01db4b'); if (target) observer.observe(target, {attributes:false, childList:true, subtree:true }); } catch(e) { } */ updateCart(); initLoginBox(); //specialCollectionDuplicate(); removeTlaFromTaxonomyFacet(); moveRelatedJournals(); rearrangeMostReadCitedPage(); accesibilityImageAltText(); removeDuplicateIds(); checkJournalHomeLinks(); if (typeof(Storage)!=='undefined' && sessionStorage.pbPreview==='On' && !inMicrositeScope()){ console.debug('Running document ready JS...'); docReady(); sessionStorage.pbPreview='Off'; } ///////////////////////////////////////////// $(window).on('orientationchange', function(event){ try { $('input[name=AllField]').autocomplete('close'); } catch(e) {} }); $(window).on('scroll', function(){ let scroll = $(window).scrollTop(); try { if(scroll>1) $('input[name=AllField]').autocomplete('close'); } catch(e) {} }); //console.debug('Journal: , Issue: , Article: ');