skylight_animation

Sitemap Blogspot

Jun 12th, 2019
718
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.72 KB | None | 0 0
  1. <script>
  2. var numposts = 1000;
  3.  
  4. function listPost(json) {
  5. document.write('<ul>');
  6. for (var i = 0; i < numposts; i++) {
  7.     document.write('<li class="list-post">');
  8.     var entry = json.feed.entry[i];
  9.     var posttitle = entry.title.$t;
  10.     var posturl;
  11.     if (i == json.feed.entry.length) break;
  12.         for (var k = 0; k < entry.link.length; k++) {
  13.             if (entry.link[k].rel == 'alternate') {
  14.                 posturl = entry.link[k].href;
  15.                 posttitle = posttitle.link(posturl);
  16.             }
  17.         }
  18.         document.write(posttitle);
  19.         ('</li>');
  20.     }
  21.     ('</ul>');
  22. }
  23. </script>
  24. <script src="https://nama-blog-anda.blogspot.com/atom.xml?redirect=false&amp;start-index=1&amp;max-results=1000&amp;orderby=published&amp;alt=json-in-script&amp;callback=listPost"></script>
Advertisement
Add Comment
Please, Sign In to add comment