Created
April 23, 2012 16:28
-
-
Save underdown/2472092 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
<script type="text/javascript"> | |
$(document).ready(function() { | |
getAdSize() { | |
switch(true) { | |
case($(window).width()>400): $('#gadslot1').html('<sc'+'ript type="text\/javascript"> | |
google_ad_client = "ca-pub-3658299045266116"; | |
google_ad_slot = "4414183254"; | |
google_ad_width = 320; | |
google_ad_height = 50; | |
<\/sc'+'ript><sc'+'ript type="text\/javascript" src="http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js"><\/sc'+'ript>'); | |
break; | |
case($(window).width()>720): $('#gadslot1').html('<sc'+'ript language="javascript" type="text\/javascript">google_ad_client = "ca-pub-3658299045266116"; | |
google_ad_slot = "4414183254"; | |
google_ad_width = 320; | |
google_ad_height = 50; | |
alert(test); | |
<\/sc'+'ript><sc'+'ript type="text\/javascript" src="http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js"><\/sc'+'ript>'); | |
break; | |
default: | |
break; | |
} | |
} | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment