Replica, primary development repository is https://github.com/jjg/preposter.us
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.7KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Preposter.us</title>
  5. <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
  6. <meta charset='utf-8'>
  7. <meta name="viewport" content="width=device-width; initial-scale=1.0;">
  8. <link rel="stylesheet" href="css/reset.css" media="all" />
  9. <link rel="stylesheet" href="css/single-col.css" media="all" />
  10. <link rel="alternate" type="application/rss+xml" title="Preposter.us Podcast" href="https://preposter.us/podcast.xml" />
  11. </head>
  12. <body>
  13. <section>
  14. <header>
  15. <h1><span>Welcome to </span>Preposter.us!</h1>
  16. <h2><span>these are the blogs...</span></h2>
  17. <header>
  18. <article class="cols">
  19. <ul id="bloglist"></ul>
  20. </article>
  21. <br>
  22. <div class="footer">
  23. powered by <a style="color: red; text-decoration: none" href="https://codeberg.org/jjg/preposter.us">preposter.us</a>
  24. </div>
  25. </section>
  26. <script>
  27. var serverProtocol = location.protocol;
  28. var serverHost = location.hostname;
  29. var serverPort = location.port;
  30. var serverURL = serverProtocol + '//' + serverHost + ':' + serverPort;
  31. var blogListURL = serverURL + '/blogs.html';
  32. var blogListReq = new XMLHttpRequest();
  33. blogListReq.onload = renderList;
  34. blogListReq.open('GET', blogListURL, true);
  35. blogListReq.send();
  36. function renderList(){
  37. var blogs = this.responseText;
  38. var bloglist = document.getElementById('bloglist');
  39. bloglist.innerHTML = blogs;
  40. }
  41. </script>
  42. </body>
  43. </html>