index.html 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <!doctype html>
  2. <head>
  3. <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
  4. <meta content="utf-8" http-equiv="encoding">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <meta name="mobile-web-app-capable" content="yes">
  7. <link href="https://fonts.googleapis.com/css?family=Slabo+27px&display=swap" rel="stylesheet">
  8. <link rel="stylesheet" href="https://rawgit.com/woelper/lilac/master/lilac.min.css">
  9. <link rel="stylesheet" href="style.css">
  10. <meta name="theme-color" content="#f7d723">
  11. <meta name="apple-mobile-web-app-status-bar-style" content="#f7d723">
  12. <link rel="icon" sizes="128x128" href="icon.png">
  13. <link rel="apple-touch-icon" sizes="128x128" href="icon.png">
  14. <style>
  15. * {
  16. margin: 0;
  17. padding: 0;
  18. }
  19. body, title{
  20. font-family: 'Slabo 27px', serif;
  21. }
  22. #splash {
  23. background-color: rgb(61, 61, 61);
  24. color: rgb(207, 207, 207);
  25. padding: 10%;
  26. margin: 0%;
  27. font-size: 4em;
  28. font-weight: bolder;
  29. padding-bottom: 200%;
  30. height: 100%;
  31. font-family: Arial, Helvetica, sans-serif;
  32. }
  33. </style>
  34. </head>
  35. <body>
  36. <div id="splash">
  37. loading
  38. </div>
  39. <div id="app" style="display: none">
  40. <nav>
  41. <div class="logo">{{tr.title}}</div>
  42. Short text <input type="checkbox" v-model="compact">
  43. </nav>
  44. <div class="content">
  45. <article-new da="defaultArticle"></article-new>
  46. <div class="panel" v-if="!ready">
  47. Loading articles...
  48. </div>
  49. <template v-for="art in articles" v-if="art">
  50. <div class="panel">
  51. <div class="title">
  52. <a class="link" :href="getLink(art)">{{decodeURI(art.title.replace(/_/g, " ").replace("?wprov=sfla1",""))}}</a>
  53. </div>
  54. <template v-if="compact">
  55. <div class="summary">{{shortenParagraph(art.summary)}}</div>
  56. </template>
  57. <template v-else>
  58. <div class="summary">{{art.summary}}</div>
  59. </template>
  60. <a class="link-small" :href="getLink(art)">Read on Wikipedia</a>
  61. </div>
  62. </template>
  63. <!-- {{articles}} -->
  64. </div>
  65. </div>
  66. </body>
  67. <script defer src="vue.min.js"></script>
  68. <script defer src="firebase.js"></script>
  69. <script defer src="lodash.min.js"></script>
  70. <!-- <link rel="stylesheet" href="lilac.min.css"> -->
  71. <!-- <script defer src="https://cdn.jsdelivr.net/npm/vue@2.5.13/dist/vue.min.js"></script> -->
  72. <!-- <script defer src="https://www.gstatic.com/firebasejs/4.9.1/firebase.js"></script> -->
  73. <!-- <script defer src="https://cdn.jsdelivr.net/npm/lodash@4.13.1/lodash.min.js"></script> -->
  74. <script defer src="app.js"></script>
  75. <!-- <link href="https://fonts.googleapis.com/css?family=Alegreya+Sans|Sanchez" rel="stylesheet"> -->