КАРТА БЛОГА

<script>
var blog_archive = [];
var month_name = ["Январь", "Февраль", "Март", "Апрель", "Май","Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь"];
function blog_archive_callback(json){
if(!("entry" in json.feed)) return;
for(var i=0;i<json.feed.entry.length;i++){
 var e=json.feed.entry[i];
 var y=e.published.$t.substring(0, 4);
 var m=e.published.$t.substring(5, 7);
 var d=e.published.$t.substring(8, 10);
 var h='';
 for(var j=0;j<e.link.length;j++){
  if(e.link[j].rel=="alternate"){
   h=e.link[j].href;
   break
  }
 }
 if(h=='')continue;
 if(typeof blog_archive[y]=="undefined") blog_archive[y]=[];
 if(typeof blog_archive[y][m]=="undefined") blog_archive[y][m]=[];
 if(typeof blog_archive[y][m][d]=="undefined") blog_archive[y][m][d]=[];
 blog_archive[y][m][d].push("<a href='"+h+"'>"+e.title.$t+"</a>");
}
}
function blog_archive_display(){
var years = []; for ( y in blog_archive ) years.push(y);
if(years.length<1) return;
years.sort();
years.reverse();
for(var y=0;y<years.length;y++){
 var year = years[y];
 var months = []; for ( m in blog_archive[year] ) months.push(m);
 if(months.length<1) continue;
 months.sort();
 months.reverse();
 for(var m=0;m<months.length;m++){
  var month = months[m];
  document.write("<p><b><a href='/"+ year +"_"+ month +"_01_archive.html'>"+ month_name[parseInt(month)-1] +" "+ year +"</a></b></p>");
  var days = []; for ( d in blog_archive[year][month] ) days.push(d);
  if(days.length<1) continue;
  days.sort();
  days.reverse();
  document.write("<ul>");
  for(var d=0;d<days.length;d++){
   var day = days[d];
   if(blog_archive[year][month][day].length<1) continue;
   for(var i in blog_archive[year][month][day]) {
    document.write("<li>["+ day +"] "+ blog_archive[year][month][day][i] +"</li>");
   }
  }
  document.write("</ul>");
 }
}
}
</script>

<script src="https://razzberry-charm.blogspot.ru/feeds/posts/default?max-results=1001&alt=json-in-script&callback=blog_archive_callback"></script>

<script>blog_archive_display();</script>

Related Posts Plugin for WordPress, Blogger...