index.html 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Home</title>
  7. </head>
  8. <body style="background-color: #cccccc;">
  9. <div id="serverMessageBox" style="text-align: center;"></div>
  10. <div class="container">
  11. <div class="toppane">
  12. <div id="formBody">
  13. <form method="POST" id="inputTweet">
  14. <h1 style="font-size: large"; >Anonymous Topic Based PubSub Communication for Microblogging</h1>
  15. <br>
  16. <label for="message">Your Tweet here</label>
  17. <input id="message" name="message" value="house#tpc1#tpc2" type="text">
  18. <button type="submit" style="width:100px;">Post Tweet</button>
  19. <h1 style="font-size: medium;">Input like: "text#topic1#topic2"</h1>
  20. </form>
  21. </div>
  22. </div>
  23. <div class="leftpane">
  24. <h1 style="font-size: large;text-align: center;">Topic list</h1>
  25. <button id="mainUpdateTopicList" method="updateMainTopicList" type="submit" style="width:100px;">Update Main Topic List</button>
  26. <button id="mainUpdateInterests" method="updateMainInterests" type="submit" style="width:100px;">Update Interests</button>
  27. <ol id="displayMainTopicList"></ol>
  28. <div class="impressum">
  29. <h1 style="font-size: medium;"><br>This is the gui accompanying the thesis Anonymous Topic Based PubSub Communication for Microblogging.
  30. <br><br>
  31. <a href="https://arxiv.org/pdf/2108.08624.pdf" target="_blank"> You can find the paper the thesis is based upon here</a>
  32. </h1>
  33. </div>
  34. </div>
  35. <div class="middlepane">
  36. <h1 style="font-size: large;text-align: center;">Tweets</h1>
  37. <form method="getTweets" id="mainTweets">
  38. <button type="submit" style="width:100px;">Get Tweets</button>
  39. </form>
  40. <ul id="displayMainTweets"></ul>
  41. </div>
  42. <div class="rightpane">
  43. <h1 style="font-size: large;text-align: center;">Topic list for archived tweets</h1>
  44. form muss drum um jedes einzeln
  45. <button id="archiveUpdateTopicList" method="updateMainTopicList" type="submit" style="width:100px;">Update Main Topic List</button>
  46. <button id="archiveUpdateInterests" method="updateMainInterests" type="submit" style="width:100px;">Update Interests</button>
  47. <ol id="displayArchiveTweets"></ol>
  48. <br>
  49. <form method="getArchiveTweets" id="archiveTweets">
  50. <button type="submit" style="width:100px;">Get Archive Tweets</button>
  51. </form>
  52. <ul id="displayArchiveTweets"></ul>
  53. </div>
  54. </div>
  55. </body>
  56. <script src="main.js"> </script>
  57. </html>
  58. <style>
  59. body, html {
  60. width: 100%;
  61. height: 100%;
  62. margin: 0;
  63. }
  64. .container {
  65. width: 100%;
  66. height: 100%;
  67. }
  68. .leftpane {
  69. width: 25%;
  70. height: 100%;
  71. float: left;
  72. background-color: #0058b759;
  73. border-collapse: collapse;
  74. }
  75. .middlepane {
  76. width: 50%;
  77. height: 100%;
  78. float: left;
  79. border-collapse: collapse;
  80. }
  81. .rightpane {
  82. width: 25%;
  83. height: 100%;
  84. position: relative;
  85. float: right;
  86. background-color: #ffd700;
  87. border-collapse: collapse;
  88. }
  89. .toppane {
  90. margin-top: 10px;
  91. width: 100%;
  92. height: 100px;
  93. border-collapse: collapse;
  94. }
  95. form {
  96. text-align: center;
  97. }
  98. </style>