var closeNotice = function() { $('.notice').hide(); setCookie('d21_notice', (3 * 60 * 60 * 1000)); } $(document).ready(function() { if (isMobile()) { if (!getCookie('d21_notice')) { $('.notice').show(); } } var ua = navigator.userAgent.toLowerCase(); if (ua.indexOf('smart') == -1) { $('#btop-left').html(''); $('#btop-right').html(''); $('#player-below-b').html(''); $('#bplayer-single').html(''); } });