Skip to content

Instantly share code, notes, and snippets.

@dreamark
Last active June 17, 2016 09:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dreamark/1ac55d03e5c7e8f4c4b6f249de39eb1e to your computer and use it in GitHub Desktop.
Save dreamark/1ac55d03e5c7e8f4c4b6f249de39eb1e to your computer and use it in GitHub Desktop.
<script type="text/javascript">
$(function(){
$(window).on("DOMContentLoaded resize", function(){
var adswich=$(window).width();
if(adswich <=675){
$('.ads-slot-02').insertAfter('.pager');
}else{
$('.ads-slot-02').insertAfter('.ads-slot-01');
}
});
})(jQuery);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment