2012-11-02 12:30:57 +01:00
|
|
|
<%
|
2012-11-14 09:20:16 +00:00
|
|
|
var settings = require("ep_etherpad-lite/node/utils/Settings")
|
|
|
|
, langs = require("ep_etherpad-lite/node/hooks/i18n").availableLangs
|
2012-11-02 12:30:57 +01:00
|
|
|
%>
|
2011-07-24 09:32:32 -07:00
|
|
|
<!doctype html>
|
2020-04-09 08:40:05 +02:00
|
|
|
<html class="<%=settings.skinVariants%>">
|
2012-11-14 15:31:43 +01:00
|
|
|
<title data-l10n-id="timeslider.pageTitle" data-l10n-args='{ "appTitle": "<%=settings.title%>" }'><%=settings.title%> Timeslider</title>
|
2012-10-17 17:53:28 +01: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-06-20 11:44:04 +01:00
|
|
|
<head>
|
2011-07-24 09:32:32 -07:00
|
|
|
<meta charset="utf-8">
|
2011-07-24 09:34:38 -07:00
|
|
|
<meta name="robots" content="noindex, nofollow">
|
2016-08-23 22:11:11 +02:00
|
|
|
<meta name="referrer" content="no-referrer">
|
2020-04-04 12:05:52 +02:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
|
2012-11-30 22:50:54 +00:00
|
|
|
<link rel="shortcut icon" href="<%=settings.faviconTimeslider%>">
|
2013-01-13 18:23:35 +00:00
|
|
|
<% e.begin_block("timesliderStyles"); %>
|
2020-04-28 17:22:26 +02:00
|
|
|
<link rel="stylesheet" href="../../static/css/pad.css?v=<%=settings.randomVersionString%>">
|
|
|
|
<link rel="stylesheet" href="../../static/css/iframe_editor.css?v=<%=settings.randomVersionString%>">
|
|
|
|
<link rel="stylesheet" href="../../static/css/timeslider.css?v=<%=settings.randomVersionString%>">
|
|
|
|
<link rel="stylesheet" href="../../static/skins/<%=encodeURI(settings.skinName)%>/pad.css?v=<%=settings.randomVersionString%>">
|
|
|
|
<link rel="stylesheet" href="../../static/skins/<%=encodeURI(settings.skinName)%>/timeslider.css?v=<%=settings.randomVersionString%>">
|
2011-06-20 11:44:04 +01:00
|
|
|
<style type="text/css" title="dynamicsyntax"></style>
|
2013-01-13 18:23:35 +00:00
|
|
|
<% e.end_block(); %>
|
2013-01-06 12:26:00 +01:00
|
|
|
|
|
|
|
<link rel="localizations" type="application/l10n+json" href="../../locales.json" />
|
2013-02-18 18:07:01 +00:00
|
|
|
<% e.begin_block("timesliderScripts"); %>
|
2020-04-28 17:22:26 +02:00
|
|
|
<script type="text/javascript" src="../../static/js/html10n.js?v=<%=settings.randomVersionString%>"></script>
|
|
|
|
<script type="text/javascript" src="../../static/js/l10n.js?v=<%=settings.randomVersionString%>"></script>
|
2013-02-18 18:07:01 +00:00
|
|
|
<% e.end_block(); %>
|
2011-06-20 11:44:04 +01:00
|
|
|
</head>
|
|
|
|
|
2013-01-12 23:51:35 +00:00
|
|
|
<% e.begin_block("timesliderBody"); %>
|
2012-03-24 20:35:45 +01:00
|
|
|
<body id="padbody" class="timeslider limwidth">
|
2020-04-03 16:11:01 +02:00
|
|
|
|
|
|
|
<!----------------------------->
|
|
|
|
<!--------- TOOLBAR ----------->
|
|
|
|
<!----------------------------->
|
|
|
|
<div id="editbar" class="toolbar">
|
|
|
|
<% e.begin_block("timesliderTop"); %>
|
|
|
|
|
|
|
|
<!-- TITLE & TOOLBAR -->
|
|
|
|
<div class="timeslider-bar">
|
|
|
|
|
|
|
|
<div class="timeslider-title-container">
|
|
|
|
<h1 class="timeslider-title">
|
|
|
|
<span id="revision_label"></span>
|
|
|
|
<span id="revision_date"></span>
|
|
|
|
</h1>
|
|
|
|
<p class="timeslider-subtitle">
|
2020-04-24 21:56:30 +02:00
|
|
|
<span class="authors-label" data-l10n-id="timeslider.toolbar.authors"></span>
|
2020-04-03 16:11:01 +02:00
|
|
|
<span id="authorsList" data-l10n-id="timeslider.toolbar.authorsList"></span>
|
|
|
|
</p>
|
2011-06-20 11:44:04 +01:00
|
|
|
</div>
|
|
|
|
|
2020-04-04 12:05:52 +02:00
|
|
|
<div class="editbarright menu_right">
|
2020-04-03 16:11:01 +02:00
|
|
|
<ul>
|
2020-06-27 09:52:53 +01:00
|
|
|
<% e.begin_block("timesliderEditbarRight"); %>
|
|
|
|
<%- toolbar.menu(settings.toolbar.timeslider, true, 'timeslider-right', 'timeslider') %>
|
|
|
|
<% e.end_block(); %>
|
2020-04-03 16:11:01 +02:00
|
|
|
</ul>
|
2011-06-20 11:44:04 +01:00
|
|
|
</div>
|
2012-03-24 20:35:45 +01:00
|
|
|
</div>
|
2011-06-20 11:44:04 +01:00
|
|
|
|
2020-04-03 16:11:01 +02:00
|
|
|
<!-- SLIDER -->
|
|
|
|
<div id="timeslider-wrapper">
|
|
|
|
<div id="timeslider-slider">
|
|
|
|
<div id="ui-slider-handle"></div>
|
|
|
|
<div id="ui-slider-bar"></div>
|
|
|
|
<div id="timer"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="slider-btn-container">
|
|
|
|
<button id="playpause_button_icon" class="buttonicon buttonicon-play"></button>
|
2020-04-06 11:10:04 +02:00
|
|
|
<button id="leftstep" class="stepper buttonicon buttonicon-step-backward"></button>
|
|
|
|
<button id="rightstep" class="stepper buttonicon buttonicon-step-forward"></button>
|
2020-04-03 16:11:01 +02:00
|
|
|
<!-- Left and Right star button are actually not displayed to the screen -->
|
2020-04-06 11:10:04 +02:00
|
|
|
<button id="leftstar" class="stepper buttonicon" style="display:none"></button>
|
|
|
|
<button id="rightstar" class="stepper buttonicon" style="display:none"></button>
|
2020-04-03 16:11:01 +02:00
|
|
|
</div>
|
2013-10-10 21:11:15 +02:00
|
|
|
</div>
|
2020-04-03 16:11:01 +02:00
|
|
|
|
|
|
|
|
|
|
|
<% e.end_block(); %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div id="editorcontainerbox">
|
|
|
|
|
|
|
|
<!----------------------------->
|
|
|
|
<!------- PAD CONTENT --------->
|
|
|
|
<!----------------------------->
|
|
|
|
|
|
|
|
<div id="outerdocbody">
|
|
|
|
<div id="innerdocbody">
|
|
|
|
</div>
|
2013-10-10 21:11:15 +02:00
|
|
|
</div>
|
2020-04-03 16:11:01 +02:00
|
|
|
|
|
|
|
|
|
|
|
<!------------------------->
|
|
|
|
<!-- IMPORT EXPORT POPUP -->
|
|
|
|
<!------------------------->
|
|
|
|
|
2020-04-06 11:11:08 +02:00
|
|
|
<div id="import_export" class="popup" ><div class="popup-content">
|
2020-04-03 16:11:01 +02:00
|
|
|
<div id="export">
|
2020-04-09 08:40:05 +02:00
|
|
|
<h1 data-l10n-id="timeslider.exportCurrent"></h1>
|
2020-04-06 11:10:04 +02:00
|
|
|
<% e.begin_block("exportColumn"); %>
|
|
|
|
<a id="exportetherpada" target="_blank" class="exportlink">
|
|
|
|
<span class="exporttype buttonicon buttonicon-file-powerpoint" id="exportetherpad" data-l10n-id="pad.importExport.exportetherpad"></span>
|
|
|
|
</a>
|
|
|
|
<a id="exporthtmla" target="_blank" class="exportlink">
|
|
|
|
<span class="exporttype buttonicon buttonicon-file-code" id="exporthtml" data-l10n-id="pad.importExport.exporthtml"></span>
|
|
|
|
</a>
|
|
|
|
<a id="exportplaina" target="_blank" class="exportlink">
|
|
|
|
<span class="exporttype buttonicon buttonicon-file" id="exportplain" data-l10n-id="pad.importExport.exportplain"></span>
|
|
|
|
</a>
|
|
|
|
<a id="exportworda" target="_blank" class="exportlink">
|
|
|
|
<span class="exporttype buttonicon buttonicon-file-word" id="exportword" data-l10n-id="pad.importExport.exportword"></span>
|
|
|
|
</a>
|
|
|
|
<a id="exportpdfa" target="_blank" class="exportlink">
|
|
|
|
<span class="exporttype buttonicon buttonicon-file-pdf" id="exportpdf" data-l10n-id="pad.importExport.exportpdf"></span>
|
|
|
|
</a>
|
|
|
|
<a id="exportopena" target="_blank" class="exportlink">
|
|
|
|
<span class="exporttype buttonicon buttonicon-file-alt" id="exportopen" data-l10n-id="pad.importExport.exportopen"></span>
|
|
|
|
</a>
|
|
|
|
<% e.end_block(); %>
|
2020-04-03 16:11:01 +02:00
|
|
|
</div>
|
2020-04-06 11:11:08 +02:00
|
|
|
</div></div>
|
2020-04-03 16:11:01 +02:00
|
|
|
|
|
|
|
|
|
|
|
<!---------------------------------------------------->
|
|
|
|
<!-- CONNECTIVITY POPUP (when you get disconnected) -->
|
|
|
|
<!---------------------------------------------------->
|
|
|
|
|
2020-04-06 11:11:08 +02:00
|
|
|
<div id="connectivity" class="popup"><div class="popup-content">
|
2020-04-03 16:11:01 +02:00
|
|
|
<% e.begin_block("modals"); %>
|
|
|
|
<div class="connected visible">
|
|
|
|
<h2 data-l10n-id="pad.modals.connected"></h2>
|
|
|
|
</div>
|
|
|
|
<div class="reconnecting">
|
|
|
|
<h1 data-l10n-id="pad.modals.reconnecting"></h1>
|
|
|
|
<p class="loadingAnimation"></p>
|
|
|
|
</div>
|
|
|
|
<div class="userdup">
|
|
|
|
<h1 data-l10n-id="pad.modals.userdup"></h1>
|
|
|
|
<h2 data-l10n-id="pad.modals.userdup.explanation"></h2>
|
|
|
|
<p data-l10n-id="pad.modals.userdup.advice"></p>
|
2020-04-04 13:06:12 +02:00
|
|
|
<button id="forcereconnect" class="btn btn-primary" data-l10n-id="pad.modals.forcereconnect"></button>
|
2020-04-03 16:11:01 +02:00
|
|
|
</div>
|
|
|
|
<div class="unauth">
|
|
|
|
<h1 data-l10n-id="pad.modals.unauth"></h1>
|
|
|
|
<p data-l10n-id="pad.modals.unauth.explanation"></p>
|
2020-04-04 13:06:12 +02:00
|
|
|
<button id="forcereconnect" class="btn btn-primary" data-l10n-id="pad.modals.forcereconnect"></button>
|
2020-04-03 16:11:01 +02:00
|
|
|
</div>
|
|
|
|
<div class="looping">
|
|
|
|
<h1 data-l10n-id="pad.modals.disconnected"></h1>
|
|
|
|
<h2 data-l10n-id="pad.modals.looping.explanation"></h2>
|
|
|
|
<p data-l10n-id="pad.modals.looping.cause"></p>
|
|
|
|
</div>
|
|
|
|
<div class="initsocketfail">
|
|
|
|
<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>
|
|
|
|
</div>
|
|
|
|
<div class="slowcommit">
|
|
|
|
<h1 data-l10n-id="pad.modals.disconnected"></h1>
|
|
|
|
<h2 data-l10n-id="pad.modals.slowcommit.explanation"></h2>
|
|
|
|
<p data-l10n-id="pad.modals.slowcommit.cause"></p>
|
2020-04-04 13:06:12 +02:00
|
|
|
<button id="forcereconnect" class="btn btn-primary" data-l10n-id="pad.modals.forcereconnect"></button>
|
2020-04-03 16:11:01 +02:00
|
|
|
</div>
|
|
|
|
<div class="badChangeset">
|
|
|
|
<h1 data-l10n-id="pad.modals.disconnected"></h1>
|
|
|
|
<h2 data-l10n-id="pad.modals.badChangeset.explanation"></h2>
|
|
|
|
<p data-l10n-id="pad.modals.badChangeset.cause"></p>
|
2020-04-04 13:06:12 +02:00
|
|
|
<button id="forcereconnect" class="btn btn-primary" data-l10n-id="pad.modals.forcereconnect"></button>
|
2020-04-03 16:11:01 +02:00
|
|
|
</div>
|
|
|
|
<div class="corruptPad">
|
|
|
|
<h1 data-l10n-id="pad.modals.disconnected"></h1>
|
|
|
|
<h2 data-l10n-id="pad.modals.corruptPad.explanation"></h2>
|
|
|
|
<p data-l10n-id="pad.modals.corruptPad.cause"></p>
|
|
|
|
</div>
|
|
|
|
<div class="deleted">
|
|
|
|
<h1 data-l10n-id="pad.modals.deleted"></h1>
|
|
|
|
<p data-l10n-id="pad.modals.deleted.explanation"></p>
|
|
|
|
</div>
|
|
|
|
<div class="disconnected">
|
|
|
|
<% e.begin_block("disconnected"); %>
|
|
|
|
<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>
|
2020-04-04 13:06:12 +02:00
|
|
|
<button id="forcereconnect" class="btn btn-primary" data-l10n-id="pad.modals.forcereconnect"></button>
|
2020-04-03 16:11:01 +02:00
|
|
|
<% e.end_block(); %>
|
|
|
|
</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(); %>
|
2020-04-06 11:11:08 +02:00
|
|
|
</div></div>
|
2011-12-18 00:18:35 -05:00
|
|
|
|
2020-04-03 16:11:01 +02:00
|
|
|
|
|
|
|
<!---------------------------------->
|
|
|
|
<!-- SETTINGS POPUP (change font) -->
|
|
|
|
<!---------------------------------->
|
|
|
|
|
2020-04-06 11:11:08 +02:00
|
|
|
<div id="settings" class="popup"><div class="popup-content">
|
2020-04-09 08:40:05 +02:00
|
|
|
<h1 data-l10n-id="pad.settings.padSettings"></h1>
|
2015-04-05 15:18:36 +01:00
|
|
|
<label for="viewfontmenu" data-l10n-id="pad.settings.fontType">Font type:</label>
|
|
|
|
<select id="viewfontmenu">
|
2020-04-09 08:40:05 +02:00
|
|
|
<option value="" data-l10n-id="pad.settings.fontType.normal">Normal</option>
|
2020-06-02 11:25:43 +02:00
|
|
|
<%= fonts = ["Quicksand", "Roboto", "Alegreya", "PlayfairDisplay", "Montserrat", "OpenDyslexic", "RobotoMono"] %>
|
2020-04-09 08:40:05 +02:00
|
|
|
<% for(var i=0; i < fonts.length; i++) { %>
|
|
|
|
<option value="<%=fonts[i]%>"><%=fonts[i]%></option>
|
|
|
|
<% } %>
|
2015-04-05 15:18:36 +01:00
|
|
|
</select>
|
2020-04-06 11:11:08 +02:00
|
|
|
</div></div>
|
2020-04-03 16:11:01 +02:00
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
<!----------------------------->
|
|
|
|
<!-------- JAVASCRIPT --------->
|
|
|
|
<!----------------------------->
|
2012-01-26 21:25:02 -08:00
|
|
|
|
2020-04-28 17:22:26 +02:00
|
|
|
<script type="text/javascript" src="../../static/js/require-kernel.js?v=<%=settings.randomVersionString%>"></script>
|
|
|
|
<script type="text/javascript" src="../../socket.io/socket.io.js?v=<%=settings.randomVersionString%>"></script>
|
2012-05-28 13:55:19 -07:00
|
|
|
|
|
|
|
<!-- Include base packages manually (this help with debugging) -->
|
2020-04-28 17:22:26 +02:00
|
|
|
<script type="text/javascript" src="../../javascripts/lib/ep_etherpad-lite/static/js/timeslider.js?callback=require.define&v=<%=settings.randomVersionString%>"></script>
|
|
|
|
<script type="text/javascript" src="../../javascripts/lib/ep_etherpad-lite/static/js/ace2_common.js?callback=require.define&v=<%=settings.randomVersionString%>"></script>
|
2012-05-28 13:55:19 -07:00
|
|
|
|
2020-04-28 17:22:26 +02:00
|
|
|
<script type="text/javascript" src="../../static/skins/<%=encodeURI(settings.skinName)%>/timeslider.js?v=<%=settings.randomVersionString%>"></script>
|
2012-04-25 10:23:58 +02:00
|
|
|
|
2012-05-28 13:55:19 -07:00
|
|
|
<!-- Bootstrap -->
|
2012-01-31 22:32:46 -08:00
|
|
|
<script type="text/javascript" >
|
2016-09-20 09:06:07 +02:00
|
|
|
// @license magnet:?xt=urn:btih:8e4f440f4c65981c5bf93c76d35135ba5064d8b7&dn=apache-2.0.txt
|
2012-01-26 21:25:02 -08:00
|
|
|
var clientVars = {};
|
2015-12-01 11:53:49 -03:00
|
|
|
var BroadcastSlider;
|
2012-01-26 21:25:02 -08:00
|
|
|
(function () {
|
2012-04-29 19:54:38 +02:00
|
|
|
var pathComponents = location.pathname.split('/');
|
2015-12-01 11:53:49 -03:00
|
|
|
|
2012-04-29 19:54:38 +02:00
|
|
|
// Strip 'p', the padname and 'timeslider' from the pathname and set as baseURL
|
|
|
|
var baseURL = pathComponents.slice(0,pathComponents.length-3).join('/') + '/';
|
2015-12-01 11:53:49 -03:00
|
|
|
|
|
|
|
|
2012-04-25 10:23:58 +02:00
|
|
|
require.setRootURI(baseURL + "javascripts/src");
|
|
|
|
require.setLibraryURI(baseURL + "javascripts/lib");
|
2012-01-30 21:49:04 -08:00
|
|
|
require.setGlobalKeyPath("require");
|
2012-01-30 19:24:50 -08:00
|
|
|
|
2012-05-28 13:50:55 -07:00
|
|
|
$ = jQuery = require('ep_etherpad-lite/static/js/rjquery').jQuery; // Expose jQuery #HACK
|
2015-12-01 11:53:49 -03:00
|
|
|
browser = require('ep_etherpad-lite/static/js/browser');
|
2012-05-28 13:50:55 -07:00
|
|
|
|
2012-05-28 18:39:32 -07:00
|
|
|
var plugins = require('ep_etherpad-lite/static/js/pluginfw/client_plugins');
|
2013-02-18 21:03:52 +00:00
|
|
|
var socket = require('ep_etherpad-lite/static/js/timeslider').socket;
|
2013-04-09 15:58:18 +01:00
|
|
|
BroadcastSlider = require('ep_etherpad-lite/static/js/timeslider').BroadcastSlider;
|
2012-04-25 10:23:58 +02:00
|
|
|
plugins.baseURL = baseURL;
|
2015-12-01 11:53:49 -03:00
|
|
|
|
2012-03-01 20:18:03 +01:00
|
|
|
plugins.update(function () {
|
2012-05-28 18:58:55 -07:00
|
|
|
var hooks = require('ep_etherpad-lite/static/js/pluginfw/hooks');
|
|
|
|
hooks.plugins = plugins;
|
|
|
|
|
2012-04-25 10:23:58 +02:00
|
|
|
var timeslider = require('ep_etherpad-lite/static/js/timeslider')
|
|
|
|
timeslider.baseURL = baseURL;
|
|
|
|
timeslider.init();
|
2012-03-01 20:18:03 +01:00
|
|
|
|
|
|
|
/* TODO: These globals shouldn't exist. */
|
|
|
|
padeditbar = require('ep_etherpad-lite/static/js/pad_editbar').padeditbar;
|
|
|
|
padimpexp = require('ep_etherpad-lite/static/js/pad_impexp').padimpexp;
|
2014-03-30 12:30:18 +02:00
|
|
|
|
|
|
|
padeditbar.init()
|
2012-03-01 20:18:03 +01:00
|
|
|
});
|
2012-01-26 21:25:02 -08:00
|
|
|
})();
|
2016-09-20 09:06:07 +02:00
|
|
|
// @license-end
|
2012-01-26 21:25:02 -08:00
|
|
|
</script>
|
2013-01-12 23:51:35 +00:00
|
|
|
<% e.end_block(); %>
|
2016-09-20 09:06:07 +02:00
|
|
|
<div style="display:none"><a href="/javascript" data-jslicense="1">JavaScript license information</a></div>
|
2011-06-20 11:44:04 +01:00
|
|
|
</html>
|