index.html 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. <%
  2. var settings = require("ep_etherpad-lite/node/utils/Settings");
  3. %>
  4. <!doctype html>
  5. <html>
  6. <head>
  7. <title><%=settings.title%></title>
  8. <script>
  9. /*
  10. |@licstart The following is the entire license notice for the
  11. JavaScript code in this page.|
  12. Copyright 2011 Peter Martischka, Primary Technology.
  13. Licensed under the Apache License, Version 2.0 (the "License");
  14. you may not use this file except in compliance with the License.
  15. You may obtain a copy of the License at
  16. http://www.apache.org/licenses/LICENSE-2.0
  17. Unless required by applicable law or agreed to in writing, software
  18. distributed under the License is distributed on an "AS IS" BASIS,
  19. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  20. See the License for the specific language governing permissions and
  21. limitations under the License.
  22. |@licend The above is the entire license notice
  23. for the JavaScript code in this page.|
  24. */
  25. </script>
  26. <meta charset="utf-8">
  27. <meta name="referrer" content="no-referrer">
  28. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
  29. <link rel="shortcut icon" href="<%=settings.favicon%>">
  30. <link rel="localizations" type="application/l10n+json" href="locales.json">
  31. <script type="text/javascript" src="static/js/html10n.js"></script>
  32. <script type="text/javascript" src="static/js/l10n.js"></script>
  33. <style>
  34. html, body {
  35. height: 100%;
  36. }
  37. body {
  38. margin: 0;
  39. color: #333;
  40. font: 14px helvetica, sans-serif;
  41. }
  42. #wrapper {
  43. border-top: 1px solid #999;
  44. margin-top: 160px;
  45. padding: 15px;
  46. background: #eee;
  47. }
  48. #inner {
  49. position:relative;
  50. max-width: 300px;
  51. margin: 0 auto;
  52. }
  53. #button {
  54. margin: 0 auto;
  55. text-align: center;
  56. font: 36px verdana,arial,sans-serif;
  57. width:300px;
  58. border:none;
  59. color: white;
  60. text-shadow: 0 -1px 0 rgba(0,0,0,.8);
  61. height: 70px;
  62. line-height: 70px;
  63. background: #555;
  64. }
  65. #button:hover {
  66. cursor: pointer;
  67. background: #666;
  68. }
  69. #button:active {
  70. box-shadow: inset 0 1px 12px rgba(0,0,0,0.9);
  71. background: #444;
  72. }
  73. #label {
  74. text-align: left;
  75. text-shadow: 0 1px 1px #fff;
  76. margin: 16px auto 0;
  77. display:block;
  78. }
  79. #padname{
  80. height:38px;
  81. max-width:280px;
  82. }
  83. form {
  84. height: 38px;
  85. background: #fff;
  86. border: 1px solid #bbb;
  87. border-radius: 3px;
  88. position: relative;
  89. }
  90. button, input {
  91. font-weight: bold;
  92. font-size: 15px;
  93. }
  94. input[type="text"] {
  95. border-radius: 3px;
  96. box-sizing: border-box;
  97. -moz-box-sizing: border-box;
  98. line-height:36px; /* IE8 hack */
  99. padding: 0px 45px 0 10px;
  100. *padding: 0; /* IE7 hack */
  101. width: 100%;
  102. height: 100%;
  103. outline: none;
  104. border: none;
  105. position: absolute;
  106. }
  107. button[type="submit"] {
  108. position: absolute;
  109. left:253px;
  110. width: 45px;
  111. height: 38px;
  112. }
  113. @media only screen and (min-device-width: 320px) and (max-device-width: 720px) {
  114. body {
  115. background: #bbb;
  116. }
  117. #wrapper {
  118. margin-top: 0;
  119. }
  120. #inner {
  121. width: 95%;
  122. }
  123. #label {
  124. text-align: center;
  125. }
  126. }
  127. </style>
  128. <link href="static/custom/index.css" rel="stylesheet">
  129. </head>
  130. <body>
  131. <h1>Bloc Note</h1>
  132. <main id="classic">
  133. <div class="row">
  134. <div class="col-md-8">
  135. <div class="">
  136. <h2 class="sr-only">Qu'est-ce que c'est&nbsp;?</h2>
  137. <p class="text-center"><img src="accueil/framapad.png" alt="" class="ombre"></p>
  138. <div class="caption">
  139. <p>Un «&nbsp;pad&nbsp;» est un éditeur de texte collaboratif en ligne.
  140. Les contributions de chaque utilisateur sont signalées par un code couleur,
  141. apparaissent à l’écran en temps réel et
  142. sont enregistrées au fur et à mesure qu’elles sont tapées.</p>
  143. </div>
  144. </div>
  145. </div>
  146. <div class="col-md-4" id="howitworks">
  147. <h2 class="h3">Comment ça marche&nbsp;?</h2>
  148. <ul>
  149. <li>Créez un pad.</li>
  150. <li>Commencez à <strong>rédiger</strong> votre texte</li>
  151. <li>et <strong>invitez</strong> vos collaborateurs.</li>
  152. <li>Chaque participant se distingue par une <strong><span class="fc_r5">c</span><span class="fc_o5">o</span><span class="fc_j6">u</span><span class="fc_v5">l</span><span class="fc_b9">e</span><span class="fc_f5">u</span><span class="fc_m5">r</span></strong></li>
  153. <li>et peut <strong>tchatter</strong> avec le groupe.</li>
  154. <li>Si nécessaire, restaurez une ancienne version depuis l’<strong>historique</strong></li>
  155. <li>et une fois votre travail terminé, <strong>exportez</strong>-le.</li>
  156. </ul>
  157. </div>
  158. </div>
  159. </main>
  160. <div id="wrapper">
  161. <% e.begin_block("indexWrapper"); %>
  162. <div id="inner">
  163. <buttOn id="button" onclick="go2Random()" data-l10n-id="index.newPad"></button>
  164. <label id="label" for="padname" data-l10n-id="index.createOpenPad"></label>
  165. <form action="#" onsubmit="go2Name();return false;">
  166. <input type="text" id="padname" maxlength="50" autofocus x-webkit-speech>
  167. <button type="submit">OK</button>
  168. </form>
  169. </div>
  170. <% e.end_block(); %>
  171. </div>
  172. <script src="static/custom/index.js"></script>
  173. <script>
  174. // @license magnet:?xt=urn:btih:8e4f440f4c65981c5bf93c76d35135ba5064d8b7&dn=apache-2.0.txt
  175. function go2Name()
  176. {
  177. var padname = document.getElementById("padname").value;
  178. padname.length > 0 ? window.location = "p/" + padname : alert("Please enter a name")
  179. }
  180. function go2Random()
  181. {
  182. window.location = "p/" + randomPadName();
  183. }
  184. function randomPadName()
  185. {
  186. var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  187. var string_length = 10;
  188. var randomstring = '';
  189. for (var i = 0; i < string_length; i++)
  190. {
  191. var rnum = Math.floor(Math.random() * chars.length);
  192. randomstring += chars.substring(rnum, rnum + 1);
  193. }
  194. return randomstring;
  195. }
  196. // start the custom js
  197. if (typeof customStart == "function") customStart();
  198. // @license-end
  199. </script>
  200. <div style="display:none"><a href="/javascript" data-jslicense="1">JavaScript license information</a></div>
  201. </body>
  202. </html>