--> jQuery(window).scroll(function() { checkStick(); }); var mbannerid = '#div-gpt-ad-1563273235586-0'; var mfooterid = '#footermobilebanner'; var dfooterid = '#div-gpt-ad-1563274691467-0'; // Desktop sticky check function checkStick() { var launched = false; if (jQuery(window).height() > 500) { if (!jQuery('#dfp_stickyfooter').hasClass("closed")) { if (jQuery('#dfp_stickyfooter > div').length) { if (!jQuery('#dfp_stickyfooter > div').hasClass("cog-mb-sticky")) { var width = jQuery('#dfp_stickyfooter > div > iframe').width(); var height = jQuery('#dfp_stickyfooter > div > iframe').height(); if (parseInt(width) > 0) { launched = true; jQuery('#dfp_stickyfooter').attr('style', 'height: '+(height+30)+'px;').addClass('opened'); jQuery('#dfp_stickyfooter').append(' '); jQuery('#dfp_stickyfooter > div').addClass('cog-mb-sticky floating footer'); jQuery('#dfp_stickyfooter > div').attr('style', 'position:absolute; bottom:0;'); jQuery('#dfp_stickyfooter svg.close').on('click', function() { jQuery(this).parent().removeClass('opened').addClass('closed'); }); } } } } } if (!launched) { // Ad not ready yet window.setTimeout(checkStick, 250); } } jQuery(document).ready(function() {checkStick();}); -->

This site is intended for health professionals only

Endocrine disorders

Be in the know
Subscribe to Hospital Pharmacy Europe newsletter and magazine

x