Merhaba arkadaşlar, blogger'da html'de istediğim bir yere javascript kodunu çağırmak istiyorum ama ne yaptıysam beceremedim kodu bozmaktan öteye geçemiyorum. Örnek kodlar aşağıda 2. kodu 1. kodda yer alan <ul id="recent-posts"></ul> koduyla çağırmak istiyorum yardımcı olabilecek arkadaş var mı?
<ul id="recent-posts"></ul>
<script type='text/javascript'>
//<![CDATA[ var homePage = window.location.origin,numPosts = 5;
function recentPosts(e){if(document.getElementById("recent-posts")){for(var t,s,r=e.feed.entry,n="",a=document.getElementById("recent-posts"),l=0;l<numPosts;l++){for(var c=0;c<numPosts;c++)if("alternate"==r[l].link[c].rel){s=r[l].link[c].href;break}"media$thumbnail"in r[l]?u=r[l].media$thumbnail.url.replace(/.*?:///g,"//").replace(//s[0-9]+-c/g,"/s90"):u="https://1.bp.blogspot.com/-jHWwEwTEwQ4/WJJ4k71QSYI/AAAAAAAApVc/XO_OitR_VGQS_Wquq1pv1h1D-dgiejSuQCLcB/s90/nothumb_large.png";var t=r[l].title.$t;n+='<li class="recent-posts"><img src="'+u+'" alt="'+t+'"><div class="title_post"><a href="'+s+'" title="'+t+'" target="_blank">'+t+"</a></div></li>"}a.innerHTML=n}}var rcp=document.createElement("script");rcp.src=homePage+"/feeds/posts/summary?alt=json-in-script&orderby=published&max-results="+numPosts+"&callback=recentPosts",document.getElementsByTagName("head")[0].appendChild(rcp); //]]> </script>
<script type='text/javascript'>
//<![CDATA[
// Recent Post Gallery
function relatedpostrelated(a){for(var t=a.feed.entry||[],e=['<div class="recent-gallery">'],i=0;i<t.length;++i){for(var l=t[i],r=l.title.$t,n=l.media$thumbnail?l.media$thumbnail.url:"https://2.bp.blogspot.com/-4fCf53FqYKM/Vccsy7apoZI/AAAAAAAAK4o/XJkv3RkC0pw/s1600/default%2Bimage.png",s=n.replace(/.*?:///g,"//").replace(//s[0-9]+-c/g,"/s120"),h=l.link||[],c=0;c<h.length&&"alternate"!=h[c].rel;++c);var d=h[c].href,m='<img src="'+s+'" width="'+relatedpost_thumbs+'" height="'+relatedpost_thumbs+'"/>',p=relatedpost_title?'<span class="ptitle">'+r+"</span>":"",g='<a rel="nofollow" rel="noreferrer"href="'+d+'"title="'+r+'">'+m+p+"</a>";e.push('<div class="gallerytem">',g,"</div>")}e.push("</div>"),document.write(e.join(""))}
//]]>
</script>
<script>
var relatedpost_thumbs=120;var relatedpost_title=true;
</script>
<script src='https://www.orneksite.com/feeds/posts/summary?max-results=20&amp;alt=json-in-script&amp;callback=relatedpostrelated'/>