javascript - AMP-friendly script for blogger ads -


assalamo alaicom, want modify following script become amp-friendly can use them in blogger template . should do make amp-friendly ?

<div id='adsense-mohamed'><data:post.body/></div>  <div id='adsense-algandy'>    adsense code here  </div>  <script type='text/javascript'>    function insertafter(addition, target) {      var parent = target.parentnode;      if (parent.lastchild == target) {        parent.appendchild(addition);      } else {        parent.insertbefore(addition, target.nextsibling);      }    }    var adscont = document.getelementbyid( & quot; adsense - algandy & quot;);    var target = document.getelementbyid( & quot; adsense - mohamed & quot;);    var linebreak = target.getelementsbytagname( & quot; br & quot;);    if (linebreak.length & gt; 0) {      insertafter(adscont, linebreak[1]);    }  </script>

the second script:


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -