index.html 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE" />
  8. <META HTTP-EQUIV="EXPIRES" CONTENT="0" />
  9. <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE" />
  10. <title>Daily Popular Words</title>
  11. <script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.21.1/axios.min.js"></script>
  12. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  13. <script async defer>
  14. const today = new Date().toISOString().slice(0, 10);
  15. axios.get(`http://api.ptt.cx:8000/ts_top?td=${today}&tc=20`, {headers: {'Access-Control-Allow-Origin': '*'}}).then(res => {
  16. const tops = res.data;
  17. for(let i = 0; i < tops.length; i++) {
  18. console.log(tops);
  19. }
  20. })
  21. </script>
  22. </head>
  23. <body>
  24. <main style="width:600px; margin-left: auto; margin-right: auto; background-image: url('images/背景.jpg');height: auto;">
  25. <div>
  26. <a href="https://line.me/R/ti/p/@choozmo?from=page"><img src="images/趨勢日報BANNER.jpg" alt="Choozmo趨勢日報"></a>
  27. </div>
  28. <div style="background-color: white; border-radius: 2rem; padding-bottom: .5rem;margin-left: 2rem;margin-right: 2rem;">
  29. <div style="display: flex;justify-content: stretch; align-items: center;">
  30. <div style="padding: 1rem 1rem; width: 50%;">
  31. <div style="display: flex;border-bottom: 1px dotted grey; margin-bottom: 7px;">
  32. <span style="color: #aa6dbc;display: inline-block;flex: 2;">第21名.</span>
  33. <span style="color: #aa6dbc;display: inline-block;flex: 3;" data-no=21>雲林確診</span>
  34. </div>
  35. <div style="display: flex;border-bottom: 1px dotted grey; margin-bottom: 7px;">
  36. <span style="color: #aa6dbc;display: inline-block;flex: 2;">第19名.</span>
  37. <span style="color: #aa6dbc;display: inline-block;flex: 3;" data-no=19>雲林確診</span>
  38. </div>
  39. <div style="display: flex;border-bottom: 1px dotted grey; margin-bottom: 7px;">
  40. <span style="color: #aa6dbc;display: inline-block;flex: 2;">第17名.</span>
  41. <span style="color: #aa6dbc;display: inline-block;flex: 3;">雲林確診</span>
  42. </div>
  43. <div style="display: flex;border-bottom: 1px dotted grey; margin-bottom: 7px;">
  44. <span style="color: #aa6dbc;display: inline-block;flex: 2;">第15名.</span>
  45. <span style="color: #aa6dbc;display: inline-block;flex: 3;">雲林確診</span>
  46. </div>
  47. <div style="display: flex;border-bottom: 1px dotted grey; margin-bottom: 7px;">
  48. <span style="color: #aa6dbc;display: inline-block;flex: 2;">第13名.</span>
  49. <span style="color: #aa6dbc;display: inline-block;flex: 3;">雲林確診</span>
  50. </div>
  51. <div style="display: flex;border-bottom: 1px dotted grey; margin-bottom: 7px;">
  52. <span style="color: #aa6dbc;display: inline-block;flex: 2;">第11名.</span>
  53. <span style="color: #aa6dbc;display: inline-block;flex: 3;">雲林確診</span>
  54. </div>
  55. <div style="display: flex;border-bottom: 1px dotted grey; margin-bottom: 7px;">
  56. <span style="color: #aa6dbc;display: inline-block;flex: 2;">第09名.</span>
  57. <span style="color: #aa6dbc;display: inline-block;flex: 3;">雲林確診</span>
  58. </div>
  59. <div style="display: flex;border-bottom: 1px dotted grey; margin-bottom: 7px;">
  60. <span style="color: #aa6dbc;display: inline-block;flex: 2;">第07名.</span>
  61. <span style="color: #aa6dbc;display: inline-block;flex: 3;">雲林確診</span>
  62. </div>
  63. <div style="display: flex;border-bottom: 1px dotted grey; margin-bottom: 7px;">
  64. <span style="color: #aa6dbc;display: inline-block;flex: 2;">第21名.</span>
  65. <span style="color: #aa6dbc;display: inline-block;flex: 3;">雲林確診</span>
  66. </div>
  67. <div style="display: flex;border-bottom: 1px dotted grey; margin-bottom: 7px;">
  68. <span style="color: #aa6dbc;display: inline-block;flex: 2;">第21名.</span>
  69. <span style="color: #aa6dbc;display: inline-block;flex: 3;">雲林確診</span>
  70. </div>
  71. </div>
  72. <div style="padding: 1rem 1rem; width: 50%;">
  73. <div style="display: flex;border-bottom: 1px dotted grey;margin-bottom: 7px;">
  74. <span style="color: #aa6dbc;display: inline-block;flex: 2;">第20名.</span>
  75. <span style="color: #aa6dbc;display: inline-block;flex: 3;">雲林確診</span>
  76. </div>
  77. <div style="display: flex;border-bottom: 1px dotted grey; margin-bottom: 7px;">
  78. <span style="color: #aa6dbc;display: inline-block;flex: 2;">第18名.</span>
  79. <span style="color: #aa6dbc;display: inline-block;flex: 3;">雲林確診</span>
  80. </div>
  81. <div style="display: flex;border-bottom: 1px dotted grey; margin-bottom: 7px;">
  82. <span style="color: #aa6dbc;display: inline-block;flex: 2;">第16名.</span>
  83. <span style="color: #aa6dbc;display: inline-block;flex: 3;">雲林確診</span>
  84. </div>
  85. <div style="display: flex;border-bottom: 1px dotted grey; margin-bottom: 7px;">
  86. <span style="color: #aa6dbc;display: inline-block;flex: 2;">第14名.</span>
  87. <span style="color: #aa6dbc;display: inline-block;flex: 3;">雲林確診</span>
  88. </div>
  89. <div style="display: flex;border-bottom: 1px dotted grey; margin-bottom: 7px;">
  90. <span style="color: #aa6dbc;display: inline-block;flex: 2;">第12名.</span>
  91. <span style="color: #aa6dbc;display: inline-block;flex: 3;">雲林確診</span>
  92. </div>
  93. <div style="display: flex;border-bottom: 1px dotted grey; margin-bottom: 7px;">
  94. <span style="color: #aa6dbc;display: inline-block;flex: 2;">第10名.</span>
  95. <span style="color: #aa6dbc;display: inline-block;flex: 3;">雲林確診</span>
  96. </div>
  97. <div style="display: flex;border-bottom: 1px dotted grey; margin-bottom: 7px;">
  98. <span style="color: #aa6dbc;display: inline-block;flex: 2;">第08名.</span>
  99. <span style="color: #aa6dbc;display: inline-block;flex: 3;">雲林確診</span>
  100. </div>
  101. <div style="display: flex;border-bottom: 1px dotted grey; margin-bottom: 7px;">
  102. <span style="color: #aa6dbc;display: inline-block;flex: 2;">第06名.</span>
  103. <span style="color: #aa6dbc;display: inline-block;flex: 3;">雲林確診</span>
  104. </div>
  105. <div style="display: flex;border-bottom: 1px dotted grey; margin-bottom: 7px;">
  106. <span style="color: #aa6dbc;display: inline-block;flex: 2;">第04名.</span>
  107. <span style="color: #aa6dbc;display: inline-block;flex: 3;">雲林確診</span>
  108. </div>
  109. <div style="display: flex;border-bottom: 1px dotted grey; margin-bottom: 7px;">
  110. <span style="color: #aa6dbc;display: inline-block;flex: 2;">第02名.</span>
  111. <span style="color: #aa6dbc;display: inline-block;flex: 3;">雲林確診</span>
  112. </div>
  113. </div>
  114. </div>
  115. <div style="width: 470px; height: 85px; background-image: url('images/NO1.png');background-repeat: no-repeat;background-size: contain;margin-right: auto;margin-left: auto; position: relative;">
  116. <div style="display: flex;position: absolute; left: 6rem; top: 1.5rem; align-items: center;">
  117. <span style="color: #aa6dbc;display: inline-block;font-size: 1.6rem; margin-right: 1.5rem;">第01名.</span>
  118. <span style="display: inline-block;font-size: 1.7rem;">雲林確診</span>
  119. </div>
  120. </div>
  121. </div>
  122. <div style="margin-top: .5rem; margin-bottom: .7rem;">
  123. <a href="https://line.me/R/ti/p/@choozmo?from=page"><img src="images/立即連繫.png" alt="Contact to AIVideo"></a>
  124. </div>
  125. <div style="display: flex;align-items: center;justify-content: space-evenly; padding-bottom: 4.5rem;">
  126. <a href="https://www.linkedin.com/company/choozmo/"><img src="images/linkedin-logo.png" alt=""></a>
  127. <a href="https://www.facebook.com/choozmo/"><img src="images/facebook.png" alt=""></a>
  128. <a href="https://line.me/R/ti/p/@choozmo?from=page"><img src="images/line.png" alt=""></a>
  129. <a href="https://www.youtube.com/channel/UCi3jHOCCmx0Zyl2ZvoHzHQg"><img src="images/youtube-new-flat-logo-1.png" alt="" width="32px" height="32px"></a>
  130. <a href="https://www.instagram.com/choozmo_cmm/"><img src="images/instagram.png" alt="" width="32px" height="32px"></a>
  131. <a href="https://twitter.com/ai_cmm"><img src="images/twitter.png" alt="" width="32px" height="32px"></a>
  132. </div>
  133. </main>
  134. </body>
  135. </html>