2012-03-22 18:35:06 +01:00
|
|
|
<%
|
2012-11-12 16:49:15 +01:00
|
|
|
var settings = require("ep_etherpad-lite/node/utils/Settings")
|
|
|
|
, langs = require("ep_etherpad-lite/node/hooks/i18n").availableLangs
|
2012-03-22 18:35:06 +01:00
|
|
|
%>
|
2011-12-06 18:45:16 +01:00
|
|
|
<!doctype html>
|
2012-01-26 17:22:44 +01:00
|
|
|
<html>
|
2012-11-02 12:30:57 +01:00
|
|
|
<title><%=settings.title%></title>
|
2012-10-17 18:53:28 +02:00
|
|
|
<script>
|
|
|
|
/*
|
|
|
|
|@licstart The following is the entire license notice for the
|
|
|
|
JavaScript code in this page.|
|
|
|
|
|
|
|
|
Copyright 2011 Peter Martischka, Primary Technology.
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
|
|
|
|
|@licend The above is the entire license notice
|
|
|
|
for the JavaScript code in this page.|
|
|
|
|
*/
|
|
|
|
</script>
|
2011-12-06 18:54:57 +01:00
|
|
|
|
2012-01-26 17:22:44 +01:00
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="robots" content="noindex, nofollow">
|
2012-02-27 22:04:03 +01:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
|
2012-11-30 23:50:54 +01:00
|
|
|
<link rel="shortcut icon" href="<%=settings.faviconPad%>">
|
2011-12-06 18:54:57 +01:00
|
|
|
|
2012-12-17 18:18:20 +01:00
|
|
|
<link rel="localizations" type="application/l10n+json" href="../locales.json" />
|
2012-12-16 18:24:02 +01:00
|
|
|
<script type="text/javascript" src="../static/js/html10n.js"></script>
|
2012-12-09 09:41:30 +01:00
|
|
|
<script type="text/javascript" src="../static/js/l10n.js"></script>
|
2012-05-20 14:48:02 +02:00
|
|
|
|
2012-03-21 19:29:06 +01:00
|
|
|
<% e.begin_block("styles"); %>
|
2012-04-16 15:19:53 +02:00
|
|
|
<link href="../static/css/pad.css" rel="stylesheet">
|
|
|
|
<link href="../static/custom/pad.css" rel="stylesheet">
|
|
|
|
<style title="dynamicsyntax"></style>
|
2012-03-21 19:29:06 +01:00
|
|
|
<% e.end_block(); %>
|
2011-12-06 18:54:57 +01:00
|
|
|
|
2012-02-28 21:21:59 +01:00
|
|
|
<!-- head and body had been removed intentionally -->
|
|
|
|
|
2012-04-12 20:24:38 +02:00
|
|
|
<% e.begin_block("body"); %>
|
2012-03-28 19:20:07 +02:00
|
|
|
<div id="editbar" class="toolbar">
|
2012-07-14 14:46:02 +02:00
|
|
|
<div id="overlay">
|
|
|
|
<div id="overlay-inner"></div>
|
|
|
|
</div>
|
2012-03-28 19:20:07 +02:00
|
|
|
<ul class="menu_left">
|
2012-04-16 15:19:53 +02:00
|
|
|
<% e.begin_block("editbarMenuLeft"); %>
|
2012-05-29 21:26:12 +02:00
|
|
|
<li class="acl-write" id="bold" data-key="bold">
|
2012-12-23 16:31:50 +01:00
|
|
|
<a class="grouped-left" data-l10n-id="pad.toolbar.bold.title">
|
2012-05-30 17:41:43 +02:00
|
|
|
<span class="buttonicon buttonicon-bold"></span>
|
|
|
|
</a>
|
2012-04-16 15:19:53 +02:00
|
|
|
</li>
|
2012-05-29 21:26:12 +02:00
|
|
|
<li class="acl-write" id="italic" data-key="italic">
|
2012-12-23 16:31:50 +01:00
|
|
|
<a class="grouped-middle" data-l10n-id="pad.toolbar.italic.title">
|
2012-05-30 17:41:43 +02:00
|
|
|
<span class="buttonicon buttonicon-italic"></span>
|
|
|
|
</a>
|
2012-04-16 15:19:53 +02:00
|
|
|
</li>
|
2012-05-29 21:26:12 +02:00
|
|
|
<li class="acl-write" id="underline" data-key="underline">
|
2012-12-23 16:31:50 +01:00
|
|
|
<a class="grouped-middle" data-l10n-id="pad.toolbar.underline.title">
|
2012-05-30 17:41:43 +02:00
|
|
|
<span class="buttonicon buttonicon-underline"></span>
|
|
|
|
</a>
|
2012-04-16 15:19:53 +02:00
|
|
|
</li>
|
2012-05-29 21:26:12 +02:00
|
|
|
<li class="acl-write" id="strikethrough" data-key="strikethrough">
|
2012-12-23 16:31:50 +01:00
|
|
|
<a class="grouped-right" data-l10n-id="pad.toolbar.strikethrough.title">
|
2012-05-30 17:41:43 +02:00
|
|
|
<span class="buttonicon buttonicon-strikethrough"></span>
|
|
|
|
</a>
|
2012-04-16 15:19:53 +02:00
|
|
|
</li>
|
2012-05-30 17:41:43 +02:00
|
|
|
<li class="acl-write separator"></li>
|
2012-05-29 21:26:12 +02:00
|
|
|
<li class="acl-write" id="oderedlist" data-key="insertorderedlist">
|
2012-12-23 16:31:50 +01:00
|
|
|
<a class="grouped-left" data-l10n-id="pad.toolbar.ol.title">
|
2012-05-30 17:41:43 +02:00
|
|
|
<span class="buttonicon buttonicon-insertorderedlist"></span>
|
|
|
|
</a>
|
2012-04-16 15:19:53 +02:00
|
|
|
</li>
|
2012-05-29 21:26:12 +02:00
|
|
|
<li class="acl-write" id="unoderedlist" data-key="insertunorderedlist">
|
2012-12-23 16:31:50 +01:00
|
|
|
<a class="grouped-middle" data-l10n-id="pad.toolbar.ul.title">
|
2012-05-30 17:41:43 +02:00
|
|
|
<span class="buttonicon buttonicon-insertunorderedlist"></span>
|
|
|
|
</a>
|
2012-04-16 15:19:53 +02:00
|
|
|
</li>
|
2012-05-29 21:26:12 +02:00
|
|
|
<li class="acl-write" id="indent" data-key="indent">
|
2012-12-23 16:31:50 +01:00
|
|
|
<a class="grouped-middle" data-l10n-id="pad.toolbar.indent.title">
|
2012-05-30 17:41:43 +02:00
|
|
|
<span class="buttonicon buttonicon-indent"></span>
|
|
|
|
</a>
|
2012-04-16 15:19:53 +02:00
|
|
|
</li>
|
2012-05-29 21:26:12 +02:00
|
|
|
<li class="acl-write" id="outdent" data-key="outdent">
|
2012-12-23 16:31:50 +01:00
|
|
|
<a class="grouped-right" data-l10n-id="pad.toolbar.unindent.title">
|
2012-05-30 17:41:43 +02:00
|
|
|
<span class="buttonicon buttonicon-outdent"></span>
|
|
|
|
</a>
|
2012-04-16 15:19:53 +02:00
|
|
|
</li>
|
2012-05-30 17:41:43 +02:00
|
|
|
<li class="acl-write separator"></li>
|
2012-05-29 21:26:12 +02:00
|
|
|
<li class="acl-write" id="undo" data-key="undo">
|
2012-12-23 16:31:50 +01:00
|
|
|
<a class="grouped-left" data-l10n-id="pad.toolbar.undo.title">
|
2012-05-30 17:41:43 +02:00
|
|
|
<span class="buttonicon buttonicon-undo"></span>
|
|
|
|
</a>
|
2012-04-16 15:19:53 +02:00
|
|
|
</li>
|
2012-05-29 21:26:12 +02:00
|
|
|
<li class="acl-write" id="redo" data-key="redo">
|
2012-12-23 16:31:50 +01:00
|
|
|
<a class="grouped-right" data-l10n-id="pad.toolbar.redo.title">
|
2012-05-30 17:41:43 +02:00
|
|
|
<span class="buttonicon buttonicon-redo"></span>
|
|
|
|
</a>
|
2012-04-16 15:19:53 +02:00
|
|
|
</li>
|
2012-05-30 17:41:43 +02:00
|
|
|
<li class="acl-write separator"></li>
|
2012-05-29 21:26:12 +02:00
|
|
|
<li class="acl-write" id="clearAuthorship" data-key="clearauthorship">
|
2012-12-23 16:31:50 +01:00
|
|
|
<a data-l10n-id="pad.toolbar.clearAuthorship.title">
|
2012-05-30 17:41:43 +02:00
|
|
|
<span class="buttonicon buttonicon-clearauthorship"></span>
|
|
|
|
</a>
|
2012-04-16 15:19:53 +02:00
|
|
|
</li>
|
|
|
|
<% e.end_block(); %>
|
2012-04-16 15:13:07 +02:00
|
|
|
</ul>
|
2012-03-28 19:20:07 +02:00
|
|
|
<ul class="menu_right">
|
2012-04-16 15:19:53 +02:00
|
|
|
<% e.begin_block("editbarMenuRight"); %>
|
2012-07-14 14:54:25 +02:00
|
|
|
<li data-key="import_export">
|
2012-12-23 16:31:50 +01:00
|
|
|
<a class="grouped-left" id="importexportlink" data-l10n-id="pad.toolbar.import_export.title">
|
2012-07-14 14:54:25 +02:00
|
|
|
<span class="buttonicon buttonicon-import_export"></span>
|
2012-05-30 17:41:43 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
2012-07-13 08:23:22 +02:00
|
|
|
<li onClick="document.location = document.location.pathname+ '/timeslider'">
|
2012-12-23 16:31:50 +01:00
|
|
|
<a id="timesliderlink" class="grouped-middle" data-l10n-id="pad.toolbar.timeslider.title">
|
2012-07-13 08:23:22 +02:00
|
|
|
<span class="buttonicon buttonicon-history"></span>
|
|
|
|
</a>
|
|
|
|
</li>
|
2012-07-14 14:54:25 +02:00
|
|
|
<li class="acl-write" data-key="savedRevision">
|
2012-12-23 16:31:50 +01:00
|
|
|
<a class="grouped-right" id="revisionlink" data-l10n-id="pad.toolbar.savedRevision.title">
|
2012-07-14 14:54:25 +02:00
|
|
|
<span class="buttonicon buttonicon-savedRevision"></span>
|
2012-02-29 23:39:01 +01:00
|
|
|
</a>
|
2012-04-16 15:19:53 +02:00
|
|
|
</li>
|
2012-07-13 08:23:22 +02:00
|
|
|
<li class="acl-write separator"></li>
|
|
|
|
<li class="acl-write" data-key="settings">
|
2012-12-23 16:31:50 +01:00
|
|
|
<a class="grouped-left" id="settingslink" data-l10n-id="pad.toolbar.settings.title">
|
2012-07-13 08:23:22 +02:00
|
|
|
<span class="buttonicon buttonicon-settings"></span>
|
|
|
|
</a>
|
|
|
|
</li>
|
2012-05-15 02:11:05 +02:00
|
|
|
<li data-key="embed">
|
2012-12-23 16:31:50 +01:00
|
|
|
<a class="grouped-right" id="embedlink" data-l10n-id="pad.toolbar.embed.title">
|
2012-05-30 17:41:43 +02:00
|
|
|
<span class="grouped-right buttonicon buttonicon-embed"></span>
|
2012-02-29 23:39:01 +01:00
|
|
|
</a>
|
2012-04-16 15:19:53 +02:00
|
|
|
</li>
|
|
|
|
<li class="separator"></li>
|
2012-03-01 01:47:16 +01:00
|
|
|
<li id="usericon" data-key="showusers">
|
2012-12-23 16:31:50 +01:00
|
|
|
<a data-l10n-id="pad.toolbar.showusers.title">
|
2012-05-20 15:59:51 +02:00
|
|
|
<span class="buttonicon buttonicon-showusers"></span>
|
2012-03-01 01:47:16 +01:00
|
|
|
<span id="online_count">1</span>
|
|
|
|
</a>
|
2012-04-16 15:19:53 +02:00
|
|
|
</li>
|
|
|
|
<% e.end_block(); %>
|
2012-01-26 17:22:44 +01:00
|
|
|
</ul>
|
|
|
|
</div>
|
2011-12-06 18:54:57 +01:00
|
|
|
|
2012-01-26 17:22:44 +01:00
|
|
|
<div id="users">
|
|
|
|
<div id="connectionstatus"></div>
|
|
|
|
<div id="myuser">
|
|
|
|
<div id="mycolorpicker">
|
|
|
|
<div id="colorpicker"></div>
|
2012-11-12 17:24:14 +01:00
|
|
|
<button id="mycolorpickersave" data-l10n-id="pad.colorpicker.save"></button>
|
|
|
|
<button id="mycolorpickercancel" data-l10n-id="pad.colorpicker.cancel"></button>
|
2012-01-26 17:22:44 +01:00
|
|
|
<span id="mycolorpickerpreview" class="myswatchboxhoverable"></span>
|
2012-04-16 15:13:07 +02:00
|
|
|
</div>
|
2012-01-26 17:22:44 +01:00
|
|
|
<div id="myswatchbox"><div id="myswatch"></div></div>
|
|
|
|
<div id="myusernameform"><input type="text" id="myusernameedit" disabled="disabled"></div>
|
2012-04-16 15:13:07 +02:00
|
|
|
<div id="mystatusform"><input type="text" id="mystatusedit" disabled="disabled"></div>
|
2012-01-26 17:22:44 +01:00
|
|
|
</div>
|
|
|
|
<div id="otherusers">
|
|
|
|
<div id="guestprompts"></div>
|
|
|
|
<table id="otheruserstable" cellspacing="0" cellpadding="0" border="0">
|
|
|
|
<tr><td></td></tr>
|
|
|
|
</table>
|
2012-04-16 15:13:07 +02:00
|
|
|
<div id="nootherusers"></div>
|
2012-01-26 17:22:44 +01:00
|
|
|
</div>
|
|
|
|
<div id="userlistbuttonarea"></div>
|
|
|
|
</div>
|
2011-12-06 18:54:57 +01:00
|
|
|
|
2012-01-26 17:22:44 +01:00
|
|
|
<div id="editorcontainerbox">
|
|
|
|
<div id="editorcontainer"></div>
|
2012-07-19 11:34:14 +02:00
|
|
|
<div id="editorloadingbox">
|
2012-12-02 18:03:56 +01:00
|
|
|
<div id="passwordRequired">
|
2012-12-03 12:35:06 +01:00
|
|
|
<p data-l10n-id="pad.passwordRequired">You need a password to access this pad</p>
|
2012-12-03 14:10:32 +01:00
|
|
|
<form class='passForm' method='POST'>
|
2012-12-02 18:03:56 +01:00
|
|
|
<input id='passwordinput' type='password' name='password'><input type='submit' value='Submit'>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div id="permissionDenied">
|
2012-12-03 12:35:06 +01:00
|
|
|
<p data-l10n-id="pad.permissionDenied">You do not have permission to access this pad</p>
|
2012-12-02 18:03:56 +01:00
|
|
|
</div>
|
|
|
|
<div id="wrongPassword">
|
2012-12-03 12:35:06 +01:00
|
|
|
<p data-l10n-id="pad.wrongPassword">Your password was wrong</p>
|
2012-12-02 18:03:56 +01:00
|
|
|
</div>
|
|
|
|
<p data-l10n-id="pad.loading" id="loading">Loading...</p>
|
2012-07-19 11:34:14 +02:00
|
|
|
<noscript><strong>Sorry, you have to enable Javascript in order to use this.</strong></noscript>
|
|
|
|
</div>
|
2012-01-26 17:22:44 +01:00
|
|
|
</div>
|
2011-12-06 18:54:57 +01:00
|
|
|
|
2012-04-29 01:00:31 +02:00
|
|
|
<div id="settings" class="popup">
|
2012-11-12 17:24:14 +01:00
|
|
|
<h1 data-l10n-id="pad.settings.padSettings"></h1>
|
2012-02-27 22:06:46 +01:00
|
|
|
<div class="column">
|
2012-04-12 20:24:38 +02:00
|
|
|
<% e.begin_block("mySettings"); %>
|
2012-11-12 17:24:14 +01:00
|
|
|
<h2 data-l10n-id="pad.settings.myView"></h2>
|
2012-01-27 02:00:14 +01:00
|
|
|
<p>
|
2012-01-28 17:38:52 +01:00
|
|
|
<input type="checkbox" id="options-stickychat" onClick="chat.stickToScreen();">
|
2012-11-12 17:24:14 +01:00
|
|
|
<label for="options-stickychat" data-l10n-id="pad.settings.stickychat"></label>
|
2012-01-27 02:00:14 +01:00
|
|
|
</p>
|
|
|
|
<p>
|
2012-02-27 16:24:36 +01:00
|
|
|
<input type="checkbox" id="options-colorscheck">
|
2012-11-12 17:24:14 +01:00
|
|
|
<label for="options-colorscheck" data-l10n-id="pad.settings.colorcheck"></label>
|
2012-01-27 02:00:14 +01:00
|
|
|
</p>
|
|
|
|
<p>
|
2012-01-28 17:38:52 +01:00
|
|
|
<input type="checkbox" id="options-linenoscheck" checked>
|
2012-11-12 17:24:14 +01:00
|
|
|
<label for="options-linenoscheck" data-l10n-id="pad.settings.linenocheck"></label>
|
2012-01-27 02:00:14 +01:00
|
|
|
</p>
|
2012-04-12 20:24:38 +02:00
|
|
|
<% e.end_block(); %>
|
2012-11-14 14:26:49 +01:00
|
|
|
<table>
|
|
|
|
<% e.begin_block("mySettings.dropdowns"); %>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<label for="viewfontmenu" data-l10n-id="pad.settings.fontType">Font type:</label>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<select id="viewfontmenu">
|
|
|
|
<option value="normal" data-l10n-id="pad.settings.fontType.normal"></option>
|
|
|
|
<option value="monospace" data-l10n-id="pad.settings.fontType.monospaced"></option>
|
|
|
|
</select>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<label for="languagemenu" data-l10n-id="pad.settings.language">Language:</label>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<select id="languagemenu">
|
|
|
|
<% for (lang in langs) { %>
|
2012-11-20 19:46:17 +01:00
|
|
|
<option value="<%=lang%>"><%=langs[lang].nativeName%></option>
|
2012-11-14 14:26:49 +01:00
|
|
|
<% } %>
|
|
|
|
</select>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% e.end_block(); %>
|
|
|
|
</table>
|
2012-01-27 02:00:14 +01:00
|
|
|
</div>
|
2012-02-27 22:06:46 +01:00
|
|
|
<div class="column">
|
2012-04-12 20:24:38 +02:00
|
|
|
<% e.begin_block("globalSettings"); %>
|
2012-11-12 17:24:14 +01:00
|
|
|
<h2 data-l10n-id="pad.settings.globalView"></h2>
|
2012-04-12 20:24:38 +02:00
|
|
|
<% e.end_block(); %>
|
2012-01-27 02:00:14 +01:00
|
|
|
</div>
|
2012-01-28 17:38:52 +01:00
|
|
|
</div>
|
2011-12-06 18:54:57 +01:00
|
|
|
|
2012-01-28 17:38:52 +01:00
|
|
|
<div id="importexport" class="popup">
|
2012-11-12 17:24:14 +01:00
|
|
|
<h1 data-l10n-id="pad.importExport.import_export"></h1>
|
2012-05-17 12:03:38 +02:00
|
|
|
<div class="column acl-write">
|
2012-04-12 20:24:38 +02:00
|
|
|
<% e.begin_block("importColumn"); %>
|
2012-11-26 03:18:47 +01:00
|
|
|
<h2 data-l10n-id="pad.importExport.import"></h2>
|
2012-12-23 16:31:50 +01:00
|
|
|
<div class="importmessage" id="importmessageabiword" data-l10n-id="pad.importExport.abiword.innerHTML"></div><br>
|
2012-01-26 17:22:44 +01:00
|
|
|
<form id="importform" method="post" action="" target="importiframe" enctype="multipart/form-data">
|
2012-04-16 15:13:07 +02:00
|
|
|
<div class="importformdiv" id="importformfilediv">
|
2012-12-05 15:02:32 +01:00
|
|
|
<input type="file" name="file" size="10" id="importfileinput">
|
2012-04-16 15:13:07 +02:00
|
|
|
<div class="importmessage" id="importmessagefail"></div>
|
|
|
|
</div>
|
2012-02-24 13:23:31 +01:00
|
|
|
<div id="import"></div>
|
2012-12-09 17:34:32 +01:00
|
|
|
<div class="importmessage" id="importmessagesuccess" data-l10n-id="pad.importExport.importSuccessful"></div>
|
2012-04-16 15:13:07 +02:00
|
|
|
<div class="importformdiv" id="importformsubmitdiv">
|
|
|
|
<input type="hidden" name="padId" value="blpmaXT35R">
|
|
|
|
<span class="nowrap">
|
|
|
|
<input type="submit" name="submit" value="Import Now" disabled="disabled" id="importsubmitinput">
|
|
|
|
<img alt="" id="importstatusball" src="../static/img/loading.gif" align="top">
|
|
|
|
<img alt="" id="importarrow" src="../static/img/leftarrow.png" align="top">
|
|
|
|
</span>
|
|
|
|
</div>
|
2012-01-26 17:22:44 +01:00
|
|
|
</form>
|
2012-04-12 20:24:38 +02:00
|
|
|
<% e.end_block(); %>
|
2012-01-26 17:22:44 +01:00
|
|
|
</div>
|
2012-02-27 22:06:46 +01:00
|
|
|
<div class="column">
|
2012-11-12 17:24:14 +01:00
|
|
|
<h2 data-l10n-id="pad.importExport.export"></h2>
|
2012-04-12 20:24:38 +02:00
|
|
|
<% e.begin_block("exportColumn"); %>
|
2012-11-12 17:24:14 +01:00
|
|
|
<a id="exporthtmla" target="_blank" class="exportlink"><div class="exporttype" id="exporthtml" data-l10n-id="pad.importExport.exporthtml"></div></a>
|
|
|
|
<a id="exportplaina" target="_blank" class="exportlink"><div class="exporttype" id="exportplain" data-l10n-id="pad.importExport.exportplain"></div></a>
|
|
|
|
<a id="exportworda" target="_blank" class="exportlink"><div class="exporttype" id="exportword" data-l10n-id="pad.importExport.exportword"></div></a>
|
|
|
|
<a id="exportpdfa" target="_blank" class="exportlink"><div class="exporttype" id="exportpdf" data-l10n-id="pad.importExport.exportpdf"></div></a>
|
|
|
|
<a id="exportopena" target="_blank" class="exportlink"><div class="exporttype" id="exportopen" data-l10n-id="pad.importExport.exportopen"></div></a>
|
|
|
|
<a id="exportdokuwikia" target="_blank" class="exportlink"><div class="exporttype" id="exportdokuwiki" data-l10n-id="pad.importExport.exportdokuwiki"></div></a>
|
2012-04-12 20:24:38 +02:00
|
|
|
<% e.end_block(); %>
|
2012-01-26 17:22:44 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2012-07-13 08:23:22 +02:00
|
|
|
|
|
|
|
<div id="connectivity" class="popup">
|
|
|
|
<% e.begin_block("modals"); %>
|
|
|
|
<div class="connected visible">
|
2012-11-12 17:24:14 +01:00
|
|
|
<h2 data-l10n-id="pad.modals.connected"></h2>
|
2012-07-13 08:23:22 +02:00
|
|
|
</div>
|
|
|
|
<div class="reconnecting">
|
2012-11-12 17:24:14 +01:00
|
|
|
<h1 data-l10n-id="pad.modals.reconnecting"></h1>
|
2012-10-24 19:48:13 +02:00
|
|
|
<p><img alt="" border="0" src="../static/img/connectingbar.gif" /></p>
|
2012-07-13 08:23:22 +02:00
|
|
|
</div>
|
|
|
|
<div class="userdup">
|
2012-12-23 16:31:50 +01:00
|
|
|
<h1 data-l10n-id="pad.modals.userdup"></h1>
|
2012-11-12 17:24:14 +01:00
|
|
|
<h2 data-l10n-id="pad.modals.userdup.explanation"></h2>
|
2012-12-23 16:31:50 +01:00
|
|
|
<p data-l10n-id="pad.modals.userdup.advice"></p>
|
2012-11-12 17:24:14 +01:00
|
|
|
<button id="forcereconnect" data-l10n-id="pad.modals.forcereconnect"></button>
|
2012-07-13 08:23:22 +02:00
|
|
|
</div>
|
|
|
|
<div class="unauth">
|
2012-11-12 17:24:14 +01:00
|
|
|
<h1 data-l10n-id="pad.modals.unauth"></h1>
|
|
|
|
<p data-l10n-id="pad.modals.unauth.explanation"></p>
|
|
|
|
<button id="forcereconnect" data-l10n-id="pad.modals.forcereconnect"></button>
|
2012-07-13 08:23:22 +02:00
|
|
|
</div>
|
|
|
|
<div class="looping">
|
2012-11-12 17:24:14 +01:00
|
|
|
<h1 data-l10n-id="pad.modals.looping"></h1>
|
|
|
|
<h2 data-l10n-id="pad.modals.looping.explanation"></h2>
|
|
|
|
<p data-l10n-id="pad.modals.looping.cause"></p>
|
2012-07-13 08:23:22 +02:00
|
|
|
</div>
|
|
|
|
<div class="initsocketfail">
|
2012-11-12 17:24:14 +01:00
|
|
|
<h1 data-l10n-id="pad.modals.initsocketfail"></h1>
|
|
|
|
<h2 data-l10n-id="pad.modals.initsocketfail.explanation"></h2>
|
|
|
|
<p data-l10n-id="pad.modals.initsocketfail.cause"></p>
|
2012-07-13 08:23:22 +02:00
|
|
|
</div>
|
|
|
|
<div class="slowcommit">
|
2012-11-12 17:24:14 +01:00
|
|
|
<h1 data-l10n-id="pad.modals.slowcommit"></h1>
|
|
|
|
<h2 data-l10n-id="pad.modals.slowcommit.explanation"></h2>
|
|
|
|
<p data-l10n-id="pad.modals.slowcommit.cause"></p>
|
|
|
|
<button id="forcereconnect" data-l10n-id="pad.modals.forcereconnect"></button>
|
2012-07-13 08:23:22 +02:00
|
|
|
</div>
|
|
|
|
<div class="deleted">
|
2012-11-12 17:24:14 +01:00
|
|
|
<h1 data-l10n-id="pad.modals.deleted"></h1>
|
|
|
|
<p data-l10n-id="pad.modals.deleted.explanation"></p>
|
2012-07-13 08:23:22 +02:00
|
|
|
</div>
|
|
|
|
<div class="disconnected">
|
2012-11-12 17:24:14 +01:00
|
|
|
<h1 data-l10n-id="pad.modals.disconnected"></h1>
|
|
|
|
<h2 data-l10n-id="pad.modals.disconnected.explanation"></h2>
|
|
|
|
<p data-l10n-id="pad.modals.disconnected.cause"></p>
|
|
|
|
<button id="forcereconnect" data-l10n-id="pad.modals.forcereconnect"></button>
|
2012-07-13 08:23:22 +02:00
|
|
|
</div>
|
|
|
|
<form id="reconnectform" method="post" action="/ep/pad/reconnect" accept-charset="UTF-8" style="display: none;">
|
|
|
|
<input type="hidden" class="padId" name="padId">
|
|
|
|
<input type="hidden" class="diagnosticInfo" name="diagnosticInfo">
|
|
|
|
<input type="hidden" class="missedChanges" name="missedChanges">
|
|
|
|
</form>
|
|
|
|
<% e.end_block(); %>
|
|
|
|
</div>
|
2011-12-06 18:54:57 +01:00
|
|
|
|
2012-01-28 17:38:52 +01:00
|
|
|
<div id="embed" class="popup">
|
2012-04-12 20:24:38 +02:00
|
|
|
<% e.begin_block("embedPopup"); %>
|
2012-05-17 12:03:38 +02:00
|
|
|
<div id="embedreadonly" class="right acl-write">
|
2012-10-04 22:16:58 +02:00
|
|
|
<input type="checkbox" id="readonlyinput">
|
2012-11-12 17:24:14 +01:00
|
|
|
<label for="readonlyinput" data-l10n-id="pad.share.readonly"></label>
|
2012-01-26 17:22:44 +01:00
|
|
|
</div>
|
2012-11-12 17:24:14 +01:00
|
|
|
<h1 data-l10n-id="pad.share"></h1>
|
2012-01-26 17:22:44 +01:00
|
|
|
<div id="linkcode">
|
2012-11-12 17:24:14 +01:00
|
|
|
<h2 data-l10n-id="pad.share.link"></h2>
|
2012-01-28 17:38:52 +01:00
|
|
|
<input id="linkinput" type="text" value="">
|
2012-01-26 17:22:44 +01:00
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<div id="embedcode">
|
2012-11-12 17:24:14 +01:00
|
|
|
<h2 data-l10n-id="pad.share.emebdcode"></h2>
|
2012-01-28 17:38:52 +01:00
|
|
|
<input id="embedinput" type="text" value="">
|
2012-01-26 17:22:44 +01:00
|
|
|
</div>
|
2012-05-01 12:02:12 +02:00
|
|
|
<% e.end_block(); %>
|
2012-01-26 17:22:44 +01:00
|
|
|
</div>
|
2011-12-06 18:54:57 +01:00
|
|
|
|
2012-01-26 17:22:44 +01:00
|
|
|
<div id="chatthrob"></div>
|
2011-12-06 18:54:57 +01:00
|
|
|
|
2012-12-23 16:31:50 +01:00
|
|
|
<div id="chaticon" onclick="chat.show();return false;">
|
2012-11-12 17:24:14 +01:00
|
|
|
<span id="chatlabel" data-l10n-id="pad.chat"></span>
|
2012-02-28 21:21:59 +01:00
|
|
|
<span class="buttonicon buttonicon-chat"></span>
|
2012-01-26 17:22:44 +01:00
|
|
|
<span id="chatcounter">0</span>
|
|
|
|
</div>
|
2011-12-06 18:54:57 +01:00
|
|
|
|
2012-01-26 17:22:44 +01:00
|
|
|
<div id="chatbox">
|
2012-11-12 17:24:14 +01:00
|
|
|
<div id="titlebar"><span id ="titlelabel" data-l10n-id="pad.chat"></span><a id="titlecross" onClick="chat.hide();return false;">- </a></div>
|
2012-01-26 17:22:44 +01:00
|
|
|
<div id="chattext" class="authorColors"></div>
|
|
|
|
<div id="chatinputbox">
|
|
|
|
<form>
|
2012-10-29 20:29:30 +01:00
|
|
|
<input id="chatinput" type="text" maxlength="999">
|
2012-01-26 17:22:44 +01:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
2011-12-06 18:54:57 +01:00
|
|
|
|
2012-01-26 17:22:44 +01:00
|
|
|
<div id="focusprotector"> </div>
|
2011-12-06 18:54:57 +01:00
|
|
|
|
2012-04-12 20:24:38 +02:00
|
|
|
<% e.end_block(); %>
|
2012-04-16 15:13:07 +02:00
|
|
|
|
2012-03-21 19:29:06 +01:00
|
|
|
<% e.begin_block("scripts"); %>
|
2012-07-23 14:12:36 +02:00
|
|
|
<script type="text/javascript">
|
2012-07-23 15:03:20 +02:00
|
|
|
(function() {
|
2012-11-14 19:38:35 +01:00
|
|
|
// Display errors on page load to the user
|
|
|
|
// (Gets overridden by padutils.setupGlobalExceptionHandler)
|
2012-07-23 15:03:20 +02:00
|
|
|
var originalHandler = window.onerror;
|
|
|
|
window.onerror = function(msg, url, line) {
|
|
|
|
var box = document.getElementById('editorloadingbox');
|
|
|
|
box.innerHTML = '<p><b>An error occured while loading the pad</b></p>'
|
|
|
|
+ '<p><b>'+msg+'</b> '
|
|
|
|
+ '<small>in '+ url +' (line '+ line +')</small></p>';
|
|
|
|
// call original error handler
|
|
|
|
if(typeof(originalHandler) == 'function') originalHandler.call(null, arguments);
|
|
|
|
};
|
|
|
|
})();
|
2012-07-23 14:12:36 +02:00
|
|
|
</script>
|
2012-11-14 19:38:35 +01:00
|
|
|
|
2012-04-16 15:19:53 +02:00
|
|
|
<script type="text/javascript" src="../static/js/require-kernel.js"></script>
|
|
|
|
<script type="text/javascript" src="../socket.io/socket.io.js"></script>
|
2012-05-28 22:55:19 +02:00
|
|
|
|
|
|
|
<!-- Include base packages manually (this help with debugging) -->
|
2012-04-16 15:19:53 +02:00
|
|
|
<script type="text/javascript" src="../javascripts/lib/ep_etherpad-lite/static/js/pad.js?callback=require.define"></script>
|
2012-05-28 22:52:04 +02:00
|
|
|
<script type="text/javascript" src="../javascripts/lib/ep_etherpad-lite/static/js/ace2_common.js?callback=require.define"></script>
|
2012-05-28 22:55:19 +02:00
|
|
|
|
2012-06-13 12:56:09 +02:00
|
|
|
<script type="text/javascript" src="../static/custom/pad.js"></script>
|
2012-06-12 23:20:54 +02:00
|
|
|
|
2012-05-28 22:55:19 +02:00
|
|
|
<!-- Bootstrap page -->
|
2012-04-16 15:19:53 +02:00
|
|
|
<script type="text/javascript">
|
|
|
|
var clientVars = {};
|
|
|
|
(function () {
|
2012-04-29 19:54:38 +02:00
|
|
|
var pathComponents = location.pathname.split('/');
|
|
|
|
|
|
|
|
// Strip 'p' and the padname from the pathname and set as baseURL
|
|
|
|
var baseURL = pathComponents.slice(0,pathComponents.length-2).join('/') + '/';
|
|
|
|
|
2012-04-25 10:23:58 +02:00
|
|
|
require.setRootURI(baseURL + "javascripts/src");
|
|
|
|
require.setLibraryURI(baseURL + "javascripts/lib");
|
2012-04-16 15:19:53 +02:00
|
|
|
require.setGlobalKeyPath("require");
|
2011-12-06 18:54:57 +01:00
|
|
|
|
2012-05-28 22:50:55 +02:00
|
|
|
$ = jQuery = require('ep_etherpad-lite/static/js/rjquery').jQuery; // Expose jQuery #HACK
|
|
|
|
|
2012-05-28 23:01:05 +02:00
|
|
|
if ((!$.browser.msie) && (!($.browser.mozilla && $.browser.version.indexOf("1.8.") == 0))) {
|
|
|
|
document.domain = document.domain; // for comet
|
|
|
|
}
|
|
|
|
|
2012-05-29 03:39:32 +02:00
|
|
|
var plugins = require('ep_etherpad-lite/static/js/pluginfw/client_plugins');
|
2012-07-26 12:24:59 +02:00
|
|
|
var hooks = require('ep_etherpad-lite/static/js/pluginfw/hooks');
|
|
|
|
|
2012-04-25 10:23:58 +02:00
|
|
|
plugins.baseURL = baseURL;
|
2012-04-16 15:19:53 +02:00
|
|
|
plugins.update(function () {
|
2012-05-29 03:58:55 +02:00
|
|
|
hooks.plugins = plugins;
|
|
|
|
|
2012-07-26 12:24:59 +02:00
|
|
|
// Call documentReady hook
|
|
|
|
$(function() {
|
|
|
|
hooks.aCallAll('documentReady');
|
|
|
|
});
|
|
|
|
|
2012-04-25 10:23:58 +02:00
|
|
|
var pad = require('ep_etherpad-lite/static/js/pad');
|
|
|
|
pad.baseURL = baseURL;
|
|
|
|
pad.init();
|
2012-04-16 15:19:53 +02:00
|
|
|
});
|
2012-03-11 00:50:15 +01:00
|
|
|
|
2012-04-16 15:19:53 +02:00
|
|
|
/* TODO: These globals shouldn't exist. */
|
|
|
|
pad = require('ep_etherpad-lite/static/js/pad').pad;
|
|
|
|
chat = require('ep_etherpad-lite/static/js/chat').chat;
|
|
|
|
padeditbar = require('ep_etherpad-lite/static/js/pad_editbar').padeditbar;
|
|
|
|
padimpexp = require('ep_etherpad-lite/static/js/pad_impexp').padimpexp;
|
|
|
|
}());
|
|
|
|
</script>
|
2012-03-21 19:29:06 +01:00
|
|
|
<% e.end_block(); %>
|
2011-05-28 19:09:17 +02:00
|
|
|
</html>
|