Created
July 24, 2017 18:53
-
-
Save anonymous/1114446c3644e2712a57a93e05193845 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Блок с рекламой (заменить РСЯ и AdSense части на свои коды) | |
<div class="choseCountry_block"> | |
<div class="ad-wrap" style="display: block!important;height: 0;overflow: hidden;"> | |
<p><!--РСЯ--> | |
<script type="text/javascript"> | |
yandex_partner_id = 392821; | |
yandex_site_bg_color = 'FFFFFF'; | |
yandex_ad_format = 'direct'; | |
yandex_font_size = 1; | |
yandex_direct_type = 'vertical'; | |
yandex_direct_border_type = 'block'; | |
yandex_direct_limit = 3; | |
yandex_direct_title_font_size = 2; | |
yandex_direct_links_underline = false; | |
yandex_direct_header_bg_color = 'FFFFFF'; | |
yandex_direct_border_color = 'FFFFFF'; | |
yandex_direct_title_color = 'cc0066'; | |
yandex_direct_url_color = '000000'; | |
yandex_direct_text_color = '000000'; | |
yandex_direct_hover_color = '3399FF'; | |
yandex_direct_favicon = true; | |
yandex_no_sitelinks = true; | |
document.write('<scr'+'ipt type="text/javascript" src="//an.yandex.ru/system/context.js"></scr'+'ipt>'); | |
</script> | |
<!--/РСЯ--> | |
</p> | |
</div> | |
<!--AdSense код--> | |
<script> | |
$(document).ready(function() { | |
console.log(checkCountry()); | |
if (checkCountry() === "UA") { | |
$('.choseCountry_block').html('<scr'+'ipt async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></scr'+'ipt><ins class="adsbygoogle" style="display:inline-block;width:580px;height:400px" data-ad-client="ca-pub-47435749823948239" data-ad-slot="484948329423"></ins><script>(adsbygoogle = window.adsbygoogle || []).push({});</scr'+'ipt>'); | |
} else { | |
$('.choseCountry_block .ad-wrap').css('height', '100%'); | |
} | |
}); | |
</script> | |
<!--/AdSense код--> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment