Skip to content

Instantly share code, notes, and snippets.

@marumarudai
Created February 13, 2019 12:47
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 marumarudai/0849e36d521e9363f7b151eb28478a75 to your computer and use it in GitHub Desktop.
Save marumarudai/0849e36d521e9363f7b151eb28478a75 to your computer and use it in GitHub Desktop.
<!--記事中央-->
<script>// <![CDATA[
addEventListener("DOMContentLoaded", function() {
var $target = $('.entry-content > h3,h4,h5');
$target.eq(Math.floor($target.size() / 2)).before($('.insentence-adsense'));
}, false);
// ]]></script>
<div class="insentence-adsense">
<p style=”text-align:center;” >スポンサーリンク<br>
<!--ここにアドセンスコードをコピペ-->
<p> </p>
</div>
<!--記事中央終わり-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment