Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

164 Zeilen
6.5 KiB

vor 3 Jahren
  1. <%
  2. var settings = require("ep_etherpad-lite/node/utils/Settings");
  3. %>
  4. <!doctype html>
  5. <html>
  6. <title><%=settings.title%></title>
  7. <meta charset="utf-8">
  8. <meta name="referrer" content="no-referrer">
  9. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
  10. <link rel="shortcut icon" href="<%=settings.favicon%>">
  11. <link rel="localizations" type="application/l10n+json" href="locales.json">
  12. <script type="text/javascript" src="static/js/html10n.js?v=<%=settings.randomVersionString%>"></script>
  13. <script type="text/javascript" src="static/js/l10n.js?v=<%=settings.randomVersionString%>"></script>
  14. <script src="static/js/jquery.js"></script>
  15. <script src="static/js/index.js"></script>
  16. <style>
  17. html, body {
  18. height: 100%;
  19. }
  20. body {
  21. margin: 0;
  22. color: #333;
  23. font: 14px helvetica, sans-serif;
  24. background: #ddd;
  25. background: -webkit-radial-gradient(circle,#aaa,#eee 60%) center fixed;
  26. background: -moz-radial-gradient(circle,#aaa,#eee 60%) center fixed;
  27. background: -ms-radial-gradient(circle,#aaa,#eee 60%) center fixed;
  28. background: -o-radial-gradient(circle,#aaa,#eee 60%) center fixed;
  29. border-top: 8px solid rgba(51,51,51,.8);
  30. }
  31. #wrapper {
  32. border-top: 1px solid #999;
  33. margin-top: 160px;
  34. padding: 15px;
  35. background: #eee;
  36. background: -webkit-linear-gradient(#fff,#ccc);
  37. background: -moz-linear-gradient(#fff,#ccc);
  38. background: -ms-linear-gradient(#fff,#ccc);
  39. background: -o-linear-gradient(#fff,#ccc);
  40. box-shadow: 0px 1px 8px rgba(0,0,0,0.3);
  41. }
  42. #inner {
  43. position:relative;
  44. max-width: 300px;
  45. margin: 0 auto;
  46. }
  47. #button {
  48. margin: 0 auto;
  49. text-align: center;
  50. font: 36px verdana,arial,sans-serif;
  51. width:300px;
  52. border:none;
  53. color: white;
  54. text-shadow: 0 -1px 0 rgba(0,0,0,.8);
  55. height: 70px;
  56. line-height: 70px;
  57. background: #555;
  58. background: -webkit-linear-gradient(#5F5F5F,#565656 50%,#4C4C4C 51%,#373737);
  59. background: -moz-linear-gradient(#5F5F5F,#565656 50%,#4C4C4C 51%,#373737);
  60. background: -ms-linear-gradient(#5F5F5F,#565656 50%,#4C4C4C 51%,#373737);
  61. background: -o-linear-gradient(#5F5F5F,#565656 50%,#4C4C4C 51%,#373737);
  62. box-shadow: inset 0 1px 3px rgba(0,0,0,0.9);
  63. }
  64. #button:hover {
  65. cursor: pointer;
  66. background: #666;
  67. background: -webkit-linear-gradient(#707070,#666666 50%,#5B5B5B 51%,#474747);
  68. background: -moz-linear-gradient(#707070,#666666 50%,#5B5B5B 51%,#474747);
  69. background: -ms-linear-gradient(#707070,#666666 50%,#5B5B5B 51%,#474747);
  70. background: -o-linear-gradient(#707070,#666666 50%,#5B5B5B 51%,#474747);
  71. }
  72. #button:active {
  73. box-shadow: inset 0 1px 12px rgba(0,0,0,0.9);
  74. background: #444;
  75. }
  76. #label {
  77. text-align: left;
  78. text-shadow: 0 1px 1px #fff;
  79. margin: 16px auto 0;
  80. display:block;
  81. }
  82. #padname{
  83. height:38px;
  84. max-width:280px;
  85. }
  86. form {
  87. height: 38px;
  88. background: #fff;
  89. border: 1px solid #bbb;
  90. border-radius: 3px;
  91. position: relative;
  92. }
  93. button, input {
  94. font-weight: bold;
  95. font-size: 15px;
  96. }
  97. input[type="text"] {
  98. border-radius: 3px;
  99. box-sizing: border-box;
  100. -moz-box-sizing: border-box;
  101. line-height:36px; /* IE8 hack */
  102. padding: 0px 45px 0 10px;
  103. *padding: 0; /* IE7 hack */
  104. width: 100%;
  105. height: 100%;
  106. outline: none;
  107. border: none;
  108. position: absolute;
  109. }
  110. button[type="submit"] {
  111. position: absolute;
  112. left:253px;
  113. width: 45px;
  114. height: 38px;
  115. }
  116. @media only screen and (min-device-width: 320px) and (max-device-width: 800px) {
  117. body {
  118. background: #bbb;
  119. background: -webkit-linear-gradient(#aaa,#eee 60%) center fixed;
  120. background: -moz-linear-gradient(#aaa,#eee 60%) center fixed;
  121. background: -ms-linear-gradient(#aaa,#eee 60%) center fixed;
  122. }
  123. #wrapper {
  124. margin-top: 0;
  125. }
  126. #inner {
  127. width: 95%;
  128. }
  129. #label {
  130. text-align: center;
  131. }
  132. }
  133. </style>
  134. <% e.begin_block("indexCustomStyles"); %>
  135. <link href="static/skins/<%=encodeURI(settings.skinName)%>/index.css?v=<%=settings.randomVersionString%>" rel="stylesheet">
  136. <% e.end_block(); %>
  137. <div id="wrapper">
  138. <% e.begin_block("indexWrapper"); %>
  139. <div id="inner">
  140. <% if (!settings.requireSession) { %>
  141. <% if (settings.editOnly) { %>
  142. <label id="label" for="padname" data-l10n-id="index.openPad"></label>
  143. <% } else {%>
  144. <button id="button" data-l10n-id="index.newPad"></button>
  145. <label id="label" for="padname" data-l10n-id="index.createOpenPad"></label>
  146. <% } %>
  147. <form action="#" id="go2Name">
  148. <input type="text" id="padname" maxlength="50" autofocus x-webkit-speech>
  149. <button type="submit">OK</button>
  150. </form>
  151. <% } %>
  152. </div>
  153. <% e.end_block(); %>
  154. </div>
  155. <% e.begin_block("indexCustomScripts"); %>
  156. <script src="static/skins/<%=encodeURI(settings.skinName)%>/index.js?v=<%=settings.randomVersionString%>"></script>
  157. <% e.end_block(); %>
  158. <div style="display:none"><a href="/javascript" data-jslicense="1">JavaScript license information</a></div>
  159. </html>