summaryrefslogtreecommitdiff
path: root/src/templates/timeslider.html
blob: 8331062f5bf5f78672a05ebbee8fc7edf01e955b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="robots" content="noindex, nofollow">

  <title>Etherpad Lite Timeslider</title>
  <link rel="stylesheet" href="../../static/css/pad.css">
  <link rel="stylesheet" href="../../static/css/timeslider.css">
  <link rel="stylesheet" href="../../static/custom/timeslider.css">
  <style type="text/css" title="dynamicsyntax"></style>
</head>

<body id="padbody" class="timeslider limwidth">
  <div id="padpage">
    <div id="padtop">
      <div id="alertbar">
        <div id="servermsg">
          <h3>Server Notice<span id="servermsgdate"><!-- --></span>:</h3><a id=
          "hidetopmsg" href="javascript:%20void%20pad.hideServerMessage()" name=
          "hidetopmsg">hide</a>
          <p id="servermsgtext"><!-- --></p>
        </div>
      </div>

      <div id="navigation"></div>
      
      <div id="docbar" class="menu docbar">
        <table border="0" cellpadding="0" cellspacing="0" width="100%" id="docbartable"
        class="docbartable">
          <tr>
            <td><img src="../../static/img/roundcorner_left.gif" /></td>

            <td id="docbarpadtitle" class="docbarpadtitle" title=
            "Public Pad: Public Pad"><span>Public Pad</span></td>

            <td width="100%">&nbsp;</td>

            <td><img src="../../static/img/roundcorner_right.gif" /></td>
          </tr>
        </table>
      </div><!-- /docbar -->
    </div>
    
    <div id="timeslider-top">
      <div id="timeslider-wrapper">
        <div id="timeslider" unselectable="on" style="display: none">
          <div id="timeslider-left"></div>
          <div id="timeslider-right"></div>
          <div id="timer"></div>
          <div id="timeslider-slider">
            <div id="ui-slider-handle"></div>
            <div id="ui-slider-bar"></div>
          </div>
          <div id="playpause_button">
            <div id="playpause_button_icon" class=""></div>
          </div>
          <div id="steppers">
            <div class="stepper" id="leftstep"></div>
            <div class="stepper" id="rightstep"></div>
          </div>
        </div>
      </div>

      <div class="timeslider-bar">
          <div class="editbarright toolbar" id="editbar">
            <ul>
              <li onClick="window.padeditbar.toolbarClick('import_export');return false;">
                <a id="exportlink" title="Export to different document formats">
                  <div class="buttonicon buttonicon-import_export"></div>
                </a>
              </li>
            </ul>
            <a id="returnbutton">Return to pad</a>
          </div>

          <div>
              <h1>
                <span id="revision_label"></span>
                <span id="revision_date"></span>
              </h1>
              <p>Authors:
              <span id="authorsList">
                <span>No Authors</span>
              </span> </p>
          </div>
      </div>
    </div>

    <div id="padmain">
      <div id="padeditor">
        <div id="editorcontainerbox">
          <div id="padcontent">
          </div>
        </div>
      </div><!-- /padeditor -->
    </div><!-- /padmain -->
  </div><!-- /padpage -->

  <div id="modaloverlay">
    <div id="modaloverlay-inner">
      <!-- -->
    </div>
  </div>

  <div id="mainmodals"></div>

<!-- export code -->
<div id="importexport">

<div id="export" class="popup">
  Export current version as:
  <a id="exporthtmla" target="_blank" class="exportlink"><div class="exporttype" id="exporthtml">HTML</div></a>
  <a id="exportplaina" target="_blank" class="exportlink"><div class="exporttype" id="exportplain">Plain text</div></a>
  <a id="exportworda" target="_blank" class="exportlink"><div class="exporttype" id="exportword">Microsoft Word</div></a>
  <a id="exportpdfa" target="_blank" class="exportlink"><div class="exporttype" id="exportpdf">PDF</div></a>
  <a id="exportopena" target="_blank" class="exportlink"><div class="exporttype" id="exportopen">OpenDocument</div></a>
  <a id="exportdokuwikia" target="_blank" class="exportlink"><div class="exporttype" id="exportdokuwiki">DokuWiki text</div></a>
  <a id="exportwordlea" target="_blank" onClick="padimpexp.export2Wordle();return false;" class="exportlink"><div class="exporttype" id="exportwordle">Wordle</div></a>
  <form id="wordlepost" name="wall" action="http://wordle.net/advanced" method="POST" style="margin-left:0px;"> 
    <div id="hidetext" style=""><textarea id="text" name="text" id="text" style="display:none;">Coming soon!</textarea></div> 
  </form> 
</div>
</div>

<script type="text/javascript" src="../../static/js/require-kernel.js"></script>
<script type="text/javascript" src="../../static/js/jquery.js"></script>
<script type="text/javascript" src="../../socket.io/socket.io.js"></script>
<script type="text/javascript" src="../../javascripts/lib/ep_etherpad-lite/static/js/timeslider.js?callback=require.define"></script>
<script type="text/javascript" src="../../static/custom/timeslider.js"></script>

<script type="text/javascript" >
  document.domain = document.domain;
  var clientVars = {};
  
  (function () {
    
    var pathComponents = location.pathname.split('/');
    
    // Strip 'p', the padname and 'timeslider' from the pathname and set as baseURL
    var baseURL = pathComponents.slice(0,pathComponents.length-3).join('/') + '/';
    
    
    require.setRootURI(baseURL + "javascripts/src");
    require.setLibraryURI(baseURL + "javascripts/lib");
    require.setGlobalKeyPath("require");

    var plugins = require('ep_etherpad-lite/static/js/pluginfw/plugins');
    plugins.baseURL = baseURL;
    
    plugins.update(function () {
      var timeslider = require('ep_etherpad-lite/static/js/timeslider')
      timeslider.baseURL = baseURL;
      timeslider.init();

      /* 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;
    });
  })();
</script>
</body>
</html>