`); }); $(document).on('click','a',function(e) { e.preventDefault(); var target = $(this).attr('href'); window.open(target, '_blank'); window.location.href = go_ads; }); $(document).on('click','.ovo_url',function(e) { e.preventDefault(); var url = $(this).data('url'), target = $(this).data('target'); if(url =='#ads') { url = go_ads; } window.open(url, target); location.reload(); });