mirror of
https://github.com/adulau/brouilleursdeblanc.git
synced 2024-11-22 01:57:08 +00:00
Use Google's responsive ads
This commit is contained in:
parent
ab5bb09f3e
commit
d2bb545274
1 changed files with 11 additions and 5 deletions
|
@ -1,10 +1,16 @@
|
||||||
<div class="google-ads" style="margin-top:40px; text-align:center;">
|
<div class="google-ads" style="margin-top:40px; text-align:center;">
|
||||||
|
<style>
|
||||||
|
.responsive-ads { width: 300px; height: 200px; }
|
||||||
|
@media(min-width: 518px) { .responsive-ads { width: 468px; height: 60px; } }
|
||||||
|
@media(min-width: 778px) { .responsive-ads { width: 728px; height: 90px; } }
|
||||||
|
@media(min-width: 1000px) { .responsive-ads { width: 160px; height: 600px; } }
|
||||||
|
</style>
|
||||||
|
|
||||||
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
||||||
<!-- 160x600 ad -->
|
<ins class="adsbygoogle responsive-ads"
|
||||||
<ins class="adsbygoogle"
|
style="display:inline-block"
|
||||||
style="display:inline-block;width:160px;height:600px"
|
data-ad-client="{{ site.owner.google.ad-client }}"
|
||||||
data-ad-client="{{ site.owner.google.ad-client }}"
|
data-ad-slot="{{ site.owner.google.ad-slot }}"></ins>
|
||||||
data-ad-slot="{{ site.owner.google.ad-slot }}"></ins>
|
|
||||||
<script>
|
<script>
|
||||||
(adsbygoogle = window.adsbygoogle || []).push({});
|
(adsbygoogle = window.adsbygoogle || []).push({});
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue